diff --git a/README.md b/README.md
index 5a8d5e3d..1797d92e 100644
--- a/README.md
+++ b/README.md
@@ -153,9 +153,9 @@ pre-commit install
```
## Updating the auto generated part
-To update the auto generated part of the code, execute the `open_api_client_build/build_client_source.sh` script with `path` or `url` as first
-arg and the path to the OpenAPI-Specification as second arg from the project root directory. For Copyright reasons, we don't publish the Specification here,
-but we used the Specification of Polarion version 2023.04 to generate the code published here.
+To update the auto generated part of the code, execute the `open_api_client_build/build_client.py` script with `path` or `url` as first
+arg and the path to the OpenAPI-Specification as second arg from the project root directory. The publicly available [specification](https://developer.siemens.com/polarion/polarion-rest-apispec.json)
+from the Polarion developer Portal was used.
# Contributing
diff --git a/open_api_client_build/build_client.py b/open_api_client_build/build_client.py
new file mode 100644
index 00000000..e8f6cfd6
--- /dev/null
+++ b/open_api_client_build/build_client.py
@@ -0,0 +1,151 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+"""Script to fix the specification and build code from it.
+
+Usage: needs 2 args for execution. First one is either 'url' or 'path',
+second one is the path to the Open API Spec. E.g.
+./build_client_source.sh path /download/spec.json will take the spec
+from the given path
+"""
+import json
+import os
+import pathlib
+import re
+import shutil
+import subprocess
+import sys
+import tempfile
+
+import httpx
+
+error_code_pattern = re.compile("[4,5][0-9]{2}")
+script_path = pathlib.Path(os.path.dirname(os.path.realpath(__file__)))
+rest_api_path = script_path.parent / "polarion_rest_api_client"
+template_path = script_path / "custom_templates"
+config_path = script_path / "config.yaml"
+autoflake_commands = [
+ "autoflake",
+ "-i",
+ "-r",
+ "--remove-all-unused-imports",
+ "--remove-unused-variables",
+ "--ignore-init-module-imports",
+ "./open_api_client",
+]
+black_commands = [
+ "black",
+ "./open_api_client",
+]
+isort_commands = [
+ "isort",
+ "./open_api_client",
+]
+
+
+def fix_spec(src: str, path: str | os.PathLike):
+ """Fix errors in the specification."""
+ if src == "path":
+ with open(path, "r") as f:
+ spec = json.load(f)
+ elif src == "url":
+ response = httpx.get(path)
+ spec = response.json()
+ else:
+ raise Exception(
+ "you have to provide a file or url keyword as 1st arg."
+ )
+ spec_paths = spec["paths"]
+ if (
+ octet_schema := spec_paths.get(
+ "/projects/{projectId}/testruns/{testRunId}/actions/importXUnitTestResults",
+ {},
+ )
+ .get("post", {})
+ .get("requestBody", {})
+ .get("content", {})
+ .get("application/octet-stream", {})
+ .get("schema")
+ ):
+ if octet_schema.get("type") == "object":
+ octet_schema["type"] = "string"
+ octet_schema["format"] = "binary"
+
+ for spec_path in spec_paths.values():
+ for operation_description in spec_path.values():
+ if responses := operation_description.get("responses"):
+ if "4XX-5XX" in responses:
+ for code, resp in responses.items():
+ if error_code_pattern.fullmatch(code):
+ resp["content"] = responses["4XX-5XX"]["content"]
+ del responses["4XX-5XX"]
+
+ schemas = spec["components"]["schemas"]
+ if (
+ downloads := schemas.get("jobsSingleGetResponse", {})
+ .get("properties", {})
+ .get("data", {})
+ .get("properties", {})
+ .get("links", {})
+ .get("properties", {})
+ .get("downloads")
+ ):
+ if "items" not in downloads and downloads.get("type") == "array":
+ downloads["items"] = {"type": "string"}
+
+ if (
+ downloads := schemas.get("jobsSinglePostResponse", {})
+ .get("properties", {})
+ .get("data", {})
+ .get("properties", {})
+ .get("links", {})
+ .get("properties", {})
+ .get("downloads")
+ ):
+ if "items" not in downloads and downloads.get("type") == "array":
+ downloads["items"] = {"type": "string"}
+
+ if (
+ error_source := schemas.get("errors", {})
+ .get("properties", {})
+ .get("errors", {})
+ .get("items", {})
+ .get("properties", {})
+ .get("source")
+ ):
+ error_source["nullable"] = True
+ if resource := error_source.get("properties", {}).get("resource"):
+ resource["nullable"] = True
+
+ with tempfile.NamedTemporaryFile("w", delete=False) as f:
+ json.dump(spec, f)
+ f.close()
+
+ generator_path = shutil.which("openapi-python-client")
+ assert generator_path is not None, (
+ "Did not find openapi-python-client generator - "
+ "please install dev requirements"
+ )
+
+ subprocess.run(
+ [
+ generator_path,
+ "update",
+ "--meta",
+ "none",
+ "--path",
+ f.name,
+ f"--custom-template-path={template_path}",
+ "--config",
+ config_path,
+ ],
+ cwd=rest_api_path,
+ check=True,
+ )
+
+ subprocess.run(autoflake_commands, cwd=rest_api_path, check=True)
+ subprocess.run(black_commands, cwd=rest_api_path, check=True)
+ subprocess.run(isort_commands, cwd=rest_api_path, check=True)
+
+
+if __name__ == "__main__":
+ fix_spec(sys.argv[1], sys.argv[2])
diff --git a/open_api_client_build/build_client_source.sh b/open_api_client_build/build_client_source.sh
deleted file mode 100644
index 8f1ec352..00000000
--- a/open_api_client_build/build_client_source.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright DB InfraGO AG and contributors
-# SPDX-License-Identifier: Apache-2.0
-
-#/bin/bash
-# Usage: needs 2 args for execution. First one is either 'url' or 'path', second one is the path to the Open API Spec.
-# E.g. ./build_client_source.sh path /download/spec.json will take the spec from the given path
-# Always execute from the project root directory!
-cd polarion_rest_api_client
-
-openapi-python-client update \
- --meta none \
- --$1 $2 \
- --custom-template-path=../open_api_client_build/custom_templates \
- --config ../open_api_client_build/config.yaml
-
-autoflake -i -r --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports ./open_api_client
-black ./open_api_client
-isort ./open_api_client
diff --git a/open_api_client_build/custom_templates/model.py.jinja b/open_api_client_build/custom_templates/model.py.jinja
index 9ca3474e..6eda0186 100644
--- a/open_api_client_build/custom_templates/model.py.jinja
+++ b/open_api_client_build/custom_templates/model.py.jinja
@@ -117,6 +117,7 @@ field_dict.update(self.additional_properties)
{% endfor %}
{{ _prepare_field_dict() }}
+{% if model.required_properties | length > 0 or model.optional_properties | length > 0 %}
field_dict.update({
{% for property in model.required_properties + model.optional_properties %}
{% if property.required %}
@@ -124,6 +125,7 @@ field_dict.update({
{% endif %}
{% endfor %}
})
+{% endif %}
{% for property in model.optional_properties %}
{% if not property.required %}
if {{ property.python_name }} is not UNSET:
diff --git a/polarion_rest_api_client/client.py b/polarion_rest_api_client/client.py
index ebda8408..690ee010 100644
--- a/polarion_rest_api_client/client.py
+++ b/polarion_rest_api_client/client.py
@@ -197,28 +197,10 @@ def unexpected_error():
)
return False
- try:
- decoded_content = json.loads(response.content.decode())
- except json.JSONDecodeError as e:
- raise unexpected_error() from e
-
- # This is needed to fix erroneous error responses
- def filter_none_values(data: dict[str, t.Any]):
- result = {}
- for k, v in data.items():
- if v is None:
- continue
- if isinstance(v, dict):
- v = filter_none_values(v)
- result[k] = v
- return result
-
- decoded_content["errors"] = [
- filter_none_values(er) for er in decoded_content.get("errors", [])
- ]
-
- error = api_models.Errors.from_dict(decoded_content)
- if error.errors:
+ if (
+ isinstance(response.parsed, api_models.Errors)
+ and response.parsed.errors
+ ):
raise errors.PolarionApiException(
*[
(
@@ -226,11 +208,14 @@ def filter_none_values(data: dict[str, t.Any]):
e.detail,
(
e.source.pointer
- if not isinstance(e.source, oa_types.Unset)
+ if not (
+ isinstance(e.source, oa_types.Unset)
+ or e.source is None
+ )
else "No error pointer"
),
)
- for e in error.errors
+ for e in response.parsed.errors
]
)
raise unexpected_error()
@@ -244,12 +229,12 @@ def _build_work_item_post_request(
assert work_item.status is not None
attrs = api_models.WorkitemsListPostRequestDataItemAttributes(
- work_item.type,
- api_models.WorkitemsListPostRequestDataItemAttributesDescription(
- api_models.WorkitemsListPostRequestDataItemAttributesDescriptionType( # pylint: disable=line-too-long
+ type=work_item.type,
+ description=api_models.WorkitemsListPostRequestDataItemAttributesDescription(
+ type=api_models.WorkitemsListPostRequestDataItemAttributesDescriptionType( # pylint: disable=line-too-long
work_item.description_type
),
- work_item.description,
+ value=work_item.description,
),
status=work_item.status,
title=work_item.title,
@@ -263,7 +248,8 @@ def _build_work_item_post_request(
)
return api_models.WorkitemsListPostRequestDataItem(
- api_models.WorkitemsListPostRequestDataItemType.WORKITEMS, attrs
+ type=api_models.WorkitemsListPostRequestDataItemType.WORKITEMS,
+ attributes=attrs,
)
def _build_work_item_patch_request(
@@ -276,10 +262,10 @@ def _build_work_item_patch_request(
if work_item.description is not None:
attrs.description = api_models.WorkitemsSinglePatchRequestDataAttributesDescription( # pylint: disable=line-too-long
- api_models.WorkitemsSinglePatchRequestDataAttributesDescriptionType( # pylint: disable=line-too-long
+ type=api_models.WorkitemsSinglePatchRequestDataAttributesDescriptionType( # pylint: disable=line-too-long
work_item.description_type
),
- work_item.description,
+ value=work_item.description,
)
if work_item.status is not None:
@@ -293,10 +279,10 @@ def _build_work_item_patch_request(
)
return api_models.WorkitemsSinglePatchRequest(
- api_models.WorkitemsSinglePatchRequestData(
- api_models.WorkitemsSinglePatchRequestDataType.WORKITEMS,
- f"{self.project_id}/{work_item.id}",
- attrs,
+ data=api_models.WorkitemsSinglePatchRequestData(
+ type=api_models.WorkitemsSinglePatchRequestDataType.WORKITEMS,
+ id=f"{self.project_id}/{work_item.id}",
+ attributes=attrs,
)
)
@@ -314,7 +300,10 @@ def _post_work_item_batch(
self._post_work_item_batch(work_item_batch, work_item_objs, False)
return
- assert response.parsed and response.parsed.data
+ assert (
+ isinstance(response.parsed, api_models.WorkitemsListPostResponse)
+ and response.parsed.data
+ )
counter = 0
for work_item_res in response.parsed.data:
assert work_item_res.id
@@ -439,11 +428,11 @@ def update_work_item_attachment(
attributes.title = work_item_attachment.title
multipart = api_models.PatchWorkItemAttachmentsRequestBody(
- api_models.WorkitemAttachmentsSinglePatchRequest(
- api_models.WorkitemAttachmentsSinglePatchRequestData(
- api_models.WorkitemAttachmentsSinglePatchRequestDataType.WORKITEM_ATTACHMENTS, # pylint: disable=line-too-long
- f"{self.project_id}/{work_item_attachment.work_item_id}/{work_item_attachment.id}", # pylint: disable=line-too-long
- attributes,
+ resource=api_models.WorkitemAttachmentsSinglePatchRequest(
+ data=api_models.WorkitemAttachmentsSinglePatchRequestData(
+ type=api_models.WorkitemAttachmentsSinglePatchRequestDataType.WORKITEM_ATTACHMENTS, # pylint: disable=line-too-long
+ id=f"{self.project_id}/{work_item_attachment.work_item_id}/{work_item_attachment.id}", # pylint: disable=line-too-long
+ attributes=attributes,
)
)
)
@@ -499,7 +488,7 @@ def create_work_item_attachments(
attachment_attributes.append(
api_models.WorkitemAttachmentsListPostRequestDataItem(
- api_models.WorkitemAttachmentsListPostRequestDataItemType.WORKITEM_ATTACHMENTS, # pylint: disable=line-too-long
+ type=api_models.WorkitemAttachmentsListPostRequestDataItemType.WORKITEM_ATTACHMENTS, # pylint: disable=line-too-long
attributes=attributes,
)
)
@@ -513,10 +502,10 @@ def create_work_item_attachments(
)
multipart = api_models.PostWorkItemAttachmentsRequestBody(
- api_models.WorkitemAttachmentsListPostRequest(
+ resource=api_models.WorkitemAttachmentsListPostRequest(
attachment_attributes
),
- attachment_files,
+ files=attachment_files,
)
response = post_work_item_attachments.sync_detailed(
@@ -530,7 +519,12 @@ def create_work_item_attachments(
self.create_work_item_attachments(work_item_attachments, False)
return
- assert response.parsed and response.parsed.data
+ assert (
+ isinstance(
+ response.parsed, api_models.WorkitemAttachmentsListPostResponse
+ )
+ and response.parsed.data
+ )
counter = 0
for work_item_attachment_res in response.parsed.data:
assert work_item_attachment_res.id
@@ -624,7 +618,9 @@ def get_work_item(
sleep_random_time()
return self.get_work_item(work_item_id, False)
- if response.parsed and isinstance(
+ if isinstance(
+ response.parsed, api_models.WorkitemsSingleGetResponse
+ ) and isinstance(
response.parsed.data, api_models.WorkitemsSingleGetResponseData
):
return self._generate_work_item(response.parsed.data)
@@ -792,7 +788,7 @@ def _handle_home_page_content(
def create_work_items(self, work_items: list[base_client.WorkItemType]):
"""Create the given list of work items."""
- current_batch = api_models.WorkitemsListPostRequest([])
+ current_batch = api_models.WorkitemsListPostRequest(data=[])
content_size = min_wi_request_size
batch_start_index = 0
batch_end_index = 0
@@ -823,7 +819,7 @@ def create_work_items(self, work_items: list[base_client.WorkItemType]):
)
current_batch = api_models.WorkitemsListPostRequest(
- [work_item_data]
+ data=[work_item_data]
)
content_size = _get_json_content_size(current_batch.to_dict())
batch_start_index = batch_end_index
@@ -844,10 +840,10 @@ def _delete_work_items(self, work_item_ids: list[str], retry: bool = True):
self.project_id,
client=self.client,
body=api_models.WorkitemsListDeleteRequest(
- [
+ data=[
api_models.WorkitemsListDeleteRequestDataItem(
- api_models.WorkitemsListDeleteRequestDataItemType.WORKITEMS, # pylint: disable=line-too-long
- f"{self.project_id}/{work_item_id}",
+ type=api_models.WorkitemsListDeleteRequestDataItemType.WORKITEMS, # pylint: disable=line-too-long
+ id=f"{self.project_id}/{work_item_id}",
)
for work_item_id in work_item_ids
]
@@ -979,18 +975,18 @@ def _create_work_item_links(
client=self.client,
# pylint: disable=line-too-long
body=api_models.LinkedworkitemsListPostRequest(
- [
+ data=[
api_models.LinkedworkitemsListPostRequestDataItem(
- api_models.LinkedworkitemsListPostRequestDataItemType.LINKEDWORKITEMS,
- api_models.LinkedworkitemsListPostRequestDataItemAttributes(
+ type=api_models.LinkedworkitemsListPostRequestDataItemType.LINKEDWORKITEMS,
+ attributes=api_models.LinkedworkitemsListPostRequestDataItemAttributes(
role=work_item_link.role,
suspect=work_item_link.suspect or False,
),
- api_models.LinkedworkitemsListPostRequestDataItemRelationships(
- api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItem(
- api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemData(
- api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemDataType.WORKITEMS,
- f"{work_item_link.secondary_work_item_project}/{work_item_link.secondary_work_item_id}",
+ relationships=api_models.LinkedworkitemsListPostRequestDataItemRelationships(
+ work_item=api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItem(
+ data=api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemData(
+ type=api_models.LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemDataType.WORKITEMS,
+ id=f"{work_item_link.secondary_work_item_project}/{work_item_link.secondary_work_item_id}",
)
)
),
@@ -1014,10 +1010,10 @@ def _delete_work_item_links(
client=self.client,
# pylint: disable=line-too-long
body=api_models.LinkedworkitemsListDeleteRequest(
- [
+ data=[
api_models.LinkedworkitemsListDeleteRequestDataItem(
- api_models.LinkedworkitemsListDeleteRequestDataItemType.LINKEDWORKITEMS,
- f"{self.project_id}/{work_item_link.primary_work_item_id}/{work_item_link.role}/{work_item_link.secondary_work_item_project}/{work_item_link.secondary_work_item_id}",
+ type=api_models.LinkedworkitemsListDeleteRequestDataItemType.LINKEDWORKITEMS,
+ id=f"{self.project_id}/{work_item_link.primary_work_item_id}/{work_item_link.role}/{work_item_link.secondary_work_item_project}/{work_item_link.secondary_work_item_id}",
)
for work_item_link in work_item_links
]
diff --git a/polarion_rest_api_client/open_api_client/__init__.py b/polarion_rest_api_client/open_api_client/__init__.py
index 2d2635e8..b50e5fd3 100644
--- a/polarion_rest_api_client/open_api_client/__init__.py
+++ b/polarion_rest_api_client/open_api_client/__init__.py
@@ -1,6 +1,7 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0
"""A client library for accessing Polarion REST API."""
+
from .client import AuthenticatedClient, Client
__all__ = (
diff --git a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment.py b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment.py
index 0ebfb7ee..c9464060 100644
--- a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_attachments_single_get_response import (
DocumentAttachmentsSingleGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -57,7 +58,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -65,25 +66,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Response[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,7 +120,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Response[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
"""Returns the specified Document Attachment.
Args:
@@ -129,7 +137,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsSingleGetResponse]]
+ Response[Union[DocumentAttachmentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -159,7 +167,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
"""Returns the specified Document Attachment.
Args:
@@ -176,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsSingleGetResponse]
+ Union[DocumentAttachmentsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -201,7 +209,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Response[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
"""Returns the specified Document Attachment.
Args:
@@ -218,7 +226,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsSingleGetResponse]]
+ Response[Union[DocumentAttachmentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -246,7 +254,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentAttachmentsSingleGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsSingleGetResponse, Errors]]:
"""Returns the specified Document Attachment.
Args:
@@ -263,7 +271,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsSingleGetResponse]
+ Union[DocumentAttachmentsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment_content.py b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment_content.py
index 67d64c9a..d7b8d777 100644
--- a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -43,23 +44,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +84,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -85,7 +101,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Document Attachment.
Args:
@@ -100,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -118,6 +134,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Document Attachment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -126,7 +178,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Document Attachment.
Args:
@@ -141,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -155,3 +207,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Document Attachment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachments.py b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachments.py
index 9a982323..0d0f1aca 100644
--- a/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/document_attachments/get_document_attachments.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_attachments_list_get_response import (
DocumentAttachmentsListGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -20,14 +21,18 @@ def _get_kwargs(
space_id: str,
document_name: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -36,10 +41,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsListGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentAttachmentsListGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Response[Union[DocumentAttachmentsListGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,22 +120,22 @@ def sync_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Response[Union[DocumentAttachmentsListGetResponse, Errors]]:
"""Returns a list of Document Attachments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -135,17 +143,17 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsListGetResponse]]
+ Response[Union[DocumentAttachmentsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -162,22 +170,22 @@ def sync(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsListGetResponse, Errors]]:
"""Returns a list of Document Attachments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -185,7 +193,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsListGetResponse]
+ Union[DocumentAttachmentsListGetResponse, Errors]
"""
return sync_detailed(
@@ -193,10 +201,10 @@ def sync(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -207,22 +215,22 @@ async def asyncio_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Response[Union[DocumentAttachmentsListGetResponse, Errors]]:
"""Returns a list of Document Attachments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -230,17 +238,17 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsListGetResponse]]
+ Response[Union[DocumentAttachmentsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -255,22 +263,22 @@ async def asyncio(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentAttachmentsListGetResponse]]:
+) -> Optional[Union[DocumentAttachmentsListGetResponse, Errors]]:
"""Returns a list of Document Attachments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -278,7 +286,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsListGetResponse]
+ Union[DocumentAttachmentsListGetResponse, Errors]
"""
return (
@@ -287,10 +295,10 @@ async def asyncio(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_attachments/patch_document_attachment.py b/polarion_rest_api_client/open_api_client/api/document_attachments/patch_document_attachment.py
index 05e08148..7d95570b 100644
--- a/polarion_rest_api_client/open_api_client/api/document_attachments/patch_document_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/document_attachments/patch_document_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.patch_document_attachments_request_body import (
PatchDocumentAttachmentsRequestBody,
)
@@ -44,27 +45,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -73,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -90,11 +110,12 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchDocumentAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Document Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -108,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,6 +147,46 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchDocumentAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Document Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ attachment_id (str):
+ body (PatchDocumentAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -134,11 +195,12 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchDocumentAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Document Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -152,7 +214,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -166,3 +228,45 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchDocumentAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Document Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ attachment_id (str):
+ body (PatchDocumentAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_attachments/post_document_item_attachments.py b/polarion_rest_api_client/open_api_client/api/document_attachments/post_document_item_attachments.py
index 43e4ed76..918f5d86 100644
--- a/polarion_rest_api_client/open_api_client/api/document_attachments/post_document_item_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/document_attachments/post_document_item_attachments.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_attachments_list_post_response import (
DocumentAttachmentsListPostResponse,
)
+from ...models.errors import Errors
from ...models.post_document_attachments_request_body import (
PostDocumentAttachmentsRequestBody,
)
@@ -45,7 +46,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Optional[Union[DocumentAttachmentsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentAttachmentsListPostResponse.from_dict(
response.json()
@@ -53,34 +54,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -90,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Response[Union[DocumentAttachmentsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -106,12 +117,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostDocumentAttachmentsRequestBody,
-) -> Response[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Response[Union[DocumentAttachmentsListPostResponse, Errors]]:
r"""Creates a list of Document Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -124,7 +136,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsListPostResponse]]
+ Response[Union[DocumentAttachmentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -148,12 +160,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostDocumentAttachmentsRequestBody,
-) -> Optional[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Optional[Union[DocumentAttachmentsListPostResponse, Errors]]:
r"""Creates a list of Document Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -166,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsListPostResponse]
+ Union[DocumentAttachmentsListPostResponse, Errors]
"""
return sync_detailed(
@@ -185,12 +198,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostDocumentAttachmentsRequestBody,
-) -> Response[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Response[Union[DocumentAttachmentsListPostResponse, Errors]]:
r"""Creates a list of Document Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -203,7 +217,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentAttachmentsListPostResponse]]
+ Response[Union[DocumentAttachmentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -225,12 +239,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostDocumentAttachmentsRequestBody,
-) -> Optional[Union[Any, DocumentAttachmentsListPostResponse]]:
+) -> Optional[Union[DocumentAttachmentsListPostResponse, Errors]]:
r"""Creates a list of Document Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -243,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentAttachmentsListPostResponse]
+ Union[DocumentAttachmentsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comment.py b/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comment.py
index 342150a6..ded797e8 100644
--- a/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comment.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_comments_single_get_response import (
DocumentCommentsSingleGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -57,7 +58,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Optional[Union[DocumentCommentsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentCommentsSingleGetResponse.from_dict(
response.json()
@@ -65,25 +66,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Response[Union[DocumentCommentsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,7 +120,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Response[Union[DocumentCommentsSingleGetResponse, Errors]]:
"""Returns the specified Document Comment.
Args:
@@ -129,7 +137,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsSingleGetResponse]]
+ Response[Union[DocumentCommentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -159,7 +167,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Optional[Union[DocumentCommentsSingleGetResponse, Errors]]:
"""Returns the specified Document Comment.
Args:
@@ -176,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsSingleGetResponse]
+ Union[DocumentCommentsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -201,7 +209,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Response[Union[DocumentCommentsSingleGetResponse, Errors]]:
"""Returns the specified Document Comment.
Args:
@@ -218,7 +226,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsSingleGetResponse]]
+ Response[Union[DocumentCommentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -246,7 +254,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentCommentsSingleGetResponse]]:
+) -> Optional[Union[DocumentCommentsSingleGetResponse, Errors]]:
"""Returns the specified Document Comment.
Args:
@@ -263,7 +271,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsSingleGetResponse]
+ Union[DocumentCommentsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comments.py b/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comments.py
index 93898771..451da4e8 100644
--- a/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/document_comments/get_document_comments.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_comments_list_get_response import (
DocumentCommentsListGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -20,14 +21,18 @@ def _get_kwargs(
space_id: str,
document_name: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -36,10 +41,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Optional[Union[DocumentCommentsListGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentCommentsListGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Response[Union[DocumentCommentsListGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,22 +120,22 @@ def sync_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Response[Union[DocumentCommentsListGetResponse, Errors]]:
"""Returns a list of Document Comments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -135,17 +143,17 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsListGetResponse]]
+ Response[Union[DocumentCommentsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -162,22 +170,22 @@ def sync(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Optional[Union[DocumentCommentsListGetResponse, Errors]]:
"""Returns a list of Document Comments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -185,7 +193,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsListGetResponse]
+ Union[DocumentCommentsListGetResponse, Errors]
"""
return sync_detailed(
@@ -193,10 +201,10 @@ def sync(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -207,22 +215,22 @@ async def asyncio_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Response[Union[DocumentCommentsListGetResponse, Errors]]:
"""Returns a list of Document Comments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -230,17 +238,17 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsListGetResponse]]
+ Response[Union[DocumentCommentsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -255,22 +263,22 @@ async def asyncio(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentCommentsListGetResponse]]:
+) -> Optional[Union[DocumentCommentsListGetResponse, Errors]]:
"""Returns a list of Document Comments.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -278,7 +286,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsListGetResponse]
+ Union[DocumentCommentsListGetResponse, Errors]
"""
return (
@@ -287,10 +295,10 @@ async def asyncio(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_comments/patch_document_comment.py b/polarion_rest_api_client/open_api_client/api/document_comments/patch_document_comment.py
index a580d388..cc311d28 100644
--- a/polarion_rest_api_client/open_api_client/api/document_comments/patch_document_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/document_comments/patch_document_comment.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
@@ -11,6 +11,7 @@
from ...models.document_comments_single_patch_request import (
DocumentCommentsSinglePatchRequest,
)
+from ...models.errors import Errors
from ...types import Response
@@ -45,29 +46,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -76,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -93,7 +111,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Document Comment.
Args:
@@ -108,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,6 +144,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: DocumentCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Document Comment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ comment_id (str):
+ body (DocumentCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -134,7 +188,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Document Comment.
Args:
@@ -149,7 +203,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -163,3 +217,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: DocumentCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Document Comment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ comment_id (str):
+ body (DocumentCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_comments/post_document_comments.py b/polarion_rest_api_client/open_api_client/api/document_comments/post_document_comments.py
index 89bce4b0..4ead2bc0 100644
--- a/polarion_rest_api_client/open_api_client/api/document_comments/post_document_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/document_comments/post_document_comments.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -14,6 +14,7 @@
from ...models.document_comments_list_post_response import (
DocumentCommentsListPostResponse,
)
+from ...models.errors import Errors
from ...types import Response
@@ -46,7 +47,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Optional[Union[DocumentCommentsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentCommentsListPostResponse.from_dict(
response.json()
@@ -54,34 +55,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +102,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Response[Union[DocumentCommentsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -107,7 +118,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsListPostRequest,
-) -> Response[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Response[Union[DocumentCommentsListPostResponse, Errors]]:
"""Creates a list of Document Comments.
Args:
@@ -121,7 +132,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsListPostResponse]]
+ Response[Union[DocumentCommentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -145,7 +156,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsListPostRequest,
-) -> Optional[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Optional[Union[DocumentCommentsListPostResponse, Errors]]:
"""Creates a list of Document Comments.
Args:
@@ -159,7 +170,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsListPostResponse]
+ Union[DocumentCommentsListPostResponse, Errors]
"""
return sync_detailed(
@@ -178,7 +189,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsListPostRequest,
-) -> Response[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Response[Union[DocumentCommentsListPostResponse, Errors]]:
"""Creates a list of Document Comments.
Args:
@@ -192,7 +203,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentCommentsListPostResponse]]
+ Response[Union[DocumentCommentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -214,7 +225,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentCommentsListPostRequest,
-) -> Optional[Union[Any, DocumentCommentsListPostResponse]]:
+) -> Optional[Union[DocumentCommentsListPostResponse, Errors]]:
"""Creates a list of Document Comments.
Args:
@@ -228,7 +239,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentCommentsListPostResponse]
+ Union[DocumentCommentsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/document_parts/get_document_part.py b/polarion_rest_api_client/open_api_client/api/document_parts/get_document_part.py
index ac18bcc7..e53de485 100644
--- a/polarion_rest_api_client/open_api_client/api/document_parts/get_document_part.py
+++ b/polarion_rest_api_client/open_api_client/api/document_parts/get_document_part.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_parts_single_get_response import (
DocumentPartsSingleGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -57,7 +58,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Optional[Union[DocumentPartsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentPartsSingleGetResponse.from_dict(
response.json()
@@ -65,25 +66,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Response[Union[DocumentPartsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,7 +120,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Response[Union[DocumentPartsSingleGetResponse, Errors]]:
"""Returns the specified Document Part.
Args:
@@ -129,7 +137,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsSingleGetResponse]]
+ Response[Union[DocumentPartsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -159,7 +167,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Optional[Union[DocumentPartsSingleGetResponse, Errors]]:
"""Returns the specified Document Part.
Args:
@@ -176,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsSingleGetResponse]
+ Union[DocumentPartsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -201,7 +209,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Response[Union[DocumentPartsSingleGetResponse, Errors]]:
"""Returns the specified Document Part.
Args:
@@ -218,7 +226,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsSingleGetResponse]]
+ Response[Union[DocumentPartsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -246,7 +254,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentPartsSingleGetResponse]]:
+) -> Optional[Union[DocumentPartsSingleGetResponse, Errors]]:
"""Returns the specified Document Part.
Args:
@@ -263,7 +271,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsSingleGetResponse]
+ Union[DocumentPartsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/document_parts/get_document_parts.py b/polarion_rest_api_client/open_api_client/api/document_parts/get_document_parts.py
index 271ffe55..d698d558 100644
--- a/polarion_rest_api_client/open_api_client/api/document_parts/get_document_parts.py
+++ b/polarion_rest_api_client/open_api_client/api/document_parts/get_document_parts.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.document_parts_list_get_response import (
DocumentPartsListGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -20,14 +21,18 @@ def _get_kwargs(
space_id: str,
document_name: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -36,10 +41,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -61,31 +62,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentPartsListGetResponse]]:
+) -> Optional[Union[DocumentPartsListGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentPartsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentPartsListGetResponse]]:
+) -> Response[Union[DocumentPartsListGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -110,22 +118,22 @@ def sync_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentPartsListGetResponse]]:
+) -> Response[Union[DocumentPartsListGetResponse, Errors]]:
"""Returns a list of Document Parts.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -133,17 +141,17 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsListGetResponse]]
+ Response[Union[DocumentPartsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -160,22 +168,22 @@ def sync(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentPartsListGetResponse]]:
+) -> Optional[Union[DocumentPartsListGetResponse, Errors]]:
"""Returns a list of Document Parts.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -183,7 +191,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsListGetResponse]
+ Union[DocumentPartsListGetResponse, Errors]
"""
return sync_detailed(
@@ -191,10 +199,10 @@ def sync(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -205,22 +213,22 @@ async def asyncio_detailed(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentPartsListGetResponse]]:
+) -> Response[Union[DocumentPartsListGetResponse, Errors]]:
"""Returns a list of Document Parts.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -228,17 +236,17 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsListGetResponse]]
+ Response[Union[DocumentPartsListGetResponse, Errors]]
"""
kwargs = _get_kwargs(
project_id=project_id,
space_id=space_id,
document_name=document_name,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -253,22 +261,22 @@ async def asyncio(
document_name: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentPartsListGetResponse]]:
+) -> Optional[Union[DocumentPartsListGetResponse, Errors]]:
"""Returns a list of Document Parts.
Args:
project_id (str):
space_id (str):
document_name (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -276,7 +284,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsListGetResponse]
+ Union[DocumentPartsListGetResponse, Errors]
"""
return (
@@ -285,10 +293,10 @@ async def asyncio(
space_id=space_id,
document_name=document_name,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/document_parts/post_document_parts.py b/polarion_rest_api_client/open_api_client/api/document_parts/post_document_parts.py
index 15f4dfd8..d50f35ea 100644
--- a/polarion_rest_api_client/open_api_client/api/document_parts/post_document_parts.py
+++ b/polarion_rest_api_client/open_api_client/api/document_parts/post_document_parts.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -14,6 +14,7 @@
from ...models.document_parts_list_post_response import (
DocumentPartsListPostResponse,
)
+from ...models.errors import Errors
from ...types import Response
@@ -46,40 +47,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentPartsListPostResponse]]:
+) -> Optional[Union[DocumentPartsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentPartsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentPartsListPostResponse]]:
+) -> Response[Union[DocumentPartsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,7 +116,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentPartsListPostRequest,
-) -> Response[Union[Any, DocumentPartsListPostResponse]]:
+) -> Response[Union[DocumentPartsListPostResponse, Errors]]:
"""Creates a list of Document Parts.
Args:
@@ -119,7 +130,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsListPostResponse]]
+ Response[Union[DocumentPartsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,7 +154,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentPartsListPostRequest,
-) -> Optional[Union[Any, DocumentPartsListPostResponse]]:
+) -> Optional[Union[DocumentPartsListPostResponse, Errors]]:
"""Creates a list of Document Parts.
Args:
@@ -157,7 +168,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsListPostResponse]
+ Union[DocumentPartsListPostResponse, Errors]
"""
return sync_detailed(
@@ -176,7 +187,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentPartsListPostRequest,
-) -> Response[Union[Any, DocumentPartsListPostResponse]]:
+) -> Response[Union[DocumentPartsListPostResponse, Errors]]:
"""Creates a list of Document Parts.
Args:
@@ -190,7 +201,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentPartsListPostResponse]]
+ Response[Union[DocumentPartsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -212,7 +223,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentPartsListPostRequest,
-) -> Optional[Union[Any, DocumentPartsListPostResponse]]:
+) -> Optional[Union[DocumentPartsListPostResponse, Errors]]:
"""Creates a list of Document Parts.
Args:
@@ -226,7 +237,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentPartsListPostResponse]
+ Union[DocumentPartsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/branch_document.py b/polarion_rest_api_client/open_api_client/api/documents/branch_document.py
index b75d8df1..994c530a 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/branch_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/branch_document.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -12,6 +12,7 @@
from ...models.documents_single_post_response import (
DocumentsSinglePostResponse,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -54,40 +55,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentsSinglePostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +108,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -114,7 +125,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
body: BranchDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a Branch of the Document.
Args:
@@ -129,7 +140,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSinglePostResponse]]
+ Response[Union[DocumentsSinglePostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -155,7 +166,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
body: BranchDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a Branch of the Document.
Args:
@@ -170,7 +181,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSinglePostResponse]
+ Union[DocumentsSinglePostResponse, Errors]
"""
return sync_detailed(
@@ -191,7 +202,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
body: BranchDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a Branch of the Document.
Args:
@@ -206,7 +217,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSinglePostResponse]]
+ Response[Union[DocumentsSinglePostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -230,7 +241,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
body: BranchDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a Branch of the Document.
Args:
@@ -245,7 +256,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSinglePostResponse]
+ Union[DocumentsSinglePostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/branch_documents.py b/polarion_rest_api_client/open_api_client/api/documents/branch_documents.py
index 8ec5bac7..46f762b6 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/branch_documents.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/branch_documents.py
@@ -9,6 +9,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
from ...models.branch_documents_request_body import BranchDocumentsRequestBody
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -34,17 +36,39 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -53,7 +77,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +90,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: BranchDocumentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Creates Branches of Documents.
Args:
@@ -77,7 +101,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -91,11 +115,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: BranchDocumentsRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Creates Branches of Documents.
+
+ Args:
+ body (BranchDocumentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: BranchDocumentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Creates Branches of Documents.
Args:
@@ -106,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -116,3 +164,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: BranchDocumentsRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Creates Branches of Documents.
+
+ Args:
+ body (BranchDocumentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/documents/copy_document.py b/polarion_rest_api_client/open_api_client/api/documents/copy_document.py
index 3e321ea4..84bb000a 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/copy_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/copy_document.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -12,6 +12,7 @@
from ...models.documents_single_post_response import (
DocumentsSinglePostResponse,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -54,40 +55,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentsSinglePostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +108,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -114,7 +125,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
body: CopyDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a copy of the Document.
Args:
@@ -129,7 +140,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSinglePostResponse]]
+ Response[Union[DocumentsSinglePostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -155,7 +166,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
body: CopyDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a copy of the Document.
Args:
@@ -170,7 +181,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSinglePostResponse]
+ Union[DocumentsSinglePostResponse, Errors]
"""
return sync_detailed(
@@ -191,7 +202,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
body: CopyDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSinglePostResponse]]:
+) -> Response[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a copy of the Document.
Args:
@@ -206,7 +217,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSinglePostResponse]]
+ Response[Union[DocumentsSinglePostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -230,7 +241,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
body: CopyDocumentRequestBody,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSinglePostResponse]]:
+) -> Optional[Union[DocumentsSinglePostResponse, Errors]]:
"""Creates a copy of the Document.
Args:
@@ -245,7 +256,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSinglePostResponse]
+ Union[DocumentsSinglePostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document.py b/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document.py
index 785ef1ff..a1447a28 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -49,31 +50,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,7 +109,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field in the
specified Document.
@@ -118,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -146,7 +154,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field in the
specified Document.
@@ -163,7 +171,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -186,7 +194,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field in the
specified Document.
@@ -203,7 +211,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -229,7 +237,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field in the
specified Document.
@@ -246,7 +254,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document_type.py b/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document_type.py
index ffc0508e..75cd3ffd 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document_type.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/get_available_enum_options_for_document_type.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -48,31 +49,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -82,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +107,7 @@ def sync_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Document type.
@@ -115,7 +123,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -141,7 +149,7 @@ def sync(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Document type.
@@ -157,7 +165,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -178,7 +186,7 @@ async def asyncio_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Document type.
@@ -194,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -218,7 +226,7 @@ async def asyncio(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Document type.
@@ -234,7 +242,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/get_current_enumeration_options_for_document.py b/polarion_rest_api_client/open_api_client/api/documents/get_current_enumeration_options_for_document.py
index b30655c3..41f5160c 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/get_current_enumeration_options_for_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/get_current_enumeration_options_for_document.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -52,31 +53,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -86,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,7 +113,7 @@ def sync_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field in the
specified Document.
@@ -123,7 +131,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field in the
specified Document.
@@ -171,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -196,7 +204,7 @@ async def asyncio_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field in the
specified Document.
@@ -214,7 +222,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -242,7 +250,7 @@ async def asyncio(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field in the
specified Document.
@@ -260,7 +268,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/get_document.py b/polarion_rest_api_client/open_api_client/api/documents/get_document.py
index bf0bf089..4b120cb7 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/get_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/get_document.py
@@ -2,13 +2,14 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
from ...models.documents_single_get_response import DocumentsSingleGetResponse
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -53,31 +54,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentsSingleGetResponse]]:
+) -> Optional[Union[DocumentsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = DocumentsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -87,7 +95,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentsSingleGetResponse]]:
+) -> Response[Union[DocumentsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,7 +113,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSingleGetResponse]]:
+) -> Response[Union[DocumentsSingleGetResponse, Errors]]:
"""Returns the specified Document.
Args:
@@ -121,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSingleGetResponse]]
+ Response[Union[DocumentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -149,7 +157,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSingleGetResponse]]:
+) -> Optional[Union[DocumentsSingleGetResponse, Errors]]:
"""Returns the specified Document.
Args:
@@ -165,7 +173,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSingleGetResponse]
+ Union[DocumentsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -188,7 +196,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, DocumentsSingleGetResponse]]:
+) -> Response[Union[DocumentsSingleGetResponse, Errors]]:
"""Returns the specified Document.
Args:
@@ -204,7 +212,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsSingleGetResponse]]
+ Response[Union[DocumentsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -230,7 +238,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, DocumentsSingleGetResponse]]:
+) -> Optional[Union[DocumentsSingleGetResponse, Errors]]:
"""Returns the specified Document.
Args:
@@ -246,7 +254,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsSingleGetResponse]
+ Union[DocumentsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/documents/merge_document_from_master.py b/polarion_rest_api_client/open_api_client/api/documents/merge_document_from_master.py
new file mode 100644
index 00000000..2d6f01a0
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/documents/merge_document_from_master.py
@@ -0,0 +1,247 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
+from ...models.merge_document_request_body import MergeDocumentRequestBody
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ body: MergeDocumentRequestBody,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "post",
+ "url": "/projects/{projectId}/spaces/{spaceId}/documents/{documentName}/actions/mergeFromMaster".format(
+ projectId=project_id,
+ spaceId=space_id,
+ documentName=document_name,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Master Work Items changes to specified Branched Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Master Work Items changes to specified Branched Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Master Work Items changes to specified Branched Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Master Work Items changes to specified Branched Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/documents/merge_document_to_master.py b/polarion_rest_api_client/open_api_client/api/documents/merge_document_to_master.py
new file mode 100644
index 00000000..826d9638
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/documents/merge_document_to_master.py
@@ -0,0 +1,247 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
+from ...models.merge_document_request_body import MergeDocumentRequestBody
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ body: MergeDocumentRequestBody,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "post",
+ "url": "/projects/{projectId}/spaces/{spaceId}/documents/{documentName}/actions/mergeToMaster".format(
+ projectId=project_id,
+ spaceId=space_id,
+ documentName=document_name,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Work Item changes from specified Branched Document to Master.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Work Item changes from specified Branched Document to Master.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Work Item changes from specified Branched Document to Master.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MergeDocumentRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Merges Work Item changes from specified Branched Document to Master.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ body (MergeDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/documents/patch_document.py b/polarion_rest_api_client/open_api_client/api/documents/patch_document.py
index b65ddd3e..6a6110b2 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/patch_document.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/patch_document.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
@@ -11,6 +11,7 @@
from ...models.documents_single_patch_request import (
DocumentsSinglePatchRequest,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -53,27 +54,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -82,7 +102,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +119,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
body: DocumentsSinglePatchRequest,
workflow_action: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Document.
Args:
@@ -114,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -132,6 +152,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: DocumentsSinglePatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ workflow_action (Union[Unset, str]):
+ body (DocumentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -140,7 +196,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
body: DocumentsSinglePatchRequest,
workflow_action: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Document.
Args:
@@ -155,7 +211,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -169,3 +225,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ document_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: DocumentsSinglePatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Document.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ document_name (str):
+ workflow_action (Union[Unset, str]):
+ body (DocumentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ document_name=document_name,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/documents/post_documents.py b/polarion_rest_api_client/open_api_client/api/documents/post_documents.py
index 8a56f5eb..8533b0ad 100644
--- a/polarion_rest_api_client/open_api_client/api/documents/post_documents.py
+++ b/polarion_rest_api_client/open_api_client/api/documents/post_documents.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -10,6 +10,7 @@
from ...client import AuthenticatedClient, Client
from ...models.documents_list_post_request import DocumentsListPostRequest
from ...models.documents_list_post_response import DocumentsListPostResponse
+from ...models.errors import Errors
from ...types import Response
@@ -40,40 +41,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, DocumentsListPostResponse]]:
+) -> Optional[Union[DocumentsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = DocumentsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, DocumentsListPostResponse]]:
+) -> Response[Union[DocumentsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -98,7 +109,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentsListPostRequest,
-) -> Response[Union[Any, DocumentsListPostResponse]]:
+) -> Response[Union[DocumentsListPostResponse, Errors]]:
"""Creates a list of Documents.
Args:
@@ -111,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsListPostResponse]]
+ Response[Union[DocumentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -133,7 +144,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentsListPostRequest,
-) -> Optional[Union[Any, DocumentsListPostResponse]]:
+) -> Optional[Union[DocumentsListPostResponse, Errors]]:
"""Creates a list of Documents.
Args:
@@ -146,7 +157,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsListPostResponse]
+ Union[DocumentsListPostResponse, Errors]
"""
return sync_detailed(
@@ -163,7 +174,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentsListPostRequest,
-) -> Response[Union[Any, DocumentsListPostResponse]]:
+) -> Response[Union[DocumentsListPostResponse, Errors]]:
"""Creates a list of Documents.
Args:
@@ -176,7 +187,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, DocumentsListPostResponse]]
+ Response[Union[DocumentsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -196,7 +207,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: DocumentsListPostRequest,
-) -> Optional[Union[Any, DocumentsListPostResponse]]:
+) -> Optional[Union[DocumentsListPostResponse, Errors]]:
"""Creates a list of Documents.
Args:
@@ -209,7 +220,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, DocumentsListPostResponse]
+ Union[DocumentsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/delete_global_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/delete_global_enumeration.py
index 373565b5..43138988 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/delete_global_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/delete_global_enumeration.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,21 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -53,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -68,7 +86,7 @@ def sync_detailed(
target_type: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Enumeration from the Global context.
Args:
@@ -81,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -97,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ enum_context: str,
+ enum_name: str,
+ target_type: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Enumeration from the Global context.
+
+ Args:
+ enum_context (str):
+ enum_name (str):
+ target_type (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ enum_context=enum_context,
+ enum_name=enum_name,
+ target_type=target_type,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
enum_context: str,
enum_name: str,
target_type: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Enumeration from the Global context.
Args:
@@ -116,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -128,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ enum_context: str,
+ enum_name: str,
+ target_type: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Enumeration from the Global context.
+
+ Args:
+ enum_context (str):
+ enum_name (str):
+ target_type (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ enum_context=enum_context,
+ enum_name=enum_name,
+ target_type=target_type,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/delete_project_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/delete_project_enumeration.py
index 5665ae78..e55c842a 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/delete_project_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/delete_project_enumeration.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -32,21 +33,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -55,7 +73,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -71,7 +89,7 @@ def sync_detailed(
target_type: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Enumeration from the Project context.
Args:
@@ -85,7 +103,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -102,6 +120,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ enum_context: str,
+ enum_name: str,
+ target_type: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Enumeration from the Project context.
+
+ Args:
+ project_id (str):
+ enum_context (str):
+ enum_name (str):
+ target_type (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ enum_context=enum_context,
+ enum_name=enum_name,
+ target_type=target_type,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
enum_context: str,
@@ -109,7 +160,7 @@ async def asyncio_detailed(
target_type: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Enumeration from the Project context.
Args:
@@ -123,7 +174,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -136,3 +187,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ enum_context: str,
+ enum_name: str,
+ target_type: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Enumeration from the Project context.
+
+ Args:
+ project_id (str):
+ enum_context (str):
+ enum_name (str):
+ target_type (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ enum_context=enum_context,
+ enum_name=enum_name,
+ target_type=target_type,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/get_global_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/get_global_enumeration.py
index 262d07fe..13054a8c 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/get_global_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/get_global_enumeration.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enumerations_single_get_response import (
EnumerationsSingleGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -52,31 +53,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumerationsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -86,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -103,7 +111,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Global context.
Args:
@@ -118,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSingleGetResponse]]
+ Response[Union[EnumerationsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -144,7 +152,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Global context.
Args:
@@ -159,7 +167,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSingleGetResponse]
+ Union[EnumerationsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -180,7 +188,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Global context.
Args:
@@ -195,7 +203,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSingleGetResponse]]
+ Response[Union[EnumerationsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -219,7 +227,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Global context.
Args:
@@ -234,7 +242,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSingleGetResponse]
+ Union[EnumerationsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/get_project_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/get_project_enumeration.py
index e6c6a0e5..f894d737 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/get_project_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/get_project_enumeration.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enumerations_single_get_response import (
EnumerationsSingleGetResponse,
)
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -54,31 +55,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumerationsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -88,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -106,7 +114,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Project context.
Args:
@@ -122,7 +130,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSingleGetResponse]]
+ Response[Union[EnumerationsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -150,7 +158,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Project context.
Args:
@@ -166,7 +174,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSingleGetResponse]
+ Union[EnumerationsSingleGetResponse, Errors]
"""
return sync_detailed(
@@ -189,7 +197,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Response[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Project context.
Args:
@@ -205,7 +213,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSingleGetResponse]]
+ Response[Union[EnumerationsSingleGetResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -231,7 +239,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumerationsSingleGetResponse]]:
+) -> Optional[Union[EnumerationsSingleGetResponse, Errors]]:
"""Returns the specified Enumeration from the Project context.
Args:
@@ -247,7 +255,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSingleGetResponse]
+ Union[EnumerationsSingleGetResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/patch_global_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/patch_global_enumeration.py
index 39cdea21..51296101 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/patch_global_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/patch_global_enumeration.py
@@ -11,6 +11,7 @@
from ...models.enumerations_single_patch_request import (
EnumerationsSinglePatchRequest,
)
+from ...models.errors import Errors
from ...types import Response
@@ -43,39 +44,45 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- response_204 = EnumerationsSinglePatchRequest.from_dict(
- response.json()
- )
-
+ response_204 = cast(Any, None)
return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
- if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
- return response_406
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,7 +108,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Global context.
Args:
@@ -115,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSinglePatchRequest]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -139,7 +146,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Optional[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Global context.
Args:
@@ -153,7 +160,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSinglePatchRequest]
+ Union[Any, Errors]
"""
return sync_detailed(
@@ -172,7 +179,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Global context.
Args:
@@ -186,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSinglePatchRequest]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -208,7 +215,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Optional[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Global context.
Args:
@@ -222,7 +229,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSinglePatchRequest]
+ Union[Any, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/patch_project_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/patch_project_enumeration.py
index 3394a1d6..ad083161 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/patch_project_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/patch_project_enumeration.py
@@ -11,6 +11,7 @@
from ...models.enumerations_single_patch_request import (
EnumerationsSinglePatchRequest,
)
+from ...models.errors import Errors
from ...types import Response
@@ -45,42 +46,45 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
- if response.status_code == HTTPStatus.CREATED:
- response_201 = EnumerationsSinglePatchRequest.from_dict(
- response.json()
- )
-
- return response_201
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
- if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
- return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -90,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -107,7 +111,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Project context.
Args:
@@ -122,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSinglePatchRequest]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -148,7 +152,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Optional[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Project context.
Args:
@@ -163,7 +167,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSinglePatchRequest]
+ Union[Any, Errors]
"""
return sync_detailed(
@@ -184,7 +188,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Response[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Project context.
Args:
@@ -199,7 +203,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsSinglePatchRequest]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -223,7 +227,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsSinglePatchRequest,
-) -> Optional[Union[Any, EnumerationsSinglePatchRequest]]:
+) -> Optional[Union[Any, Errors]]:
"""Updates the specified Enumeration in the Project context.
Args:
@@ -238,7 +242,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsSinglePatchRequest]
+ Union[Any, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/post_global_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/post_global_enumeration.py
index 7a383311..2648d18d 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/post_global_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/post_global_enumeration.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -14,6 +14,7 @@
from ...models.enumerations_list_post_response import (
EnumerationsListPostResponse,
)
+from ...models.errors import Errors
from ...types import Response
@@ -39,40 +40,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = EnumerationsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -82,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,7 +106,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Global context.
Args:
@@ -106,7 +117,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsListPostResponse]]
+ Response[Union[EnumerationsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -124,7 +135,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Global context.
Args:
@@ -135,7 +146,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsListPostResponse]
+ Union[EnumerationsListPostResponse, Errors]
"""
return sync_detailed(
@@ -148,7 +159,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Global context.
Args:
@@ -159,7 +170,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsListPostResponse]]
+ Response[Union[EnumerationsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -175,7 +186,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Global context.
Args:
@@ -186,7 +197,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsListPostResponse]
+ Union[EnumerationsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/enumerations/post_project_enumeration.py b/polarion_rest_api_client/open_api_client/api/enumerations/post_project_enumeration.py
index 3385f533..8de2e3b2 100644
--- a/polarion_rest_api_client/open_api_client/api/enumerations/post_project_enumeration.py
+++ b/polarion_rest_api_client/open_api_client/api/enumerations/post_project_enumeration.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -14,6 +14,7 @@
from ...models.enumerations_list_post_response import (
EnumerationsListPostResponse,
)
+from ...models.errors import Errors
from ...types import Response
@@ -42,40 +43,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = EnumerationsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +110,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Project context.
Args:
@@ -111,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsListPostResponse]]
+ Response[Union[EnumerationsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -131,7 +142,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Project context.
Args:
@@ -143,7 +154,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsListPostResponse]
+ Union[EnumerationsListPostResponse, Errors]
"""
return sync_detailed(
@@ -158,7 +169,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Response[Union[Any, EnumerationsListPostResponse]]:
+) -> Response[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Project context.
Args:
@@ -170,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumerationsListPostResponse]]
+ Response[Union[EnumerationsListPostResponse, Errors]]
"""
kwargs = _get_kwargs(
@@ -188,7 +199,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: EnumerationsListPostRequest,
-) -> Optional[Union[Any, EnumerationsListPostResponse]]:
+) -> Optional[Union[EnumerationsListPostResponse, Errors]]:
"""Creates a list of Enumerations in the Project context.
Args:
@@ -200,7 +211,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumerationsListPostResponse]
+ Union[EnumerationsListPostResponse, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_item.py b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_item.py
index 1ed61218..0f7a7156 100644
--- a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -36,23 +37,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -61,7 +77,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -79,7 +95,7 @@ def sync_detailed(
linked_work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Externally Linked Work Item.
Args:
@@ -95,7 +111,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -114,6 +130,45 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ hostname: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Externally Linked Work Item.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ hostname (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ hostname=hostname,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -123,7 +178,7 @@ async def asyncio_detailed(
linked_work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Externally Linked Work Item.
Args:
@@ -139,7 +194,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -154,3 +209,44 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ hostname: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Externally Linked Work Item.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ hostname (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ hostname=hostname,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_items.py
index a636c96d..02c952d7 100644
--- a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/delete_externally_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.externallylinkedworkitems_list_delete_request import (
ExternallylinkedworkitemsListDeleteRequest,
)
@@ -41,25 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Externally Linked Work Items.
Args:
@@ -96,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ExternallylinkedworkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Externally Linked Work Items.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (ExternallylinkedworkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Externally Linked Work Items.
Args:
@@ -131,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ExternallylinkedworkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Externally Linked Work Items.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (ExternallylinkedworkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_item.py b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_item.py
index ce7e0d69..aaec552a 100644
--- a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.externallylinkedworkitems_single_get_response import (
ExternallylinkedworkitemsSingleGetResponse,
)
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = ExternallylinkedworkitemsSingleGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,7 +126,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
"""Returns the specified Externally Linked Work Item.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -139,7 +147,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -173,7 +181,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
"""Returns the specified Externally Linked Work Item.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -194,7 +202,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsSingleGetResponse]
+ Union[Errors, ExternallylinkedworkitemsSingleGetResponse]
"""
return sync_detailed(
@@ -223,7 +231,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
"""Returns the specified Externally Linked Work Item.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -244,7 +252,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -276,7 +284,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ExternallylinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsSingleGetResponse]]:
"""Returns the specified Externally Linked Work Item.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -297,7 +305,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsSingleGetResponse]
+ Union[Errors, ExternallylinkedworkitemsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_items.py
index 5f1473b3..ddbb699b 100644
--- a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/get_externally_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.externallylinkedworkitems_list_get_response import (
ExternallylinkedworkitemsListGetResponse,
)
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = ExternallylinkedworkitemsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,12 +117,12 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
"""Returns a list of Externally Linked Work Items.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -122,10 +130,10 @@ def sync_detailed(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -133,16 +141,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsListGetResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -158,12 +166,12 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
"""Returns a list of Externally Linked Work Items.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -171,10 +179,10 @@ def sync(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -182,17 +190,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsListGetResponse]
+ Union[Errors, ExternallylinkedworkitemsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -202,12 +210,12 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
"""Returns a list of Externally Linked Work Items.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -215,10 +223,10 @@ async def asyncio_detailed(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -226,16 +234,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsListGetResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -249,12 +257,12 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ExternallylinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListGetResponse]]:
"""Returns a list of Externally Linked Work Items.
Returns the external links to other Work Items. (The same as the corresponding Java API method.)
@@ -262,10 +270,10 @@ async def asyncio(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -273,7 +281,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsListGetResponse]
+ Union[Errors, ExternallylinkedworkitemsListGetResponse]
"""
return (
@@ -281,10 +289,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/post_externally_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/post_externally_linked_work_items.py
index 963c1344..909cc9bf 100644
--- a/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/post_externally_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/externally_linked_work_items/post_externally_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.externallylinkedworkitems_list_post_request import (
ExternallylinkedworkitemsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = ExternallylinkedworkitemsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListPostRequest,
-) -> Response[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
"""Creates a list of Externally Linked Work Items.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsListPostResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListPostRequest,
-) -> Optional[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
"""Creates a list of Externally Linked Work Items.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsListPostResponse]
+ Union[Errors, ExternallylinkedworkitemsListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListPostRequest,
-) -> Response[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
"""Creates a list of Externally Linked Work Items.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ExternallylinkedworkitemsListPostResponse]]
+ Response[Union[Errors, ExternallylinkedworkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: ExternallylinkedworkitemsListPostRequest,
-) -> Optional[Union[Any, ExternallylinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, ExternallylinkedworkitemsListPostResponse]]:
"""Creates a list of Externally Linked Work Items.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ExternallylinkedworkitemsListPostResponse]
+ Union[Errors, ExternallylinkedworkitemsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selection.py b/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selection.py
index 3fa3cf33..90e89d0f 100644
--- a/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selection.py
+++ b/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selection.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.featureselections_single_get_response import (
FeatureselectionsSingleGetResponse,
)
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = FeatureselectionsSingleGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -115,7 +123,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsSingleGetResponse]]:
"""Returns the specified Feature Selection.
Args:
@@ -133,7 +141,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, FeatureselectionsSingleGetResponse]]
+ Response[Union[Errors, FeatureselectionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -165,7 +173,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsSingleGetResponse]]:
"""Returns the specified Feature Selection.
Args:
@@ -183,7 +191,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, FeatureselectionsSingleGetResponse]
+ Union[Errors, FeatureselectionsSingleGetResponse]
"""
return sync_detailed(
@@ -210,7 +218,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsSingleGetResponse]]:
"""Returns the specified Feature Selection.
Args:
@@ -228,7 +236,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, FeatureselectionsSingleGetResponse]]
+ Response[Union[Errors, FeatureselectionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -258,7 +266,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, FeatureselectionsSingleGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsSingleGetResponse]]:
"""Returns the specified Feature Selection.
Args:
@@ -276,7 +284,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, FeatureselectionsSingleGetResponse]
+ Union[Errors, FeatureselectionsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selections.py b/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selections.py
index 1ba6aa88..28546431 100644
--- a/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selections.py
+++ b/polarion_rest_api_client/open_api_client/api/feature_selections/get_feature_selections.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.featureselections_list_get_response import (
FeatureselectionsListGetResponse,
)
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = FeatureselectionsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsListGetResponse]]:
"""Returns a list of Feature Selections.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, FeatureselectionsListGetResponse]]
+ Response[Union[Errors, FeatureselectionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsListGetResponse]]:
"""Returns a list of Feature Selections.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, FeatureselectionsListGetResponse]
+ Union[Errors, FeatureselectionsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Response[Union[Errors, FeatureselectionsListGetResponse]]:
"""Returns a list of Feature Selections.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, FeatureselectionsListGetResponse]]
+ Response[Union[Errors, FeatureselectionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, FeatureselectionsListGetResponse]]:
+) -> Optional[Union[Errors, FeatureselectionsListGetResponse]]:
"""Returns a list of Feature Selections.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, FeatureselectionsListGetResponse]
+ Union[Errors, FeatureselectionsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_default_icon.py b/polarion_rest_api_client/open_api_client/api/icons/get_default_icon.py
index aa832245..3e5ef61c 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_default_icon.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_default_icon.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_single_get_response import IconsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -43,31 +44,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -77,7 +85,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -91,7 +99,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the default context.
Args:
@@ -103,7 +111,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -123,7 +131,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the default context.
Args:
@@ -135,7 +143,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return sync_detailed(
@@ -150,7 +158,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the default context.
Args:
@@ -162,7 +170,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -180,7 +188,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the default context.
Args:
@@ -192,7 +200,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_default_icons.py b/polarion_rest_api_client/open_api_client/api/icons/get_default_icons.py
index 31d0cc2c..0691bd4b 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_default_icons.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_default_icons.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_list_get_response import IconsListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -15,22 +16,22 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
if not isinstance(json_fields, Unset):
params.update(json_fields)
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -46,31 +47,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsListGetResponse]]:
+) -> Optional[Union[Errors, IconsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -80,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsListGetResponse]]:
+) -> Response[Union[Errors, IconsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -92,29 +100,29 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the default context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = client.get_httpx_client().request(
@@ -127,59 +135,59 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the default context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the default context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -190,30 +198,30 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the default context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_global_icon.py b/polarion_rest_api_client/open_api_client/api/icons/get_global_icon.py
index b8cc60bc..83761ac1 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_global_icon.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_global_icon.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_single_get_response import IconsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -43,31 +44,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -77,7 +85,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -91,7 +99,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Global context.
Args:
@@ -103,7 +111,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -123,7 +131,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Global context.
Args:
@@ -135,7 +143,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return sync_detailed(
@@ -150,7 +158,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Global context.
Args:
@@ -162,7 +170,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -180,7 +188,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Global context.
Args:
@@ -192,7 +200,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_global_icons.py b/polarion_rest_api_client/open_api_client/api/icons/get_global_icons.py
index e715564c..5850a669 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_global_icons.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_global_icons.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_list_get_response import IconsListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -15,22 +16,22 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
if not isinstance(json_fields, Unset):
params.update(json_fields)
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -46,31 +47,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsListGetResponse]]:
+) -> Optional[Union[Errors, IconsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -80,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsListGetResponse]]:
+) -> Response[Union[Errors, IconsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -92,29 +100,29 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = client.get_httpx_client().request(
@@ -127,59 +135,59 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -190,30 +198,30 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_project_icon.py b/polarion_rest_api_client/open_api_client/api/icons/get_project_icon.py
index 36e3ca2d..c0ba7cfd 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_project_icon.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_project_icon.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_single_get_response import IconsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -45,31 +46,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -79,7 +87,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -94,7 +102,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Project context.
Args:
@@ -107,7 +115,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -129,7 +137,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Project context.
Args:
@@ -142,7 +150,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return sync_detailed(
@@ -159,7 +167,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Response[Union[Any, IconsSingleGetResponse]]:
+) -> Response[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Project context.
Args:
@@ -172,7 +180,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsSingleGetResponse]]
+ Response[Union[Errors, IconsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -192,7 +200,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
-) -> Optional[Union[Any, IconsSingleGetResponse]]:
+) -> Optional[Union[Errors, IconsSingleGetResponse]]:
"""Returns the specified Icon from the Project context.
Args:
@@ -205,7 +213,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsSingleGetResponse]
+ Union[Errors, IconsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/icons/get_project_icons.py b/polarion_rest_api_client/open_api_client/api/icons/get_project_icons.py
index 983991a7..6f8f6e0e 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/get_project_icons.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/get_project_icons.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_list_get_response import IconsListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -16,22 +17,22 @@
def _get_kwargs(
project_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
if not isinstance(json_fields, Unset):
params.update(json_fields)
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -49,31 +50,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsListGetResponse]]:
+) -> Optional[Union[Errors, IconsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = IconsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsListGetResponse]]:
+) -> Response[Union[Errors, IconsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -96,31 +104,31 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Project context.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = client.get_httpx_client().request(
@@ -134,32 +142,32 @@ def sync(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Project context.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
).parsed
@@ -167,31 +175,31 @@ async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Response[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Project context.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListGetResponse]]
+ Response[Union[Errors, IconsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -203,32 +211,32 @@ async def asyncio(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, IconsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+) -> Optional[Union[Errors, IconsListGetResponse]]:
"""Returns a list of Icons from the Project context.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListGetResponse]
+ Union[Errors, IconsListGetResponse]
"""
return (
await asyncio_detailed(
project_id=project_id,
client=client,
- fields=fields,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/icons/post_global_icons.py b/polarion_rest_api_client/open_api_client/api/icons/post_global_icons.py
index 55eb07c4..5a874880 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/post_global_icons.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/post_global_icons.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_list_post_response import IconsListPostResponse
from ...models.post_icons_request_body import PostIconsRequestBody
from ...types import Response
@@ -34,40 +35,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = IconsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -77,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -90,7 +101,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Global context.
Icons are identified by order
@@ -103,7 +114,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListPostResponse]]
+ Response[Union[Errors, IconsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -121,7 +132,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Global context.
Icons are identified by order
@@ -134,7 +145,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListPostResponse]
+ Union[Errors, IconsListPostResponse]
"""
return sync_detailed(
@@ -147,7 +158,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Global context.
Icons are identified by order
@@ -160,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListPostResponse]]
+ Response[Union[Errors, IconsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -176,7 +187,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Global context.
Icons are identified by order
@@ -189,7 +200,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListPostResponse]
+ Union[Errors, IconsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/icons/post_project_icons.py b/polarion_rest_api_client/open_api_client/api/icons/post_project_icons.py
index 6797d31b..37d848cb 100644
--- a/polarion_rest_api_client/open_api_client/api/icons/post_project_icons.py
+++ b/polarion_rest_api_client/open_api_client/api/icons/post_project_icons.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.icons_list_post_response import IconsListPostResponse
from ...models.post_icons_request_body import PostIconsRequestBody
from ...types import Response
@@ -37,40 +38,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = IconsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -80,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -94,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Project context.
Icons are identified by order
@@ -108,7 +119,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListPostResponse]]
+ Response[Union[Errors, IconsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -128,7 +139,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Project context.
Icons are identified by order
@@ -142,7 +153,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListPostResponse]
+ Union[Errors, IconsListPostResponse]
"""
return sync_detailed(
@@ -157,7 +168,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Response[Union[Any, IconsListPostResponse]]:
+) -> Response[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Project context.
Icons are identified by order
@@ -171,7 +182,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, IconsListPostResponse]]
+ Response[Union[Errors, IconsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -189,7 +200,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostIconsRequestBody,
-) -> Optional[Union[Any, IconsListPostResponse]]:
+) -> Optional[Union[Errors, IconsListPostResponse]]:
"""Creates a list of Icons in the Project context.
Icons are identified by order
@@ -203,7 +214,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, IconsListPostResponse]
+ Union[Errors, IconsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/jobs/get_job.py b/polarion_rest_api_client/open_api_client/api/jobs/get_job.py
index ff1f9032..56d9d7bb 100644
--- a/polarion_rest_api_client/open_api_client/api/jobs/get_job.py
+++ b/polarion_rest_api_client/open_api_client/api/jobs/get_job.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_get_response import JobsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -45,21 +47,39 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSingleGetResponse]]:
+ if response.status_code == HTTPStatus.OK:
+ response_200 = JobsSingleGetResponse.from_dict(response.json())
+
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +103,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSingleGetResponse]]:
"""Returns the specified Job.
Args:
@@ -96,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -112,13 +132,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ job_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, JobsSingleGetResponse]]:
+ """Returns the specified Job.
+
+ Args:
+ job_id (str):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSingleGetResponse]
+ """
+
+ return sync_detailed(
+ job_id=job_id,
+ client=client,
+ fields=fields,
+ include=include,
+ ).parsed
+
+
async def asyncio_detailed(
job_id: str,
*,
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSingleGetResponse]]:
"""Returns the specified Job.
Args:
@@ -131,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -143,3 +193,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ job_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, JobsSingleGetResponse]]:
+ """Returns the specified Job.
+
+ Args:
+ job_id (str):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSingleGetResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ job_id=job_id,
+ client=client,
+ fields=fields,
+ include=include,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/jobs/get_job_result_file_content.py b/polarion_rest_api_client/open_api_client/api/jobs/get_job_result_file_content.py
index 40f87c7a..8ea4d084 100644
--- a/polarion_rest_api_client/open_api_client/api/jobs/get_job_result_file_content.py
+++ b/polarion_rest_api_client/open_api_client/api/jobs/get_job_result_file_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -28,23 +29,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -53,7 +69,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -67,7 +83,7 @@ def sync_detailed(
filename: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified job.
Args:
@@ -79,7 +95,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -94,12 +110,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ job_id: str,
+ filename: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified job.
+
+ Args:
+ job_id (str):
+ filename (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ job_id=job_id,
+ filename=filename,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
job_id: str,
filename: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified job.
Args:
@@ -111,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -122,3 +165,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ job_id: str,
+ filename: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified job.
+
+ Args:
+ job_id (str):
+ filename (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ job_id=job_id,
+ filename=filename,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/delete_oslc_resources.py b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/delete_oslc_resources.py
index 079fb503..d21fb0a1 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/delete_oslc_resources.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/delete_oslc_resources.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedoslcresources_list_delete_request import (
LinkedoslcresourcesListDeleteRequest,
)
@@ -41,25 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of instances.
Args:
@@ -96,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedoslcresourcesListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of instances.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (LinkedoslcresourcesListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of instances.
Args:
@@ -131,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedoslcresourcesListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of instances.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (LinkedoslcresourcesListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/get_oslc_resources.py b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/get_oslc_resources.py
index c44c5686..683138bb 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/get_oslc_resources.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/get_oslc_resources.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedoslcresources_list_get_response import (
LinkedoslcresourcesListGetResponse,
)
@@ -19,15 +20,20 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -36,14 +42,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -62,7 +66,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, LinkedoslcresourcesListGetResponse]]:
+) -> Optional[Union[Errors, LinkedoslcresourcesListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = LinkedoslcresourcesListGetResponse.from_dict(
response.json()
@@ -70,25 +74,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -98,7 +109,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, LinkedoslcresourcesListGetResponse]]:
+) -> Response[Union[Errors, LinkedoslcresourcesListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,42 +123,45 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedoslcresourcesListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, LinkedoslcresourcesListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedoslcresourcesListGetResponse]]
+ Response[Union[Errors, LinkedoslcresourcesListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = client.get_httpx_client().request(
@@ -162,43 +176,46 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedoslcresourcesListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, LinkedoslcresourcesListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedoslcresourcesListGetResponse]
+ Union[Errors, LinkedoslcresourcesListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
).parsed
@@ -207,42 +224,45 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedoslcresourcesListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, LinkedoslcresourcesListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedoslcresourcesListGetResponse]]
+ Response[Union[Errors, LinkedoslcresourcesListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -255,31 +275,33 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedoslcresourcesListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, LinkedoslcresourcesListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedoslcresourcesListGetResponse]
+ Union[Errors, LinkedoslcresourcesListGetResponse]
"""
return (
@@ -287,11 +309,12 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/post_oslc_resources.py b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/post_oslc_resources.py
index b7010d4f..632f3bf1 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/post_oslc_resources.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_oslc_resources/post_oslc_resources.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedoslcresources_list_post_request import (
LinkedoslcresourcesListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Optional[Union[Errors, LinkedoslcresourcesListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = LinkedoslcresourcesListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Response[Union[Errors, LinkedoslcresourcesListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListPostRequest,
-) -> Response[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Response[Union[Errors, LinkedoslcresourcesListPostResponse]]:
"""Creates a list of instances.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedoslcresourcesListPostResponse]]
+ Response[Union[Errors, LinkedoslcresourcesListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListPostRequest,
-) -> Optional[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Optional[Union[Errors, LinkedoslcresourcesListPostResponse]]:
"""Creates a list of instances.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedoslcresourcesListPostResponse]
+ Union[Errors, LinkedoslcresourcesListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListPostRequest,
-) -> Response[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Response[Union[Errors, LinkedoslcresourcesListPostResponse]]:
"""Creates a list of instances.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedoslcresourcesListPostResponse]]
+ Response[Union[Errors, LinkedoslcresourcesListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedoslcresourcesListPostRequest,
-) -> Optional[Union[Any, LinkedoslcresourcesListPostResponse]]:
+) -> Optional[Union[Errors, LinkedoslcresourcesListPostResponse]]:
"""Creates a list of instances.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedoslcresourcesListPostResponse]
+ Union[Errors, LinkedoslcresourcesListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_item.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_item.py
index 86bb50a1..70195838 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -34,23 +35,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -59,7 +75,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -76,7 +92,7 @@ def sync_detailed(
linked_work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Linked Work Item.
Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -94,7 +110,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,6 +128,45 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Linked Work Item.
+
+ Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -120,7 +175,7 @@ async def asyncio_detailed(
linked_work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Linked Work Item.
Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -138,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -152,3 +207,44 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Linked Work Item.
+
+ Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_items.py
index f13b8520..342e84a9 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/delete_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedworkitems_list_delete_request import (
LinkedworkitemsListDeleteRequest,
)
@@ -41,25 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Linked Work Items.
Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -99,7 +121,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -115,13 +137,46 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedworkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Linked Work Items.
+
+ Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (LinkedworkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Linked Work Items.
Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -137,7 +192,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -149,3 +204,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedworkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Linked Work Items.
+
+ Deletes the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (LinkedworkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_item.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_item.py
index 9e23c971..c362a70a 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedworkitems_single_get_response import (
LinkedworkitemsSingleGetResponse,
)
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = LinkedworkitemsSingleGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -115,7 +123,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsSingleGetResponse]]:
"""Returns the specified Linked Work Item.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -136,7 +144,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsSingleGetResponse]]
+ Response[Union[Errors, LinkedworkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -168,7 +176,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsSingleGetResponse]]:
"""Returns the specified Linked Work Item.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -189,7 +197,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsSingleGetResponse]
+ Union[Errors, LinkedworkitemsSingleGetResponse]
"""
return sync_detailed(
@@ -216,7 +224,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsSingleGetResponse]]:
"""Returns the specified Linked Work Item.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -237,7 +245,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsSingleGetResponse]]
+ Response[Union[Errors, LinkedworkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -267,7 +275,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedworkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsSingleGetResponse]]:
"""Returns the specified Linked Work Item.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -288,7 +296,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsSingleGetResponse]
+ Union[Errors, LinkedworkitemsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_items.py
index d4ed6d47..c16e5deb 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/get_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedworkitems_list_get_response import (
LinkedworkitemsListGetResponse,
)
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = LinkedworkitemsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,12 +117,12 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListGetResponse]]:
"""Returns a list of Linked Work Items.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -123,10 +131,10 @@ def sync_detailed(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -134,16 +142,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsListGetResponse]]
+ Response[Union[Errors, LinkedworkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -159,12 +167,12 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListGetResponse]]:
"""Returns a list of Linked Work Items.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -173,10 +181,10 @@ def sync(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -184,17 +192,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsListGetResponse]
+ Union[Errors, LinkedworkitemsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -204,12 +212,12 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListGetResponse]]:
"""Returns a list of Linked Work Items.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -218,10 +226,10 @@ async def asyncio_detailed(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -229,16 +237,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsListGetResponse]]
+ Response[Union[Errors, LinkedworkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -252,12 +260,12 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, LinkedworkitemsListGetResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListGetResponse]]:
"""Returns a list of Linked Work Items.
Returns the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -266,10 +274,10 @@ async def asyncio(
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -277,7 +285,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsListGetResponse]
+ Union[Errors, LinkedworkitemsListGetResponse]
"""
return (
@@ -285,10 +293,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/patch_linked_work_item.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/patch_linked_work_item.py
index 7485a8e4..8a9a1c54 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/patch_linked_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/patch_linked_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedworkitems_single_patch_request import (
LinkedworkitemsSinglePatchRequest,
)
@@ -47,27 +48,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -76,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -94,7 +114,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Linked Work Item.
Updates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -113,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -132,6 +152,48 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedworkitemsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Linked Work Item.
+
+ Updates the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+ body (LinkedworkitemsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -141,7 +203,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Linked Work Item.
Updates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -160,7 +222,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -175,3 +237,47 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ role_id: str,
+ target_project_id: str,
+ linked_work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: LinkedworkitemsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Linked Work Item.
+
+ Updates the direct outgoing links to other Work Items. (The same as the corresponding Java API
+ method.) Does not pertain to external links or backlinks.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ role_id (str):
+ target_project_id (str):
+ linked_work_item_id (str):
+ body (LinkedworkitemsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ role_id=role_id,
+ target_project_id=target_project_id,
+ linked_work_item_id=linked_work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/linked_work_items/post_linked_work_items.py b/polarion_rest_api_client/open_api_client/api/linked_work_items/post_linked_work_items.py
index a5f33ffd..41ac1aea 100644
--- a/polarion_rest_api_client/open_api_client/api/linked_work_items/post_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/linked_work_items/post_linked_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.linkedworkitems_list_post_request import (
LinkedworkitemsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = LinkedworkitemsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListPostRequest,
-) -> Response[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListPostResponse]]:
"""Creates a list of Linked Work Items.
Creates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -120,7 +131,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsListPostResponse]]
+ Response[Union[Errors, LinkedworkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -142,7 +153,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListPostRequest,
-) -> Optional[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListPostResponse]]:
"""Creates a list of Linked Work Items.
Creates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -158,7 +169,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsListPostResponse]
+ Union[Errors, LinkedworkitemsListPostResponse]
"""
return sync_detailed(
@@ -175,7 +186,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListPostRequest,
-) -> Response[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Response[Union[Errors, LinkedworkitemsListPostResponse]]:
"""Creates a list of Linked Work Items.
Creates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -191,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, LinkedworkitemsListPostResponse]]
+ Response[Union[Errors, LinkedworkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -211,7 +222,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: LinkedworkitemsListPostRequest,
-) -> Optional[Union[Any, LinkedworkitemsListPostResponse]]:
+) -> Optional[Union[Errors, LinkedworkitemsListPostResponse]]:
"""Creates a list of Linked Work Items.
Creates the direct outgoing links to other Work Items. (The same as the corresponding Java API
@@ -227,7 +238,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, LinkedworkitemsListPostResponse]
+ Union[Errors, LinkedworkitemsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment.py b/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment.py
index a53f59ac..6b5f7973 100644
--- a/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.page_attachments_single_get_response import (
PageAttachmentsSingleGetResponse,
)
@@ -57,7 +58,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = PageAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -65,25 +66,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, PageAttachmentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,7 +120,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, PageAttachmentsSingleGetResponse]]:
"""Returns the specified Page Attachment.
Args:
@@ -129,7 +137,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PageAttachmentsSingleGetResponse]]
+ Response[Union[Errors, PageAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -159,7 +167,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsSingleGetResponse]]:
"""Returns the specified Page Attachment.
Args:
@@ -176,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PageAttachmentsSingleGetResponse]
+ Union[Errors, PageAttachmentsSingleGetResponse]
"""
return sync_detailed(
@@ -201,7 +209,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, PageAttachmentsSingleGetResponse]]:
"""Returns the specified Page Attachment.
Args:
@@ -218,7 +226,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PageAttachmentsSingleGetResponse]]
+ Response[Union[Errors, PageAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -246,7 +254,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PageAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsSingleGetResponse]]:
"""Returns the specified Page Attachment.
Args:
@@ -263,7 +271,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PageAttachmentsSingleGetResponse]
+ Union[Errors, PageAttachmentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment_content.py b/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment_content.py
index cb5dca1b..ec866a75 100644
--- a/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/page_attachments/get_page_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -43,23 +44,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +84,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -85,7 +101,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Page Attachment.
Args:
@@ -100,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -118,6 +134,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ page_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Page Attachment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ page_name (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ page_name=page_name,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -126,7 +178,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Page Attachment.
Args:
@@ -141,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -155,3 +207,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ page_name: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Page Attachment.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ page_name (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ page_name=page_name,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/page_attachments/post_page_attachments.py b/polarion_rest_api_client/open_api_client/api/page_attachments/post_page_attachments.py
index 10768857..26c70706 100644
--- a/polarion_rest_api_client/open_api_client/api/page_attachments/post_page_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/page_attachments/post_page_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.page_attachments_list_post_response import (
PageAttachmentsListPostResponse,
)
@@ -45,7 +46,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = PageAttachmentsListPostResponse.from_dict(
response.json()
@@ -53,34 +54,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -90,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, PageAttachmentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -106,12 +117,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostPageAttachmentsRequestBody,
-) -> Response[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, PageAttachmentsListPostResponse]]:
r"""Creates a list of Page Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -124,7 +136,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PageAttachmentsListPostResponse]]
+ Response[Union[Errors, PageAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -148,12 +160,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostPageAttachmentsRequestBody,
-) -> Optional[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsListPostResponse]]:
r"""Creates a list of Page Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -166,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PageAttachmentsListPostResponse]
+ Union[Errors, PageAttachmentsListPostResponse]
"""
return sync_detailed(
@@ -185,12 +198,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostPageAttachmentsRequestBody,
-) -> Response[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, PageAttachmentsListPostResponse]]:
r"""Creates a list of Page Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -203,7 +217,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PageAttachmentsListPostResponse]]
+ Response[Union[Errors, PageAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -225,12 +239,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostPageAttachmentsRequestBody,
-) -> Optional[Union[Any, PageAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, PageAttachmentsListPostResponse]]:
r"""Creates a list of Page Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -243,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PageAttachmentsListPostResponse]
+ Union[Errors, PageAttachmentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/pages/get_page.py b/polarion_rest_api_client/open_api_client/api/pages/get_page.py
index 1702b2dc..67a32c8c 100644
--- a/polarion_rest_api_client/open_api_client/api/pages/get_page.py
+++ b/polarion_rest_api_client/open_api_client/api/pages/get_page.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.pages_single_get_response import PagesSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -53,31 +54,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PagesSingleGetResponse]]:
+) -> Optional[Union[Errors, PagesSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = PagesSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -87,7 +95,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PagesSingleGetResponse]]:
+) -> Response[Union[Errors, PagesSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,7 +113,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PagesSingleGetResponse]]:
+) -> Response[Union[Errors, PagesSingleGetResponse]]:
"""Returns the specified Page.
Args:
@@ -121,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PagesSingleGetResponse]]
+ Response[Union[Errors, PagesSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -149,7 +157,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PagesSingleGetResponse]]:
+) -> Optional[Union[Errors, PagesSingleGetResponse]]:
"""Returns the specified Page.
Args:
@@ -165,7 +173,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PagesSingleGetResponse]
+ Union[Errors, PagesSingleGetResponse]
"""
return sync_detailed(
@@ -188,7 +196,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PagesSingleGetResponse]]:
+) -> Response[Union[Errors, PagesSingleGetResponse]]:
"""Returns the specified Page.
Args:
@@ -204,7 +212,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PagesSingleGetResponse]]
+ Response[Union[Errors, PagesSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -230,7 +238,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PagesSingleGetResponse]]:
+) -> Optional[Union[Errors, PagesSingleGetResponse]]:
"""Returns the specified Page.
Args:
@@ -246,7 +254,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PagesSingleGetResponse]
+ Union[Errors, PagesSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/pages/patch_rich_page.py b/polarion_rest_api_client/open_api_client/api/pages/patch_rich_page.py
index f1ad46ac..c3155ad9 100644
--- a/polarion_rest_api_client/open_api_client/api/pages/patch_rich_page.py
+++ b/polarion_rest_api_client/open_api_client/api/pages/patch_rich_page.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.pages_single_patch_request import PagesSinglePatchRequest
from ...types import Response
@@ -41,27 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -70,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -86,7 +106,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PagesSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Page.
Args:
@@ -100,7 +120,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -117,6 +137,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ space_id: str,
+ page_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PagesSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Page.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ page_name (str):
+ body (PagesSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ page_name=page_name,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
space_id: str,
@@ -124,7 +177,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PagesSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Page.
Args:
@@ -138,7 +191,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -151,3 +204,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ space_id: str,
+ page_name: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PagesSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Page.
+
+ Args:
+ project_id (str):
+ space_id (str):
+ page_name (str):
+ body (PagesSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ space_id=space_id,
+ page_name=page_name,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/delete_plan.py b/polarion_rest_api_client/open_api_client/api/plans/delete_plan.py
index a544dc5b..a0a4b3d1 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/delete_plan.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/delete_plan.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -28,19 +29,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -49,7 +69,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -63,7 +83,7 @@ def sync_detailed(
plan_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Plan.
Args:
@@ -75,7 +95,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -90,12 +110,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ plan_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
plan_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Plan.
Args:
@@ -107,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -118,3 +165,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ plan_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/delete_plan_relationship.py b/polarion_rest_api_client/open_api_client/api/plans/delete_plan_relationship.py
index e0775a66..a05c78e6 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/delete_plan_relationship.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/delete_plan_relationship.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationships_list_delete_request import (
RelationshipsListDeleteRequest,
)
@@ -43,27 +44,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.METHOD_NOT_ALLOWED:
- return None
+ response_405 = Errors.from_dict(response.json())
+
+ return response_405
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +112,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: RelationshipsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Removes the specific Relationship from the Plan.
Args:
@@ -102,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +143,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ plan_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: RelationshipsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Removes the specific Relationship from the Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ relationship_id (str):
+ body (RelationshipsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
plan_id: str,
@@ -126,7 +183,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: RelationshipsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Removes the specific Relationship from the Plan.
Args:
@@ -140,7 +197,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +210,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ plan_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: RelationshipsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Removes the specific Relationship from the Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ relationship_id (str):
+ body (RelationshipsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/delete_plans.py b/polarion_rest_api_client/open_api_client/api/plans/delete_plans.py
index 0955a8c4..174b9a57 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/delete_plans.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/delete_plans.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.plans_list_delete_request import PlansListDeleteRequest
from ...types import Response
@@ -37,25 +38,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -64,7 +86,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -78,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PlansListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Plans.
Args:
@@ -90,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -105,12 +127,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PlansListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Plans.
+
+ Args:
+ project_id (str):
+ body (PlansListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: PlansListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Plans.
Args:
@@ -122,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -133,3 +182,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PlansListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Plans.
+
+ Args:
+ project_id (str):
+ body (PlansListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/get_plan.py b/polarion_rest_api_client/open_api_client/api/plans/get_plan.py
index e327853c..5f9f6ec3 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/get_plan.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/get_plan.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.plans_single_get_response import PlansSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -51,31 +52,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PlansSingleGetResponse]]:
+) -> Optional[Union[Errors, PlansSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = PlansSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PlansSingleGetResponse]]:
+) -> Response[Union[Errors, PlansSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -102,7 +110,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PlansSingleGetResponse]]:
+) -> Response[Union[Errors, PlansSingleGetResponse]]:
"""Returns the specified Plan.
Args:
@@ -117,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansSingleGetResponse]]
+ Response[Union[Errors, PlansSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -143,7 +151,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PlansSingleGetResponse]]:
+) -> Optional[Union[Errors, PlansSingleGetResponse]]:
"""Returns the specified Plan.
Args:
@@ -158,7 +166,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansSingleGetResponse]
+ Union[Errors, PlansSingleGetResponse]
"""
return sync_detailed(
@@ -179,7 +187,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, PlansSingleGetResponse]]:
+) -> Response[Union[Errors, PlansSingleGetResponse]]:
"""Returns the specified Plan.
Args:
@@ -194,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansSingleGetResponse]]
+ Response[Union[Errors, PlansSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -218,7 +226,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, PlansSingleGetResponse]]:
+) -> Optional[Union[Errors, PlansSingleGetResponse]]:
"""Returns the specified Plan.
Args:
@@ -233,7 +241,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansSingleGetResponse]
+ Union[Errors, PlansSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/plans/get_plan_relationship.py b/polarion_rest_api_client/open_api_client/api/plans/get_plan_relationship.py
index f8a0997f..358223a5 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/get_plan_relationship.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/get_plan_relationship.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationship_data_list_response import (
RelationshipDataListResponse,
)
@@ -23,14 +24,18 @@ def _get_kwargs(
plan_id: str,
relationship_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -39,10 +44,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -66,7 +67,7 @@ def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -100,26 +101,33 @@ def _parse_response_200(
response_200 = _parse_response_200(response.json())
return response_200
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
- if response.status_code == HTTPStatus.NOT_IMPLEMENTED:
- response_501 = cast(Any, None)
- return response_501
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -131,7 +139,7 @@ def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -151,14 +159,14 @@ def sync_detailed(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -170,10 +178,10 @@ def sync_detailed(
project_id (str):
plan_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -181,17 +189,17 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
+ Response[Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
"""
kwargs = _get_kwargs(
project_id=project_id,
plan_id=plan_id,
relationship_id=relationship_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -208,14 +216,14 @@ def sync(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -227,10 +235,10 @@ def sync(
project_id (str):
plan_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -238,7 +246,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
+ Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
"""
return sync_detailed(
@@ -246,10 +254,10 @@ def sync(
plan_id=plan_id,
relationship_id=relationship_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -260,14 +268,14 @@ async def asyncio_detailed(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -279,10 +287,10 @@ async def asyncio_detailed(
project_id (str):
plan_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -290,17 +298,17 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
+ Response[Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
"""
kwargs = _get_kwargs(
project_id=project_id,
plan_id=plan_id,
relationship_id=relationship_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -315,14 +323,14 @@ async def asyncio(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -334,10 +342,10 @@ async def asyncio(
project_id (str):
plan_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -345,7 +353,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
+ Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
"""
return (
@@ -354,10 +362,10 @@ async def asyncio(
plan_id=plan_id,
relationship_id=relationship_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/get_plans.py b/polarion_rest_api_client/open_api_client/api/plans/get_plans.py
index 3cc6ba6a..d31136a6 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/get_plans.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/get_plans.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.plans_list_get_response import PlansListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -16,16 +17,21 @@
def _get_kwargs(
project_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -34,14 +40,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params["templates"] = templates
params = {
@@ -61,31 +65,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PlansListGetResponse]]:
+) -> Optional[Union[Errors, PlansListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = PlansListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +106,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PlansListGetResponse]]:
+) -> Response[Union[Errors, PlansListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -108,24 +119,26 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Response[Union[Any, PlansListGetResponse]]:
+) -> Response[Union[Errors, PlansListGetResponse]]:
"""Returns a list of Plans.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -133,17 +146,18 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListGetResponse]]
+ Response[Union[Errors, PlansListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
@@ -158,24 +172,26 @@ def sync(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Optional[Union[Any, PlansListGetResponse]]:
+) -> Optional[Union[Errors, PlansListGetResponse]]:
"""Returns a list of Plans.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -183,18 +199,19 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListGetResponse]
+ Union[Errors, PlansListGetResponse]
"""
return sync_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
).parsed
@@ -203,24 +220,26 @@ async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Response[Union[Any, PlansListGetResponse]]:
+) -> Response[Union[Errors, PlansListGetResponse]]:
"""Returns a list of Plans.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -228,17 +247,18 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListGetResponse]]
+ Response[Union[Errors, PlansListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
@@ -251,24 +271,26 @@ async def asyncio(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Optional[Union[Any, PlansListGetResponse]]:
+) -> Optional[Union[Errors, PlansListGetResponse]]:
"""Returns a list of Plans.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -276,19 +298,20 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListGetResponse]
+ Union[Errors, PlansListGetResponse]
"""
return (
await asyncio_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/patch_plan.py b/polarion_rest_api_client/open_api_client/api/plans/patch_plan.py
index 3bc981a4..e2da0e8c 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/patch_plan.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/patch_plan.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.plans_single_patch_request import PlansSinglePatchRequest
from ...types import Response
@@ -39,27 +40,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +103,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PlansSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Plan.
Args:
@@ -96,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +132,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ plan_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PlansSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ body (PlansSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
plan_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: PlansSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Plan.
Args:
@@ -131,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +193,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ plan_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PlansSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Plan.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ body (PlansSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/patch_plan_relationships.py b/polarion_rest_api_client/open_api_client/api/plans/patch_plan_relationships.py
index 584d2c5d..7ceb3eb3 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/patch_plan_relationships.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/patch_plan_relationships.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationship_data_list_request import (
RelationshipDataListRequest,
)
@@ -52,25 +53,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -79,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -97,7 +119,7 @@ def sync_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Plan Relationships.
Args:
@@ -112,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -129,6 +151,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ plan_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Plan Relationships.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
plan_id: str,
@@ -138,7 +196,7 @@ async def asyncio_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Plan Relationships.
Args:
@@ -153,7 +211,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -166,3 +224,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ plan_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Plan Relationships.
+
+ Args:
+ project_id (str):
+ plan_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ plan_id=plan_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/plans/post_plan_relationships.py b/polarion_rest_api_client/open_api_client/api/plans/post_plan_relationships.py
index a1ef9084..e3f924b2 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/post_plan_relationships.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/post_plan_relationships.py
@@ -8,7 +8,7 @@
from ... import errors
from ...client import AuthenticatedClient, Client
-from ...models.plans_list_post_response import PlansListPostResponse
+from ...models.errors import Errors
from ...models.relationship_data_list_request import (
RelationshipDataListRequest,
)
@@ -53,37 +53,49 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PlansListPostResponse]]:
- if response.status_code == HTTPStatus.CREATED:
- response_201 = PlansListPostResponse.from_dict(response.json())
-
- return response_201
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
+ if response.status_code == HTTPStatus.METHOD_NOT_ALLOWED:
+ response_405 = Errors.from_dict(response.json())
+
+ return response_405
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -111,7 +123,7 @@ def sync_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Any, Errors]]:
"""Creates the specific Relationships for the Plan.
Args:
@@ -126,7 +138,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListPostResponse]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -152,7 +164,7 @@ def sync(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Optional[Union[Any, PlansListPostResponse]]:
+) -> Optional[Union[Any, Errors]]:
"""Creates the specific Relationships for the Plan.
Args:
@@ -167,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListPostResponse]
+ Union[Any, Errors]
"""
return sync_detailed(
@@ -188,7 +200,7 @@ async def asyncio_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Any, Errors]]:
"""Creates the specific Relationships for the Plan.
Args:
@@ -203,7 +215,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListPostResponse]]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -227,7 +239,7 @@ async def asyncio(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Optional[Union[Any, PlansListPostResponse]]:
+) -> Optional[Union[Any, Errors]]:
"""Creates the specific Relationships for the Plan.
Args:
@@ -242,7 +254,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListPostResponse]
+ Union[Any, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/plans/post_plans.py b/polarion_rest_api_client/open_api_client/api/plans/post_plans.py
index e32b1c85..b379cfeb 100644
--- a/polarion_rest_api_client/open_api_client/api/plans/post_plans.py
+++ b/polarion_rest_api_client/open_api_client/api/plans/post_plans.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.plans_list_post_request import PlansListPostRequest
from ...models.plans_list_post_response import PlansListPostResponse
from ...types import Response
@@ -38,40 +39,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, PlansListPostResponse]]:
+) -> Optional[Union[Errors, PlansListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = PlansListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -81,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Errors, PlansListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,7 +106,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PlansListPostRequest,
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Errors, PlansListPostResponse]]:
"""Creates a list of Plans.
Args:
@@ -107,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListPostResponse]]
+ Response[Union[Errors, PlansListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -127,7 +138,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PlansListPostRequest,
-) -> Optional[Union[Any, PlansListPostResponse]]:
+) -> Optional[Union[Errors, PlansListPostResponse]]:
"""Creates a list of Plans.
Args:
@@ -139,7 +150,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListPostResponse]
+ Union[Errors, PlansListPostResponse]
"""
return sync_detailed(
@@ -154,7 +165,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PlansListPostRequest,
-) -> Response[Union[Any, PlansListPostResponse]]:
+) -> Response[Union[Errors, PlansListPostResponse]]:
"""Creates a list of Plans.
Args:
@@ -166,7 +177,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, PlansListPostResponse]]
+ Response[Union[Errors, PlansListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -184,7 +195,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PlansListPostRequest,
-) -> Optional[Union[Any, PlansListPostResponse]]:
+) -> Optional[Union[Errors, PlansListPostResponse]]:
"""Creates a list of Plans.
Args:
@@ -196,7 +207,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, PlansListPostResponse]
+ Union[Errors, PlansListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/project_templates/get_project_templates.py b/polarion_rest_api_client/open_api_client/api/project_templates/get_project_templates.py
index 6001328c..e668f793 100644
--- a/polarion_rest_api_client/open_api_client/api/project_templates/get_project_templates.py
+++ b/polarion_rest_api_client/open_api_client/api/project_templates/get_project_templates.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.projecttemplates_list_get_response import (
ProjecttemplatesListGetResponse,
)
@@ -17,13 +18,17 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -32,10 +37,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -51,7 +52,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ProjecttemplatesListGetResponse]]:
+) -> Optional[Union[Errors, ProjecttemplatesListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = ProjecttemplatesListGetResponse.from_dict(
response.json()
@@ -59,25 +60,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -87,7 +95,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ProjecttemplatesListGetResponse]]:
+) -> Response[Union[Errors, ProjecttemplatesListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,32 +107,32 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, ProjecttemplatesListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, ProjecttemplatesListGetResponse]]:
"""Returns a list of Project Templates.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjecttemplatesListGetResponse]]
+ Response[Union[Errors, ProjecttemplatesListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
response = client.get_httpx_client().request(
@@ -137,65 +145,65 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, ProjecttemplatesListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, ProjecttemplatesListGetResponse]]:
"""Returns a list of Project Templates.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjecttemplatesListGetResponse]
+ Union[Errors, ProjecttemplatesListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, ProjecttemplatesListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, ProjecttemplatesListGetResponse]]:
"""Returns a list of Project Templates.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjecttemplatesListGetResponse]]
+ Response[Union[Errors, ProjecttemplatesListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -206,33 +214,33 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, ProjecttemplatesListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, ProjecttemplatesListGetResponse]]:
"""Returns a list of Project Templates.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjecttemplatesListGetResponse]
+ Union[Errors, ProjecttemplatesListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/create_project.py b/polarion_rest_api_client/open_api_client/api/projects/create_project.py
index ddee456e..3b4c8e85 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/create_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/create_project.py
@@ -9,6 +9,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
from ...models.create_project_request_body import CreateProjectRequestBody
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -34,17 +36,39 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -53,7 +77,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +90,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CreateProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Creates a new Project.
Args:
@@ -77,7 +101,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -91,11 +115,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: CreateProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Creates a new Project.
+
+ Args:
+ body (CreateProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CreateProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Creates a new Project.
Args:
@@ -106,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -116,3 +164,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: CreateProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Creates a new Project.
+
+ Args:
+ body (CreateProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/delete_project.py b/polarion_rest_api_client/open_api_client/api/projects/delete_project.py
index 61478991..0df79017 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/delete_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/delete_project.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -26,13 +28,23 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -41,7 +53,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -54,7 +66,7 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Deletes the specified Project.
Args:
@@ -65,7 +77,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -79,11 +91,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Deletes the specified Project.
+
+ Args:
+ project_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Deletes the specified Project.
Args:
@@ -94,7 +130,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -104,3 +140,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Deletes the specified Project.
+
+ Args:
+ project_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definition.py b/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definition.py
index 7cb1eef9..d0a3a7b7 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definition.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definition.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -28,19 +29,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -49,7 +69,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -63,7 +83,7 @@ def sync_detailed(
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter Definition for the specified
Project.
@@ -76,7 +96,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -91,12 +111,40 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter Definition for the specified
+ Project.
+
+ Args:
+ project_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_param_id=test_param_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter Definition for the specified
Project.
@@ -109,7 +157,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -120,3 +168,33 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter Definition for the specified
+ Project.
+
+ Args:
+ project_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_param_id=test_param_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definitions.py
new file mode 100644
index 00000000..60eccad0
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/projects/delete_project_test_parameter_definitions.py
@@ -0,0 +1,215 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testparameter_definitions_list_delete_request import (
+ TestparameterDefinitionsListDeleteRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ *,
+ body: TestparameterDefinitionsListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testparameterdefinitions".format(
+ projectId=project_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparameterDefinitionsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Parameter Definitions for the specified Project.
+
+ Args:
+ project_id (str):
+ body (TestparameterDefinitionsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparameterDefinitionsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Parameter Definitions for the specified Project.
+
+ Args:
+ project_id (str):
+ body (TestparameterDefinitionsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparameterDefinitionsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Parameter Definitions for the specified Project.
+
+ Args:
+ project_id (str):
+ body (TestparameterDefinitionsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparameterDefinitionsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Parameter Definitions for the specified Project.
+
+ Args:
+ project_id (str):
+ body (TestparameterDefinitionsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/get_project.py b/polarion_rest_api_client/open_api_client/api/projects/get_project.py
index 25300964..1957bea2 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/get_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/get_project.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.projects_single_get_response import ProjectsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -49,31 +50,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ProjectsSingleGetResponse]]:
+) -> Optional[Union[Errors, ProjectsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = ProjectsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ProjectsSingleGetResponse]]:
+) -> Response[Union[Errors, ProjectsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +107,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ProjectsSingleGetResponse]]:
+) -> Response[Union[Errors, ProjectsSingleGetResponse]]:
"""Returns the specified Project.
Args:
@@ -113,7 +121,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjectsSingleGetResponse]]
+ Response[Union[Errors, ProjectsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -137,7 +145,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ProjectsSingleGetResponse]]:
+) -> Optional[Union[Errors, ProjectsSingleGetResponse]]:
"""Returns the specified Project.
Args:
@@ -151,7 +159,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjectsSingleGetResponse]
+ Union[Errors, ProjectsSingleGetResponse]
"""
return sync_detailed(
@@ -170,7 +178,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ProjectsSingleGetResponse]]:
+) -> Response[Union[Errors, ProjectsSingleGetResponse]]:
"""Returns the specified Project.
Args:
@@ -184,7 +192,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjectsSingleGetResponse]]
+ Response[Union[Errors, ProjectsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -206,7 +214,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ProjectsSingleGetResponse]]:
+) -> Optional[Union[Errors, ProjectsSingleGetResponse]]:
"""Returns the specified Project.
Args:
@@ -220,7 +228,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjectsSingleGetResponse]
+ Union[Errors, ProjectsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definition.py b/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definition.py
index 9f280b8e..6bc7e917 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definition.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definition.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_single_get_response import (
TestparameterDefinitionsSingleGetResponse,
@@ -50,7 +51,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsSingleGetResponse.from_dict(
response.json()
@@ -58,25 +59,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -86,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -102,7 +110,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified
Project.
@@ -117,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -141,7 +149,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified
Project.
@@ -156,7 +164,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return sync_detailed(
@@ -175,7 +183,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified
Project.
@@ -190,7 +198,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -212,7 +220,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified
Project.
@@ -227,7 +235,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definitions.py
index 16465a8a..17f46cf9 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definitions.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/get_project_test_parameter_definitions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_list_get_response import (
TestparameterDefinitionsListGetResponse,
@@ -18,13 +19,17 @@
def _get_kwargs(
project_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -33,10 +38,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -54,7 +55,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsListGetResponse.from_dict(
response.json()
@@ -62,25 +63,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -90,7 +98,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -103,34 +111,34 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Project.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
response = client.get_httpx_client().request(
@@ -144,35 +152,35 @@ def sync(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Project.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
).parsed
@@ -180,34 +188,34 @@ async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Project.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -219,35 +227,35 @@ async def asyncio(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Project.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return (
await asyncio_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/get_projects.py b/polarion_rest_api_client/open_api_client/api/projects/get_projects.py
index 7ae3e134..a005b056 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/get_projects.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/get_projects.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.projects_list_get_response import ProjectsListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -15,15 +16,20 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -32,14 +38,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -55,31 +59,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, ProjectsListGetResponse]]:
+) -> Optional[Union[Errors, ProjectsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = ProjectsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, ProjectsListGetResponse]]:
+) -> Response[Union[Errors, ProjectsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,38 +112,41 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ProjectsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, ProjectsListGetResponse]]:
"""Returns a list of Projects.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjectsListGetResponse]]
+ Response[Union[Errors, ProjectsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = client.get_httpx_client().request(
@@ -145,77 +159,83 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ProjectsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, ProjectsListGetResponse]]:
"""Returns a list of Projects.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjectsListGetResponse]
+ Union[Errors, ProjectsListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, ProjectsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, ProjectsListGetResponse]]:
"""Returns a list of Projects.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, ProjectsListGetResponse]]
+ Response[Union[Errors, ProjectsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -226,39 +246,42 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, ProjectsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, ProjectsListGetResponse]]:
"""Returns a list of Projects.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, ProjectsListGetResponse]
+ Union[Errors, ProjectsListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/mark_project.py b/polarion_rest_api_client/open_api_client/api/projects/mark_project.py
index 538c43fe..2f7fc913 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/mark_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/mark_project.py
@@ -9,6 +9,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
from ...models.create_project_request_body import CreateProjectRequestBody
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -34,17 +36,39 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -53,7 +77,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +90,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CreateProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Marks the Project.
Args:
@@ -77,7 +101,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -91,11 +115,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: CreateProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Marks the Project.
+
+ Args:
+ body (CreateProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CreateProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Marks the Project.
Args:
@@ -106,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -116,3 +164,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: CreateProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Marks the Project.
+
+ Args:
+ body (CreateProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/move_project_action.py b/polarion_rest_api_client/open_api_client/api/projects/move_project_action.py
index 6de12213..781ecc1f 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/move_project_action.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/move_project_action.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...models.move_project_request_body import MoveProjectRequestBody
from ...types import Response
@@ -37,15 +39,39 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -54,7 +80,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -68,7 +94,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: MoveProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Moves project to a different location.
Args:
@@ -80,7 +106,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -95,12 +121,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MoveProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Moves project to a different location.
+
+ Args:
+ project_id (str):
+ body (MoveProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: MoveProjectRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Moves project to a different location.
Args:
@@ -112,7 +165,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -123,3 +176,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MoveProjectRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Moves project to a different location.
+
+ Args:
+ project_id (str):
+ body (MoveProjectRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/patch_project.py b/polarion_rest_api_client/open_api_client/api/projects/patch_project.py
index a4943f55..84f2bf0e 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/patch_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/patch_project.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.projects_single_patch_request import ProjectsSinglePatchRequest
from ...types import Response
@@ -37,27 +38,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +86,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -80,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: ProjectsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Project.
Args:
@@ -92,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -107,12 +127,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ProjectsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Project.
+
+ Args:
+ project_id (str):
+ body (ProjectsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: ProjectsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Project.
Args:
@@ -124,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -135,3 +182,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ProjectsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Project.
+
+ Args:
+ project_id (str):
+ body (ProjectsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/projects/post_project_test_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/projects/post_project_test_parameter_definitions.py
index f0f374c7..c00e0efe 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/post_project_test_parameter_definitions.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/post_project_test_parameter_definitions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testparameter_definitions_list_post_request import (
TestparameterDefinitionsListPostRequest,
)
@@ -42,7 +43,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestparameterDefinitionsListPostResponse.from_dict(
response.json()
@@ -50,34 +51,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -87,7 +98,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,7 +112,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Project.
Args:
@@ -113,7 +124,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListPostResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -133,7 +144,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Project.
Args:
@@ -145,7 +156,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListPostResponse]
+ Union[Errors, TestparameterDefinitionsListPostResponse]
"""
return sync_detailed(
@@ -160,7 +171,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Project.
Args:
@@ -172,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListPostResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -190,7 +201,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Project.
Args:
@@ -202,7 +213,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListPostResponse]
+ Union[Errors, TestparameterDefinitionsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/projects/unmark_project.py b/polarion_rest_api_client/open_api_client/api/projects/unmark_project.py
index ad3f98bd..5c659446 100644
--- a/polarion_rest_api_client/open_api_client/api/projects/unmark_project.py
+++ b/polarion_rest_api_client/open_api_client/api/projects/unmark_project.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -26,13 +28,27 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -41,7 +57,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -54,7 +70,7 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Unmarks the Project.
Args:
@@ -65,7 +81,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -79,11 +95,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Unmarks the Project.
+
+ Args:
+ project_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Unmarks the Project.
Args:
@@ -94,7 +134,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -104,3 +144,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Unmarks the Project.
+
+ Args:
+ project_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/revisions/get_revision.py b/polarion_rest_api_client/open_api_client/api/revisions/get_revision.py
index 2b9ffebe..05c79df8 100644
--- a/polarion_rest_api_client/open_api_client/api/revisions/get_revision.py
+++ b/polarion_rest_api_client/open_api_client/api/revisions/get_revision.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.revisions_single_get_response import RevisionsSingleGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -48,31 +49,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, RevisionsSingleGetResponse]]:
+) -> Optional[Union[Errors, RevisionsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = RevisionsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -82,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, RevisionsSingleGetResponse]]:
+) -> Response[Union[Errors, RevisionsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -98,7 +106,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, RevisionsSingleGetResponse]]:
+) -> Response[Union[Errors, RevisionsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -112,7 +120,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, RevisionsSingleGetResponse]]
+ Response[Union[Errors, RevisionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -136,7 +144,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, RevisionsSingleGetResponse]]:
+) -> Optional[Union[Errors, RevisionsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -150,7 +158,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, RevisionsSingleGetResponse]
+ Union[Errors, RevisionsSingleGetResponse]
"""
return sync_detailed(
@@ -169,7 +177,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, RevisionsSingleGetResponse]]:
+) -> Response[Union[Errors, RevisionsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -183,7 +191,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, RevisionsSingleGetResponse]]
+ Response[Union[Errors, RevisionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -205,7 +213,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, RevisionsSingleGetResponse]]:
+) -> Optional[Union[Errors, RevisionsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -219,7 +227,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, RevisionsSingleGetResponse]
+ Union[Errors, RevisionsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/revisions/get_revisions.py b/polarion_rest_api_client/open_api_client/api/revisions/get_revisions.py
index 0d35b04b..a0ed070d 100644
--- a/polarion_rest_api_client/open_api_client/api/revisions/get_revisions.py
+++ b/polarion_rest_api_client/open_api_client/api/revisions/get_revisions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.revisions_list_get_response import RevisionsListGetResponse
from ...models.sparse_fields import SparseFields
from ...types import UNSET, Response, Unset
@@ -15,15 +16,19 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -32,10 +37,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
@@ -55,31 +56,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, RevisionsListGetResponse]]:
+) -> Optional[Union[Errors, RevisionsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = RevisionsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +97,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, RevisionsListGetResponse]]:
+) -> Response[Union[Errors, RevisionsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,20 +109,20 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, RevisionsListGetResponse]]:
+) -> Response[Union[Errors, RevisionsListGetResponse]]:
"""Returns a list of instances.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
@@ -123,14 +131,14 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, RevisionsListGetResponse]]
+ Response[Union[Errors, RevisionsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
)
@@ -145,20 +153,20 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, RevisionsListGetResponse]]:
+) -> Optional[Union[Errors, RevisionsListGetResponse]]:
"""Returns a list of instances.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
@@ -167,15 +175,15 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, RevisionsListGetResponse]
+ Union[Errors, RevisionsListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
).parsed
@@ -184,20 +192,20 @@ def sync(
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, RevisionsListGetResponse]]:
+) -> Response[Union[Errors, RevisionsListGetResponse]]:
"""Returns a list of instances.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
@@ -206,14 +214,14 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, RevisionsListGetResponse]]
+ Response[Union[Errors, RevisionsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
)
@@ -226,20 +234,20 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, RevisionsListGetResponse]]:
+) -> Optional[Union[Errors, RevisionsListGetResponse]]:
"""Returns a list of instances.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
@@ -248,16 +256,16 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, RevisionsListGetResponse]
+ Union[Errors, RevisionsListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
)
diff --git a/polarion_rest_api_client/open_api_client/api/roles/get_role.py b/polarion_rest_api_client/open_api_client/api/roles/get_role.py
index 660505a7..0ee25371 100644
--- a/polarion_rest_api_client/open_api_client/api/roles/get_role.py
+++ b/polarion_rest_api_client/open_api_client/api/roles/get_role.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.globalroles_single_get_response import (
GlobalrolesSingleGetResponse,
)
@@ -48,31 +49,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, GlobalrolesSingleGetResponse]]:
+) -> Optional[Union[Errors, GlobalrolesSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = GlobalrolesSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -82,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, GlobalrolesSingleGetResponse]]:
+) -> Response[Union[Errors, GlobalrolesSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -97,8 +105,8 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, GlobalrolesSingleGetResponse]]:
- """Returns the specified Role.
+) -> Response[Union[Errors, GlobalrolesSingleGetResponse]]:
+ """Returns the specified Global Role.
Args:
role_id (str):
@@ -110,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, GlobalrolesSingleGetResponse]]
+ Response[Union[Errors, GlobalrolesSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -132,8 +140,8 @@ def sync(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, GlobalrolesSingleGetResponse]]:
- """Returns the specified Role.
+) -> Optional[Union[Errors, GlobalrolesSingleGetResponse]]:
+ """Returns the specified Global Role.
Args:
role_id (str):
@@ -145,7 +153,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, GlobalrolesSingleGetResponse]
+ Union[Errors, GlobalrolesSingleGetResponse]
"""
return sync_detailed(
@@ -162,8 +170,8 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, GlobalrolesSingleGetResponse]]:
- """Returns the specified Role.
+) -> Response[Union[Errors, GlobalrolesSingleGetResponse]]:
+ """Returns the specified Global Role.
Args:
role_id (str):
@@ -175,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, GlobalrolesSingleGetResponse]]
+ Response[Union[Errors, GlobalrolesSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -195,8 +203,8 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, GlobalrolesSingleGetResponse]]:
- """Returns the specified Role.
+) -> Optional[Union[Errors, GlobalrolesSingleGetResponse]]:
+ """Returns the specified Global Role.
Args:
role_id (str):
@@ -208,7 +216,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, GlobalrolesSingleGetResponse]
+ Union[Errors, GlobalrolesSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachment.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachment.py
new file mode 100644
index 00000000..4722def4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachment.py
@@ -0,0 +1,252 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+) -> Dict[str, Any]:
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/attachments/{attachmentId}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ attachmentId=attachment_id,
+ ),
+ }
+
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachments.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachments.py
new file mode 100644
index 00000000..856c85b3
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/delete_test_record_attachments.py
@@ -0,0 +1,271 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testrecord_attachments_list_delete_request import (
+ TestrecordAttachmentsListDeleteRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ body: TestrecordAttachmentsListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/attachments".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Record Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Record Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Record Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Record Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment.py
index 28592a86..fe455582 100644
--- a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrecord_attachments_single_get_response import (
TestrecordAttachmentsSingleGetResponse,
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrecordAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,7 +126,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
"""Returns the specified Test Record Attachment.
Args:
@@ -137,7 +145,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TestrecordAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -171,7 +179,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
"""Returns the specified Test Record Attachment.
Args:
@@ -190,7 +198,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsSingleGetResponse]
+ Union[Errors, TestrecordAttachmentsSingleGetResponse]
"""
return sync_detailed(
@@ -219,7 +227,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
"""Returns the specified Test Record Attachment.
Args:
@@ -238,7 +246,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TestrecordAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -270,7 +278,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsSingleGetResponse]]:
"""Returns the specified Test Record Attachment.
Args:
@@ -289,7 +297,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsSingleGetResponse]
+ Union[Errors, TestrecordAttachmentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment_content.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment_content.py
index 9e035e57..028c57e6 100644
--- a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -47,23 +48,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -91,7 +107,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Record Attachment.
Args:
@@ -108,7 +124,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -128,6 +144,48 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -138,7 +196,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Record Attachment.
Args:
@@ -155,7 +213,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -171,3 +229,47 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Record Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachments.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachments.py
index 93aaf99b..df5e8aad 100644
--- a/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/get_test_record_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrecord_attachments_list_get_response import (
TestrecordAttachmentsListGetResponse,
@@ -22,14 +23,18 @@ def _get_kwargs(
test_case_id: str,
iteration: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -38,10 +43,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -65,7 +66,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrecordAttachmentsListGetResponse.from_dict(
response.json()
@@ -73,25 +74,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -101,7 +109,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,12 +126,12 @@ def sync_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListGetResponse]]:
"""Returns a list of Test Record Attachments.
Args:
@@ -132,10 +140,10 @@ def sync_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -143,7 +151,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsListGetResponse]]
+ Response[Union[Errors, TestrecordAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -152,10 +160,10 @@ def sync_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -174,12 +182,12 @@ def sync(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListGetResponse]]:
"""Returns a list of Test Record Attachments.
Args:
@@ -188,10 +196,10 @@ def sync(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -199,7 +207,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsListGetResponse]
+ Union[Errors, TestrecordAttachmentsListGetResponse]
"""
return sync_detailed(
@@ -209,10 +217,10 @@ def sync(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -225,12 +233,12 @@ async def asyncio_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListGetResponse]]:
"""Returns a list of Test Record Attachments.
Args:
@@ -239,10 +247,10 @@ async def asyncio_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -250,7 +258,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsListGetResponse]]
+ Response[Union[Errors, TestrecordAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -259,10 +267,10 @@ async def asyncio_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -279,12 +287,12 @@ async def asyncio(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListGetResponse]]:
"""Returns a list of Test Record Attachments.
Args:
@@ -293,10 +301,10 @@ async def asyncio(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -304,7 +312,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsListGetResponse]
+ Union[Errors, TestrecordAttachmentsListGetResponse]
"""
return (
@@ -315,10 +323,10 @@ async def asyncio(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/patch_test_record_attachment.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/patch_test_record_attachment.py
new file mode 100644
index 00000000..a2138831
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/patch_test_record_attachment.py
@@ -0,0 +1,300 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.patch_test_record_attachments_request_body import (
+ PatchTestRecordAttachmentsRequestBody,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ body: PatchTestRecordAttachmentsRequestBody,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/attachments/{attachmentId}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ attachmentId=attachment_id,
+ ),
+ }
+
+ _body = body.to_multipart()
+
+ _kwargs["files"] = _body
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRecordAttachmentsRequestBody,
+) -> Response[Union[Any, Errors]]:
+ r"""Updates the specified Test Record Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ body (PatchTestRecordAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRecordAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Record Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ body (PatchTestRecordAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRecordAttachmentsRequestBody,
+) -> Response[Union[Any, Errors]]:
+ r"""Updates the specified Test Record Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ body (PatchTestRecordAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRecordAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Record Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ attachment_id (str):
+ body (PatchTestRecordAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_record_attachments/post_test_record_attachments.py b/polarion_rest_api_client/open_api_client/api/test_record_attachments/post_test_record_attachments.py
index b9ebc5fc..7fa0297d 100644
--- a/polarion_rest_api_client/open_api_client/api/test_record_attachments/post_test_record_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_record_attachments/post_test_record_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.post_test_record_attachments_request_body import (
PostTestRecordAttachmentsRequestBody,
)
@@ -49,7 +50,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestrecordAttachmentsListPostResponse.from_dict(
response.json()
@@ -57,34 +58,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -94,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -112,12 +123,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRecordAttachmentsRequestBody,
-) -> Response[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListPostResponse]]:
r"""Creates a list of Test Record Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -132,7 +144,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsListPostResponse]]
+ Response[Union[Errors, TestrecordAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -160,12 +172,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRecordAttachmentsRequestBody,
-) -> Optional[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListPostResponse]]:
r"""Creates a list of Test Record Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -180,7 +193,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsListPostResponse]
+ Union[Errors, TestrecordAttachmentsListPostResponse]
"""
return sync_detailed(
@@ -203,12 +216,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRecordAttachmentsRequestBody,
-) -> Response[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordAttachmentsListPostResponse]]:
r"""Creates a list of Test Record Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -223,7 +237,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordAttachmentsListPostResponse]]
+ Response[Union[Errors, TestrecordAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -249,12 +263,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRecordAttachmentsRequestBody,
-) -> Optional[Union[Any, TestrecordAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordAttachmentsListPostResponse]]:
r"""Creates a list of Test Record Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -269,7 +284,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordAttachmentsListPostResponse]
+ Union[Errors, TestrecordAttachmentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record.py b/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record.py
new file mode 100644
index 00000000..c086bb1f
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record.py
@@ -0,0 +1,238 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+) -> Dict[str, Any]:
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ ),
+ }
+
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record_test_parameter.py b/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record_test_parameter.py
index e9966cd9..f2ba9bcf 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record_test_parameter.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/delete_test_record_test_parameter.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -36,19 +37,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -57,7 +77,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -75,7 +95,7 @@ def sync_detailed(
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter for the specified Test Record.
Args:
@@ -91,7 +111,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -110,6 +130,45 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter for the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_param_id=test_param_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -119,7 +178,7 @@ async def asyncio_detailed(
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter for the specified Test Record.
Args:
@@ -135,7 +194,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -150,3 +209,44 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter for the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_param_id=test_param_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record.py b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record.py
index 78009161..81718bb0 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrecords_single_get_response import (
TestrecordsSingleGetResponse,
@@ -59,31 +60,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrecordsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -113,7 +121,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordsSingleGetResponse]]:
"""Returns the specified Test Record.
Args:
@@ -131,7 +139,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsSingleGetResponse]]
+ Response[Union[Errors, TestrecordsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -163,7 +171,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsSingleGetResponse]]:
"""Returns the specified Test Record.
Args:
@@ -181,7 +189,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsSingleGetResponse]
+ Union[Errors, TestrecordsSingleGetResponse]
"""
return sync_detailed(
@@ -208,7 +216,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrecordsSingleGetResponse]]:
"""Returns the specified Test Record.
Args:
@@ -226,7 +234,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsSingleGetResponse]]
+ Response[Union[Errors, TestrecordsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -256,7 +264,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsSingleGetResponse]]:
"""Returns the specified Test Record.
Args:
@@ -274,7 +282,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsSingleGetResponse]
+ Union[Errors, TestrecordsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameter.py b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameter.py
index 615742e2..eaf98df4 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameter.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameter.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameters_single_get_response import (
TestparametersSingleGetResponse,
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparametersSingleGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,7 +126,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Record.
Args:
@@ -137,7 +145,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersSingleGetResponse]]
+ Response[Union[Errors, TestparametersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -171,7 +179,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Record.
Args:
@@ -190,7 +198,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersSingleGetResponse]
+ Union[Errors, TestparametersSingleGetResponse]
"""
return sync_detailed(
@@ -219,7 +227,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Record.
Args:
@@ -238,7 +246,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersSingleGetResponse]]
+ Response[Union[Errors, TestparametersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -270,7 +278,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Record.
Args:
@@ -289,7 +297,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersSingleGetResponse]
+ Union[Errors, TestparametersSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameters.py b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameters.py
index 62f9d36a..81a937d4 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameters.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/get_test_record_test_parameters.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameters_list_get_response import (
TestparametersListGetResponse,
@@ -22,14 +23,18 @@ def _get_kwargs(
test_case_id: str,
iteration: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -38,10 +43,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -65,31 +66,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparametersListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -99,7 +107,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -116,12 +124,12 @@ def sync_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Record.
Args:
@@ -130,10 +138,10 @@ def sync_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -141,7 +149,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListGetResponse]]
+ Response[Union[Errors, TestparametersListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -150,10 +158,10 @@ def sync_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -172,12 +180,12 @@ def sync(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Record.
Args:
@@ -186,10 +194,10 @@ def sync(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -197,7 +205,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListGetResponse]
+ Union[Errors, TestparametersListGetResponse]
"""
return sync_detailed(
@@ -207,10 +215,10 @@ def sync(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -223,12 +231,12 @@ async def asyncio_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Record.
Args:
@@ -237,10 +245,10 @@ async def asyncio_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -248,7 +256,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListGetResponse]]
+ Response[Union[Errors, TestparametersListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -257,10 +265,10 @@ async def asyncio_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -277,12 +285,12 @@ async def asyncio(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Record.
Args:
@@ -291,10 +299,10 @@ async def asyncio(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -302,7 +310,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListGetResponse]
+ Union[Errors, TestparametersListGetResponse]
"""
return (
@@ -313,10 +321,10 @@ async def asyncio(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/get_test_records.py b/polarion_rest_api_client/open_api_client/api/test_records/get_test_records.py
index f726f54f..04875f46 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/get_test_records.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/get_test_records.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrecords_list_get_response import TestrecordsListGetResponse
from ...types import UNSET, Response, Unset
@@ -17,10 +18,10 @@ def _get_kwargs(
project_id: str,
test_run_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
test_case_project_id: Union[Unset, str] = UNSET,
test_case_id: Union[Unset, str] = UNSET,
@@ -28,6 +29,10 @@ def _get_kwargs(
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -36,10 +41,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params["testCaseProjectId"] = test_case_project_id
@@ -66,31 +67,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrecordsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -100,7 +108,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -114,24 +122,24 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
test_case_project_id: Union[Unset, str] = UNSET,
test_case_id: Union[Unset, str] = UNSET,
test_result_id: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordsListGetResponse]]:
"""Returns a list of Test Records.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
test_case_project_id (Union[Unset, str]):
test_case_id (Union[Unset, str]):
@@ -142,16 +150,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsListGetResponse]]
+ Response[Union[Errors, TestrecordsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
@@ -170,24 +178,24 @@ def sync(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
test_case_project_id: Union[Unset, str] = UNSET,
test_case_id: Union[Unset, str] = UNSET,
test_result_id: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsListGetResponse]]:
"""Returns a list of Test Records.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
test_case_project_id (Union[Unset, str]):
test_case_id (Union[Unset, str]):
@@ -198,17 +206,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsListGetResponse]
+ Union[Errors, TestrecordsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
@@ -221,24 +229,24 @@ async def asyncio_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
test_case_project_id: Union[Unset, str] = UNSET,
test_case_id: Union[Unset, str] = UNSET,
test_result_id: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrecordsListGetResponse]]:
+) -> Response[Union[Errors, TestrecordsListGetResponse]]:
"""Returns a list of Test Records.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
test_case_project_id (Union[Unset, str]):
test_case_id (Union[Unset, str]):
@@ -249,16 +257,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsListGetResponse]]
+ Response[Union[Errors, TestrecordsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
@@ -275,24 +283,24 @@ async def asyncio(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
test_case_project_id: Union[Unset, str] = UNSET,
test_case_id: Union[Unset, str] = UNSET,
test_result_id: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrecordsListGetResponse]]:
+) -> Optional[Union[Errors, TestrecordsListGetResponse]]:
"""Returns a list of Test Records.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
test_case_project_id (Union[Unset, str]):
test_case_id (Union[Unset, str]):
@@ -303,7 +311,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsListGetResponse]
+ Union[Errors, TestrecordsListGetResponse]
"""
return (
@@ -311,10 +319,10 @@ async def asyncio(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/patch_test_record.py b/polarion_rest_api_client/open_api_client/api/test_records/patch_test_record.py
index 0010aa51..92a32ab2 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/patch_test_record.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/patch_test_record.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testrecords_single_patch_request import (
TestrecordsSinglePatchRequest,
)
@@ -47,27 +48,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -76,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -94,7 +114,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Record.
Args:
@@ -110,7 +130,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -129,6 +149,45 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -138,7 +197,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Record.
Args:
@@ -154,7 +213,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -169,3 +228,44 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TestrecordsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/patch_test_records.py b/polarion_rest_api_client/open_api_client/api/test_records/patch_test_records.py
new file mode 100644
index 00000000..813cb459
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_records/patch_test_records.py
@@ -0,0 +1,229 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testrecords_list_patch_request import (
+ TestrecordsListPatchRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ body: TestrecordsListPatchRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Records.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrecordsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Records.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrecordsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Records.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrecordsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrecordsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Records.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrecordsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/post_test_record_test_parameters.py b/polarion_rest_api_client/open_api_client/api/test_records/post_test_record_test_parameters.py
index 7f9d87f4..30eca7cb 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/post_test_record_test_parameters.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/post_test_record_test_parameters.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testparameters_list_post_request import (
TestparametersListPostRequest,
)
@@ -50,7 +51,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestparametersListPostResponse.from_dict(
response.json()
@@ -58,34 +59,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +106,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -113,7 +124,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Record.
Args:
@@ -129,7 +140,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListPostResponse]]
+ Response[Union[Errors, TestparametersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -157,7 +168,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Record.
Args:
@@ -173,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListPostResponse]
+ Union[Errors, TestparametersListPostResponse]
"""
return sync_detailed(
@@ -196,7 +207,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Record.
Args:
@@ -212,7 +223,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListPostResponse]]
+ Response[Union[Errors, TestparametersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -238,7 +249,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Record.
Args:
@@ -254,7 +265,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListPostResponse]
+ Union[Errors, TestparametersListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_records/post_test_records.py b/polarion_rest_api_client/open_api_client/api/test_records/post_test_records.py
index 7da3b923..a8dd2ec9 100644
--- a/polarion_rest_api_client/open_api_client/api/test_records/post_test_records.py
+++ b/polarion_rest_api_client/open_api_client/api/test_records/post_test_records.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testrecords_list_post_request import TestrecordsListPostRequest
from ...models.testrecords_list_post_response import (
TestrecordsListPostResponse,
@@ -42,40 +43,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrecordsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestrecordsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrecordsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -100,7 +111,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsListPostRequest,
-) -> Response[Union[Any, TestrecordsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordsListPostResponse]]:
"""Creates a list of Test Records.
Args:
@@ -113,7 +124,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsListPostResponse]]
+ Response[Union[Errors, TestrecordsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -135,7 +146,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsListPostRequest,
-) -> Optional[Union[Any, TestrecordsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordsListPostResponse]]:
"""Creates a list of Test Records.
Args:
@@ -148,7 +159,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsListPostResponse]
+ Union[Errors, TestrecordsListPostResponse]
"""
return sync_detailed(
@@ -165,7 +176,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsListPostRequest,
-) -> Response[Union[Any, TestrecordsListPostResponse]]:
+) -> Response[Union[Errors, TestrecordsListPostResponse]]:
"""Creates a list of Test Records.
Args:
@@ -178,7 +189,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrecordsListPostResponse]]
+ Response[Union[Errors, TestrecordsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -198,7 +209,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestrecordsListPostRequest,
-) -> Optional[Union[Any, TestrecordsListPostResponse]]:
+) -> Optional[Union[Errors, TestrecordsListPostResponse]]:
"""Creates a list of Test Records.
Args:
@@ -211,7 +222,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrecordsListPostResponse]
+ Union[Errors, TestrecordsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachment.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachment.py
index 71c090a0..86f13706 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,23 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -55,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -70,7 +86,7 @@ def sync_detailed(
attachment_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Run Attachment.
Args:
@@ -83,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -99,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Run Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
attachment_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Run Attachment.
Args:
@@ -118,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -130,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Run Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachments.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachments.py
new file mode 100644
index 00000000..4f2f9438
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/delete_test_run_attachments.py
@@ -0,0 +1,229 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testrun_attachments_list_delete_request import (
+ TestrunAttachmentsListDeleteRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ body: TestrunAttachmentsListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/attachments".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Run Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Run Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Run Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Run Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment.py
index 7c8b7c38..49cbf674 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrun_attachments_single_get_response import (
TestrunAttachmentsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
"""Returns the specified Test Run Attachment.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TestrunAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
"""Returns the specified Test Run Attachment.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsSingleGetResponse]
+ Union[Errors, TestrunAttachmentsSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
"""Returns the specified Test Run Attachment.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TestrunAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsSingleGetResponse]]:
"""Returns the specified Test Run Attachment.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsSingleGetResponse]
+ Union[Errors, TestrunAttachmentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment_content.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment_content.py
index 82426259..087c8f8c 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -41,23 +42,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +82,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -82,7 +98,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Run Attachment.
Args:
@@ -96,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -113,6 +129,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Run Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -120,7 +169,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Run Attachment.
Args:
@@ -134,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -147,3 +196,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Run Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachments.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachments.py
index 80621768..65da6b75 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/get_test_run_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrun_attachments_list_get_response import (
TestrunAttachmentsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
test_run_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunAttachmentsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListGetResponse]]:
"""Returns a list of Test Run Attachments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsListGetResponse]]
+ Response[Union[Errors, TestrunAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListGetResponse]]:
"""Returns a list of Test Run Attachments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsListGetResponse]
+ Union[Errors, TestrunAttachmentsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListGetResponse]]:
"""Returns a list of Test Run Attachments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsListGetResponse]]
+ Response[Union[Errors, TestrunAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListGetResponse]]:
"""Returns a list of Test Run Attachments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsListGetResponse]
+ Union[Errors, TestrunAttachmentsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/patch_test_run_attachment.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/patch_test_run_attachment.py
index 9cebd356..df6f4b6d 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/patch_test_run_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/patch_test_run_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.patch_test_run_attachments_request_body import (
PatchTestRunAttachmentsRequestBody,
)
@@ -42,27 +43,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -71,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -87,11 +107,12 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchTestRunAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Test Run Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -104,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -121,6 +142,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRunAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Run Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+ body (PatchTestRunAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -128,11 +186,12 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchTestRunAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Test Run Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -145,7 +204,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -158,3 +217,42 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestRunAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Run Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ attachment_id (str):
+ body (PatchTestRunAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_attachments/post_test_run_attachments.py b/polarion_rest_api_client/open_api_client/api/test_run_attachments/post_test_run_attachments.py
index ea549e7d..cc4568bd 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_attachments/post_test_run_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_attachments/post_test_run_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.post_test_run_attachments_request_body import (
PostTestRunAttachmentsRequestBody,
)
@@ -43,7 +44,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestrunAttachmentsListPostResponse.from_dict(
response.json()
@@ -51,34 +52,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -88,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -103,12 +114,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRunAttachmentsRequestBody,
-) -> Response[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListPostResponse]]:
r"""Creates a list of Test Run Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -120,7 +132,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsListPostResponse]]
+ Response[Union[Errors, TestrunAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -142,12 +154,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRunAttachmentsRequestBody,
-) -> Optional[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListPostResponse]]:
r"""Creates a list of Test Run Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -159,7 +172,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsListPostResponse]
+ Union[Errors, TestrunAttachmentsListPostResponse]
"""
return sync_detailed(
@@ -176,12 +189,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRunAttachmentsRequestBody,
-) -> Response[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunAttachmentsListPostResponse]]:
r"""Creates a list of Test Run Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -193,7 +207,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunAttachmentsListPostResponse]]
+ Response[Union[Errors, TestrunAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -213,12 +227,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestRunAttachmentsRequestBody,
-) -> Optional[Union[Any, TestrunAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunAttachmentsListPostResponse]]:
r"""Creates a list of Test Run Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -230,7 +245,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunAttachmentsListPostResponse]
+ Union[Errors, TestrunAttachmentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comment.py b/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comment.py
index ba74705c..068b2d70 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrun_comments_single_get_response import (
TestrunCommentsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunCommentsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsSingleGetResponse]]:
"""Returns the specified Test Run Comment.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsSingleGetResponse]]
+ Response[Union[Errors, TestrunCommentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsSingleGetResponse]]:
"""Returns the specified Test Run Comment.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsSingleGetResponse]
+ Union[Errors, TestrunCommentsSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsSingleGetResponse]]:
"""Returns the specified Test Run Comment.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsSingleGetResponse]]
+ Response[Union[Errors, TestrunCommentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsSingleGetResponse]]:
"""Returns the specified Test Run Comment.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsSingleGetResponse]
+ Union[Errors, TestrunCommentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comments.py b/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comments.py
index fcc707a8..7ba3056d 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_comments/get_test_run_comments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testrun_comments_list_get_response import (
TestrunCommentsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
test_run_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunCommentsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListGetResponse]]:
"""Returns a list of Test Run Comments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsListGetResponse]]
+ Response[Union[Errors, TestrunCommentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListGetResponse]]:
"""Returns a list of Test Run Comments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsListGetResponse]
+ Union[Errors, TestrunCommentsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListGetResponse]]:
"""Returns a list of Test Run Comments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsListGetResponse]]
+ Response[Union[Errors, TestrunCommentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunCommentsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListGetResponse]]:
"""Returns a list of Test Run Comments.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsListGetResponse]
+ Union[Errors, TestrunCommentsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comment.py b/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comment.py
index 4cc3bc9f..85fd5615 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testrun_comments_single_patch_request import (
TestrunCommentsSinglePatchRequest,
)
@@ -43,27 +44,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +108,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Run Comment.
Args:
@@ -102,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +139,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Run Comment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ comment_id (str):
+ body (TestrunCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -126,7 +179,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Run Comment.
Args:
@@ -140,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +206,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Run Comment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ comment_id (str):
+ body (TestrunCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comments.py b/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comments.py
new file mode 100644
index 00000000..1163f60c
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_run_comments/patch_test_run_comments.py
@@ -0,0 +1,229 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testrun_comments_list_patch_request import (
+ TestrunCommentsListPatchRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ body: TestrunCommentsListPatchRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/comments".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Run Comments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunCommentsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Run Comments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunCommentsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Run Comments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunCommentsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunCommentsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Run Comments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunCommentsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_run_comments/post_test_run_comments.py b/polarion_rest_api_client/open_api_client/api/test_run_comments/post_test_run_comments.py
index b5bab06b..e5fbd40c 100644
--- a/polarion_rest_api_client/open_api_client/api/test_run_comments/post_test_run_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_run_comments/post_test_run_comments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testrun_comments_list_post_request import (
TestrunCommentsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestrunCommentsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsListPostRequest,
-) -> Response[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListPostResponse]]:
"""Creates a list of Test Run Comments.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsListPostResponse]]
+ Response[Union[Errors, TestrunCommentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsListPostRequest,
-) -> Optional[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListPostResponse]]:
"""Creates a list of Test Run Comments.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsListPostResponse]
+ Union[Errors, TestrunCommentsListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsListPostRequest,
-) -> Response[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Response[Union[Errors, TestrunCommentsListPostResponse]]:
"""Creates a list of Test Run Comments.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunCommentsListPostResponse]]
+ Response[Union[Errors, TestrunCommentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunCommentsListPostRequest,
-) -> Optional[Union[Any, TestrunCommentsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunCommentsListPostResponse]]:
"""Creates a list of Test Run Comments.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunCommentsListPostResponse]
+ Union[Errors, TestrunCommentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run.py b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run.py
index 7d8433c5..b804ea04 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -28,19 +29,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -49,7 +69,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -63,7 +83,7 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Run.
Args:
@@ -75,7 +95,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -90,12 +110,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Run.
Args:
@@ -107,7 +154,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -118,3 +165,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter.py b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter.py
index c7db356c..8af59e45 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,19 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -51,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +86,7 @@ def sync_detailed(
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter for the specified Test Run.
Args:
@@ -79,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -95,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_param_id=test_param_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter for the specified Test Run.
Args:
@@ -114,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_param_id=test_param_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter_definition.py b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter_definition.py
index 167fedbf..50b7bfe9 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter_definition.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameter_definition.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,19 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -51,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +86,7 @@ def sync_detailed(
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter Definition for the specified Test
Run.
@@ -80,7 +100,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -96,13 +116,44 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter Definition for the specified Test
+ Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_param_id=test_param_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
test_param_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Parameter Definition for the specified Test
Run.
@@ -116,7 +167,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -128,3 +179,36 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_param_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Parameter Definition for the specified Test
+ Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_param_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_param_id=test_param_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameters.py b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameters.py
new file mode 100644
index 00000000..57845b3b
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_run_test_parameters.py
@@ -0,0 +1,229 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testparameters_list_delete_request import (
+ TestparametersListDeleteRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ body: TestparametersListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testparameters".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparametersListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Parameters for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestparametersListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparametersListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Parameters for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestparametersListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparametersListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Parameters for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestparametersListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestparametersListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Parameters for the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestparametersListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_runs.py b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_runs.py
new file mode 100644
index 00000000..d240e4aa
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/delete_test_runs.py
@@ -0,0 +1,213 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testruns_list_delete_request import TestrunsListDeleteRequest
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ *,
+ body: TestrunsListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns".format(
+ projectId=project_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/export_excel_tests.py b/polarion_rest_api_client/open_api_client/api/test_runs/export_excel_tests.py
index 2e3eca37..405cfe82 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/export_excel_tests.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/export_excel_tests.py
@@ -8,7 +8,9 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.export_test_cases_request_body import ExportTestCasesRequestBody
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import Response
@@ -39,19 +41,47 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -60,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -75,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: ExportTestCasesRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Exports tests to Excel.
Args:
@@ -88,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -104,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ExportTestCasesRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (ExportTestCasesRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: ExportTestCasesRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Exports tests to Excel.
Args:
@@ -123,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -135,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: ExportTestCasesRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (ExportTestCasesRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_export_excel_tests.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_export_excel_tests.py
new file mode 100644
index 00000000..6a18cbd3
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_export_excel_tests.py
@@ -0,0 +1,259 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
+from ...types import UNSET, Response, Unset
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ query: Union[Unset, str] = UNSET,
+ sort_by: Union[Unset, str] = UNSET,
+ template: Union[Unset, str] = UNSET,
+) -> Dict[str, Any]:
+ params: Dict[str, Any] = {}
+
+ params["query"] = query
+
+ params["sortBy"] = sort_by
+
+ params["template"] = template
+
+ params = {
+ k: v for k, v in params.items() if v is not UNSET and v is not None
+ }
+
+ _kwargs: Dict[str, Any] = {
+ "method": "get",
+ "url": "/projects/{projectId}/testruns/{testRunId}/actions/exportTestsToExcel".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ "params": params,
+ }
+
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ query: Union[Unset, str] = UNSET,
+ sort_by: Union[Unset, str] = UNSET,
+ template: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ query (Union[Unset, str]):
+ sort_by (Union[Unset, str]):
+ template (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ query=query,
+ sort_by=sort_by,
+ template=template,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ query: Union[Unset, str] = UNSET,
+ sort_by: Union[Unset, str] = UNSET,
+ template: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ query (Union[Unset, str]):
+ sort_by (Union[Unset, str]):
+ template (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ query=query,
+ sort_by=sort_by,
+ template=template,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ query: Union[Unset, str] = UNSET,
+ sort_by: Union[Unset, str] = UNSET,
+ template: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ query (Union[Unset, str]):
+ sort_by (Union[Unset, str]):
+ template (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, JobsSinglePostResponse]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ query=query,
+ sort_by=sort_by,
+ template=template,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ query: Union[Unset, str] = UNSET,
+ sort_by: Union[Unset, str] = UNSET,
+ template: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Exports tests to Excel.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ query (Union[Unset, str]):
+ sort_by (Union[Unset, str]):
+ template (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ query=query,
+ sort_by=sort_by,
+ template=template,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run.py
index 23f417ac..0040b622 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testruns_single_get_response import TestrunsSingleGetResponse
from ...types import UNSET, Response, Unset
@@ -51,31 +52,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -102,7 +110,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunsSingleGetResponse]]:
"""Returns the specified Test Run.
Args:
@@ -117,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsSingleGetResponse]]
+ Response[Union[Errors, TestrunsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -143,7 +151,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunsSingleGetResponse]]:
"""Returns the specified Test Run.
Args:
@@ -158,7 +166,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsSingleGetResponse]
+ Union[Errors, TestrunsSingleGetResponse]
"""
return sync_detailed(
@@ -179,7 +187,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestrunsSingleGetResponse]]:
+) -> Response[Union[Errors, TestrunsSingleGetResponse]]:
"""Returns the specified Test Run.
Args:
@@ -194,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsSingleGetResponse]]
+ Response[Union[Errors, TestrunsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -218,7 +226,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestrunsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestrunsSingleGetResponse]]:
"""Returns the specified Test Run.
Args:
@@ -233,7 +241,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsSingleGetResponse]
+ Union[Errors, TestrunsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter.py
index 8fca10ab..9a0912be 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameters_single_get_response import (
TestparametersSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparametersSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Run.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersSingleGetResponse]]
+ Response[Union[Errors, TestparametersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Run.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersSingleGetResponse]
+ Union[Errors, TestparametersSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersSingleGetResponse]]:
+) -> Response[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Run.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersSingleGetResponse]]
+ Response[Union[Errors, TestparametersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparametersSingleGetResponse]]:
"""Returns the specified Test Parameter for the specified Test Run.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersSingleGetResponse]
+ Union[Errors, TestparametersSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definition.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definition.py
index 37ab84b6..23973eab 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definition.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definition.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_single_get_response import (
TestparameterDefinitionsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Test
Run.
@@ -126,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -154,7 +162,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Test
Run.
@@ -171,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return sync_detailed(
@@ -194,7 +202,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Test
Run.
@@ -211,7 +219,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -237,7 +245,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Test
Run.
@@ -254,7 +262,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definitions.py
index c64b12f1..bdbba9de 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definitions.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameter_definitions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_list_get_response import (
TestparameterDefinitionsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
test_run_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameters.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameters.py
index 543c9a40..6f6badc6 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameters.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_run_test_parameters.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameters_list_get_response import (
TestparametersListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
test_run_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,31 +60,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparametersListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -93,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -107,21 +115,21 @@ def sync_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -129,16 +137,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListGetResponse]]
+ Response[Union[Errors, TestparametersListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -154,21 +162,21 @@ def sync(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -176,17 +184,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListGetResponse]
+ Union[Errors, TestparametersListGetResponse]
"""
return sync_detailed(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -196,21 +204,21 @@ async def asyncio_detailed(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparametersListGetResponse]]:
+) -> Response[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -218,16 +226,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListGetResponse]]
+ Response[Union[Errors, TestparametersListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
test_run_id=test_run_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -241,21 +249,21 @@ async def asyncio(
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparametersListGetResponse]]:
+) -> Optional[Union[Errors, TestparametersListGetResponse]]:
"""Returns a list of Test Parameters for the specified Test Run.
Args:
project_id (str):
test_run_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -263,7 +271,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListGetResponse]
+ Union[Errors, TestparametersListGetResponse]
"""
return (
@@ -271,10 +279,10 @@ async def asyncio(
project_id=project_id,
test_run_id=test_run_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_runs.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_runs.py
index 99ed4176..af79e4d6 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/get_test_runs.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_test_runs.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testruns_list_get_response import TestrunsListGetResponse
from ...types import UNSET, Response, Unset
@@ -16,16 +17,21 @@
def _get_kwargs(
project_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -34,14 +40,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params["templates"] = templates
params = {
@@ -61,31 +65,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestrunsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +106,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunsListGetResponse]]:
+) -> Response[Union[Errors, TestrunsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -108,24 +119,26 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Response[Union[Any, TestrunsListGetResponse]]:
+) -> Response[Union[Errors, TestrunsListGetResponse]]:
"""Returns a list of Test Runs.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -133,17 +146,18 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsListGetResponse]]
+ Response[Union[Errors, TestrunsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
@@ -158,24 +172,26 @@ def sync(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Optional[Union[Any, TestrunsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunsListGetResponse]]:
"""Returns a list of Test Runs.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -183,18 +199,19 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsListGetResponse]
+ Union[Errors, TestrunsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
).parsed
@@ -203,24 +220,26 @@ async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Response[Union[Any, TestrunsListGetResponse]]:
+) -> Response[Union[Errors, TestrunsListGetResponse]]:
"""Returns a list of Test Runs.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -228,17 +247,18 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsListGetResponse]]
+ Response[Union[Errors, TestrunsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
@@ -251,24 +271,26 @@ async def asyncio(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
templates: Union[Unset, bool] = UNSET,
-) -> Optional[Union[Any, TestrunsListGetResponse]]:
+) -> Optional[Union[Errors, TestrunsListGetResponse]]:
"""Returns a list of Test Runs.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
templates (Union[Unset, bool]):
Raises:
@@ -276,19 +298,20 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsListGetResponse]
+ Union[Errors, TestrunsListGetResponse]
"""
return (
await asyncio_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
templates=templates,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/get_workflow_actions_for_test_run.py b/polarion_rest_api_client/open_api_client/api/test_runs/get_workflow_actions_for_test_run.py
new file mode 100644
index 00000000..8cc8eaa4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/get_workflow_actions_for_test_run.py
@@ -0,0 +1,255 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.workflow_actions_action_response_body import (
+ WorkflowActionsActionResponseBody,
+)
+from ...types import UNSET, Response, Unset
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ *,
+ pagesize: Union[Unset, int] = UNSET,
+ pagenumber: Union[Unset, int] = UNSET,
+ revision: Union[Unset, str] = UNSET,
+) -> Dict[str, Any]:
+ params: Dict[str, Any] = {}
+
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
+ params["revision"] = revision
+
+ params = {
+ k: v for k, v in params.items() if v is not UNSET and v is not None
+ }
+
+ _kwargs: Dict[str, Any] = {
+ "method": "get",
+ "url": "/projects/{projectId}/testruns/{testRunId}/actions/getWorkflowActions".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ ),
+ "params": params,
+ }
+
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
+ if response.status_code == HTTPStatus.OK:
+ response_200 = WorkflowActionsActionResponseBody.from_dict(
+ response.json()
+ )
+
+ return response_200
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ pagesize: Union[Unset, int] = UNSET,
+ pagenumber: Union[Unset, int] = UNSET,
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
+ """Returns a list of Workflow Actions.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ pagesize (Union[Unset, int]):
+ pagenumber (Union[Unset, int]):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, WorkflowActionsActionResponseBody]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ pagesize=pagesize,
+ pagenumber=pagenumber,
+ revision=revision,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ pagesize: Union[Unset, int] = UNSET,
+ pagenumber: Union[Unset, int] = UNSET,
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
+ """Returns a list of Workflow Actions.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ pagesize (Union[Unset, int]):
+ pagenumber (Union[Unset, int]):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, WorkflowActionsActionResponseBody]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ pagesize=pagesize,
+ pagenumber=pagenumber,
+ revision=revision,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ pagesize: Union[Unset, int] = UNSET,
+ pagenumber: Union[Unset, int] = UNSET,
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
+ """Returns a list of Workflow Actions.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ pagesize (Union[Unset, int]):
+ pagenumber (Union[Unset, int]):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Errors, WorkflowActionsActionResponseBody]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ pagesize=pagesize,
+ pagenumber=pagenumber,
+ revision=revision,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ pagesize: Union[Unset, int] = UNSET,
+ pagenumber: Union[Unset, int] = UNSET,
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
+ """Returns a list of Workflow Actions.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ pagesize (Union[Unset, int]):
+ pagenumber (Union[Unset, int]):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, WorkflowActionsActionResponseBody]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ pagesize=pagesize,
+ pagenumber=pagenumber,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/import_excel_test_results.py b/polarion_rest_api_client/open_api_client/api/test_runs/import_excel_test_results.py
index bba308d4..7bd3ce4d 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/import_excel_test_results.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/import_excel_test_results.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...models.post_import_action_request_body import (
PostImportActionRequestBody,
)
@@ -40,19 +42,43 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -61,7 +87,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -76,7 +102,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostImportActionRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Imports Excel test results.
Args:
@@ -89,7 +115,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -105,13 +131,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PostImportActionRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Imports Excel test results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (PostImportActionRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: PostImportActionRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Imports Excel test results.
Args:
@@ -124,7 +180,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -136,3 +192,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PostImportActionRequestBody,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Imports Excel test results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (PostImportActionRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/import_x_unit_test_results.py b/polarion_rest_api_client/open_api_client/api/test_runs/import_x_unit_test_results.py
index baad3602..8cc701c0 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/import_x_unit_test_results.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/import_x_unit_test_results.py
@@ -8,6 +8,8 @@
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.jobs_single_post_response import JobsSinglePostResponse
from ...types import File, Response
@@ -38,21 +40,43 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ if response.status_code == HTTPStatus.ACCEPTED:
+ response_202 = JobsSinglePostResponse.from_dict(response.json())
+
+ return response_202
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -61,7 +85,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -76,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: File,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Imports XUnit test results.
Args:
@@ -89,7 +113,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -105,13 +129,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: File,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Imports XUnit test results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (File):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: File,
-) -> Response[Any]:
+) -> Response[Union[Errors, JobsSinglePostResponse]]:
"""Imports XUnit test results.
Args:
@@ -124,7 +178,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Errors, JobsSinglePostResponse]]
"""
kwargs = _get_kwargs(
@@ -136,3 +190,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: File,
+) -> Optional[Union[Errors, JobsSinglePostResponse]]:
+ """Imports XUnit test results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (File):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Errors, JobsSinglePostResponse]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_run.py b/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_run.py
index ea92f136..2d49f5d7 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_run.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_run.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testruns_single_patch_request import TestrunsSinglePatchRequest
from ...types import Response
@@ -39,27 +40,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +103,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Run.
Args:
@@ -96,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +132,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Run.
Args:
@@ -131,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +193,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Run.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ body (TestrunsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_runs.py b/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_runs.py
new file mode 100644
index 00000000..67b7d82b
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/patch_test_runs.py
@@ -0,0 +1,213 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.testruns_list_patch_request import TestrunsListPatchRequest
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ *,
+ body: TestrunsListPatchRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns".format(
+ projectId=project_id,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TestrunsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Runs.
+
+ Args:
+ project_id (str):
+ body (TestrunsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_parameter_definitions.py
index bfcbb839..4314d82c 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_parameter_definitions.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_parameter_definitions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testparameter_definitions_list_post_request import (
TestparameterDefinitionsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestparameterDefinitionsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Test Run.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListPostResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Test Run.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListPostResponse]
+ Union[Errors, TestparameterDefinitionsListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Response[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Test Run.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListPostResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestparameterDefinitionsListPostRequest,
-) -> Optional[Union[Any, TestparameterDefinitionsListPostResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListPostResponse]]:
"""Creates a list of Test Parameter Definitions for the specified Test Run.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListPostResponse]
+ Union[Errors, TestparameterDefinitionsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_test_parameters.py b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_test_parameters.py
index 002e17f2..468990f9 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_test_parameters.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_run_test_parameters.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testparameters_list_post_request import (
TestparametersListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestparametersListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Run.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListPostResponse]]
+ Response[Union[Errors, TestparametersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Run.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListPostResponse]
+ Union[Errors, TestparametersListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Response[Union[Any, TestparametersListPostResponse]]:
+) -> Response[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Run.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparametersListPostResponse]]
+ Response[Union[Errors, TestparametersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestparametersListPostRequest,
-) -> Optional[Union[Any, TestparametersListPostResponse]]:
+) -> Optional[Union[Errors, TestparametersListPostResponse]]:
"""Creates a list of Test Parameters for the specified Test Run.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparametersListPostResponse]
+ Union[Errors, TestparametersListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_runs.py b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_runs.py
index f8fd702d..4d70fcf5 100644
--- a/polarion_rest_api_client/open_api_client/api/test_runs/post_test_runs.py
+++ b/polarion_rest_api_client/open_api_client/api/test_runs/post_test_runs.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.testruns_list_post_request import TestrunsListPostRequest
from ...models.testruns_list_post_response import TestrunsListPostResponse
from ...types import Response
@@ -38,40 +39,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestrunsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TestrunsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -81,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestrunsListPostResponse]]:
+) -> Response[Union[Errors, TestrunsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,7 +106,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsListPostRequest,
-) -> Response[Union[Any, TestrunsListPostResponse]]:
+) -> Response[Union[Errors, TestrunsListPostResponse]]:
"""Creates a list of Test Runs.
Args:
@@ -107,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsListPostResponse]]
+ Response[Union[Errors, TestrunsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -127,7 +138,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsListPostRequest,
-) -> Optional[Union[Any, TestrunsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunsListPostResponse]]:
"""Creates a list of Test Runs.
Args:
@@ -139,7 +150,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsListPostResponse]
+ Union[Errors, TestrunsListPostResponse]
"""
return sync_detailed(
@@ -154,7 +165,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsListPostRequest,
-) -> Response[Union[Any, TestrunsListPostResponse]]:
+) -> Response[Union[Errors, TestrunsListPostResponse]]:
"""Creates a list of Test Runs.
Args:
@@ -166,7 +177,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestrunsListPostResponse]]
+ Response[Union[Errors, TestrunsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -184,7 +195,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TestrunsListPostRequest,
-) -> Optional[Union[Any, TestrunsListPostResponse]]:
+) -> Optional[Union[Errors, TestrunsListPostResponse]]:
"""Creates a list of Test Runs.
Args:
@@ -196,7 +207,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestrunsListPostResponse]
+ Union[Errors, TestrunsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachment.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachment.py
new file mode 100644
index 00000000..1c41b7f6
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachment.py
@@ -0,0 +1,266 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+) -> Dict[str, Any]:
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/teststepresults/{testStepIndex}/attachments/{attachmentId}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ testStepIndex=test_step_index,
+ attachmentId=attachment_id,
+ ),
+ }
+
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Step Result Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Step Result Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Response[Union[Any, Errors]]:
+ """Deletes the specified Test Step Result Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Step Result Attachment.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachments.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachments.py
new file mode 100644
index 00000000..268b396d
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/delete_test_step_result_attachments.py
@@ -0,0 +1,285 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.teststepresult_attachments_list_delete_request import (
+ TeststepresultAttachmentsListDeleteRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ body: TeststepresultAttachmentsListDeleteRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "delete",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/teststepresults/{testStepIndex}/attachments".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ testStepIndex=test_step_index,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepresultAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Step Result Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepresultAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepresultAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Step Result Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepresultAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepresultAttachmentsListDeleteRequest,
+) -> Response[Union[Any, Errors]]:
+ """Deletes a list of Test Step Result Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepresultAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepresultAttachmentsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Step Result Attachments.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepresultAttachmentsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment.py
index fd6b6f2b..fe529207 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststepresult_attachments_single_get_response import (
TeststepresultAttachmentsSingleGetResponse,
@@ -63,7 +64,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepresultAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -71,25 +72,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -99,7 +107,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -121,7 +129,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
"""Returns the specified Test Step Result Attachment for the specified Test
Record.
@@ -142,7 +150,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -178,7 +186,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
"""Returns the specified Test Step Result Attachment for the specified Test
Record.
@@ -199,7 +207,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsSingleGetResponse]
+ Union[Errors, TeststepresultAttachmentsSingleGetResponse]
"""
return sync_detailed(
@@ -230,7 +238,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
"""Returns the specified Test Step Result Attachment for the specified Test
Record.
@@ -251,7 +259,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsSingleGetResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -285,7 +293,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepresultAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsSingleGetResponse]]:
"""Returns the specified Test Step Result Attachment for the specified Test
Record.
@@ -306,7 +314,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsSingleGetResponse]
+ Union[Errors, TeststepresultAttachmentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment_content.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment_content.py
index 9e8962e8..39d420a7 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -49,23 +50,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -74,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -94,7 +110,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Step Result Attachment
for the specified Test Record.
@@ -113,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -134,6 +150,52 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Step Result Attachment
+ for the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
test_run_id: str,
@@ -145,7 +207,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Test Step Result Attachment
for the specified Test Record.
@@ -164,7 +226,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -181,3 +243,51 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Test Step Result Attachment
+ for the specified Test Record.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachments.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachments.py
index c840a36e..3cb2c133 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/get_test_step_result_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststepresult_attachments_list_get_response import (
TeststepresultAttachmentsListGetResponse,
@@ -23,14 +24,18 @@ def _get_kwargs(
iteration: str,
test_step_index: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -39,10 +44,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -67,7 +68,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepresultAttachmentsListGetResponse.from_dict(
response.json()
@@ -75,25 +76,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -103,7 +111,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -121,12 +129,12 @@ def sync_detailed(
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
"""Returns a list of Attachments for the specified Test Step Result.
Args:
@@ -136,10 +144,10 @@ def sync_detailed(
test_case_id (str):
iteration (str):
test_step_index (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -147,7 +155,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsListGetResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -157,10 +165,10 @@ def sync_detailed(
test_case_id=test_case_id,
iteration=iteration,
test_step_index=test_step_index,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -180,12 +188,12 @@ def sync(
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
"""Returns a list of Attachments for the specified Test Step Result.
Args:
@@ -195,10 +203,10 @@ def sync(
test_case_id (str):
iteration (str):
test_step_index (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -206,7 +214,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsListGetResponse]
+ Union[Errors, TeststepresultAttachmentsListGetResponse]
"""
return sync_detailed(
@@ -217,10 +225,10 @@ def sync(
iteration=iteration,
test_step_index=test_step_index,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -234,12 +242,12 @@ async def asyncio_detailed(
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
"""Returns a list of Attachments for the specified Test Step Result.
Args:
@@ -249,10 +257,10 @@ async def asyncio_detailed(
test_case_id (str):
iteration (str):
test_step_index (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -260,7 +268,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsListGetResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -270,10 +278,10 @@ async def asyncio_detailed(
test_case_id=test_case_id,
iteration=iteration,
test_step_index=test_step_index,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -291,12 +299,12 @@ async def asyncio(
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepresultAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListGetResponse]]:
"""Returns a list of Attachments for the specified Test Step Result.
Args:
@@ -306,10 +314,10 @@ async def asyncio(
test_case_id (str):
iteration (str):
test_step_index (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -317,7 +325,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsListGetResponse]
+ Union[Errors, TeststepresultAttachmentsListGetResponse]
"""
return (
@@ -329,10 +337,10 @@ async def asyncio(
iteration=iteration,
test_step_index=test_step_index,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/patch_test_step_result_attachment.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/patch_test_step_result_attachment.py
new file mode 100644
index 00000000..260047a9
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/patch_test_step_result_attachment.py
@@ -0,0 +1,314 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.patch_test_step_result_attachments_request_body import (
+ PatchTestStepResultAttachmentsRequestBody,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ body: PatchTestStepResultAttachmentsRequestBody,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/teststepresults/{testStepIndex}/attachments/{attachmentId}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ testStepIndex=test_step_index,
+ attachmentId=attachment_id,
+ ),
+ }
+
+ _body = body.to_multipart()
+
+ _kwargs["files"] = _body
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestStepResultAttachmentsRequestBody,
+) -> Response[Union[Any, Errors]]:
+ r"""Updates the specified Test Step Result Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ body (PatchTestStepResultAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestStepResultAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Step Result Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ body (PatchTestStepResultAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestStepResultAttachmentsRequestBody,
+) -> Response[Union[Any, Errors]]:
+ r"""Updates the specified Test Step Result Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ body (PatchTestStepResultAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchTestStepResultAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Test Step Result Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ attachment_id (str):
+ body (PatchTestStepResultAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/post_test_step_result_attachments.py b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/post_test_step_result_attachments.py
index e1cfb89c..e37b2f87 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/post_test_step_result_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_result_attachments/post_test_step_result_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.post_test_step_result_attachments_request_body import (
PostTestStepResultAttachmentsRequestBody,
)
@@ -51,7 +52,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TeststepresultAttachmentsListPostResponse.from_dict(
response.json()
@@ -59,34 +60,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -96,7 +107,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -115,12 +126,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestStepResultAttachmentsRequestBody,
-) -> Response[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
r"""Creates a list of Test Step Result Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -136,7 +148,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsListPostResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -166,12 +178,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestStepResultAttachmentsRequestBody,
-) -> Optional[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
r"""Creates a list of Test Step Result Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -187,7 +200,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsListPostResponse]
+ Union[Errors, TeststepresultAttachmentsListPostResponse]
"""
return sync_detailed(
@@ -212,12 +225,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestStepResultAttachmentsRequestBody,
-) -> Response[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
r"""Creates a list of Test Step Result Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -233,7 +247,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepresultAttachmentsListPostResponse]]
+ Response[Union[Errors, TeststepresultAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -261,12 +275,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostTestStepResultAttachmentsRequestBody,
-) -> Optional[Union[Any, TeststepresultAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepresultAttachmentsListPostResponse]]:
r"""Creates a list of Test Step Result Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -282,7 +297,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepresultAttachmentsListPostResponse]
+ Union[Errors, TeststepresultAttachmentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_result.py b/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_result.py
index 2b9637be..c5acefba 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_result.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_result.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststep_results_single_get_response import (
TeststepResultsSingleGetResponse,
@@ -61,7 +62,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepResultsSingleGetResponse.from_dict(
response.json()
@@ -69,25 +70,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -97,7 +105,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,7 +126,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsSingleGetResponse]]:
"""Returns the specified Test Step Result.
Args:
@@ -137,7 +145,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsSingleGetResponse]]
+ Response[Union[Errors, TeststepResultsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -171,7 +179,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsSingleGetResponse]]:
"""Returns the specified Test Step Result.
Args:
@@ -190,7 +198,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsSingleGetResponse]
+ Union[Errors, TeststepResultsSingleGetResponse]
"""
return sync_detailed(
@@ -219,7 +227,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsSingleGetResponse]]:
"""Returns the specified Test Step Result.
Args:
@@ -238,7 +246,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsSingleGetResponse]]
+ Response[Union[Errors, TeststepResultsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -270,7 +278,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepResultsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsSingleGetResponse]]:
"""Returns the specified Test Step Result.
Args:
@@ -289,7 +297,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsSingleGetResponse]
+ Union[Errors, TeststepResultsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_results.py b/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_results.py
index f97f9a10..cdbe8db0 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_results.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_results/get_test_step_results.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststep_results_list_get_response import (
TeststepResultsListGetResponse,
@@ -22,14 +23,18 @@ def _get_kwargs(
test_case_id: str,
iteration: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -38,10 +43,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -65,7 +66,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepResultsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepResultsListGetResponse.from_dict(
response.json()
@@ -73,25 +74,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -101,7 +109,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepResultsListGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -118,12 +126,12 @@ def sync_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepResultsListGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsListGetResponse]]:
"""Returns a list of Test Step Results.
Args:
@@ -132,10 +140,10 @@ def sync_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -143,7 +151,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsListGetResponse]]
+ Response[Union[Errors, TeststepResultsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -152,10 +160,10 @@ def sync_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -174,12 +182,12 @@ def sync(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepResultsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListGetResponse]]:
"""Returns a list of Test Step Results.
Args:
@@ -188,10 +196,10 @@ def sync(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -199,7 +207,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsListGetResponse]
+ Union[Errors, TeststepResultsListGetResponse]
"""
return sync_detailed(
@@ -209,10 +217,10 @@ def sync(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -225,12 +233,12 @@ async def asyncio_detailed(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepResultsListGetResponse]]:
+) -> Response[Union[Errors, TeststepResultsListGetResponse]]:
"""Returns a list of Test Step Results.
Args:
@@ -239,10 +247,10 @@ async def asyncio_detailed(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -250,7 +258,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsListGetResponse]]
+ Response[Union[Errors, TeststepResultsListGetResponse]]
"""
kwargs = _get_kwargs(
@@ -259,10 +267,10 @@ async def asyncio_detailed(
test_case_project_id=test_case_project_id,
test_case_id=test_case_id,
iteration=iteration,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -279,12 +287,12 @@ async def asyncio(
iteration: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepResultsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListGetResponse]]:
"""Returns a list of Test Step Results.
Args:
@@ -293,10 +301,10 @@ async def asyncio(
test_case_project_id (str):
test_case_id (str):
iteration (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -304,7 +312,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsListGetResponse]
+ Union[Errors, TeststepResultsListGetResponse]
"""
return (
@@ -315,10 +323,10 @@ async def asyncio(
test_case_id=test_case_id,
iteration=iteration,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_result.py b/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_result.py
new file mode 100644
index 00000000..739d4a5d
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_result.py
@@ -0,0 +1,285 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.teststep_results_single_patch_request import (
+ TeststepResultsSinglePatchRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ body: TeststepResultsSinglePatchRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/teststepresults/{testStepIndex}".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ testStepIndex=test_step_index,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsSinglePatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates the specified Test Step Result.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepResultsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Step Result.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepResultsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsSinglePatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates the specified Test Step Result.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepResultsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Step Result.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ test_step_index (str):
+ body (TeststepResultsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_results.py b/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_results.py
new file mode 100644
index 00000000..701165da
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/api/test_step_results/patch_test_step_results.py
@@ -0,0 +1,271 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from http import HTTPStatus
+from typing import Any, Dict, Optional, Union, cast
+
+import httpx
+
+from ... import errors
+from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
+from ...models.teststep_results_list_patch_request import (
+ TeststepResultsListPatchRequest,
+)
+from ...types import Response
+
+
+def _get_kwargs(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ body: TeststepResultsListPatchRequest,
+) -> Dict[str, Any]:
+ headers: Dict[str, Any] = {}
+
+ _kwargs: Dict[str, Any] = {
+ "method": "patch",
+ "url": "/projects/{projectId}/testruns/{testRunId}/testrecords/{testCaseProjectId}/{testCaseId}/{iteration}/teststepresults".format(
+ projectId=project_id,
+ testRunId=test_run_id,
+ testCaseProjectId=test_case_project_id,
+ testCaseId=test_case_id,
+ iteration=iteration,
+ ),
+ }
+
+ _body = body.to_dict()
+
+ _kwargs["json"] = _body
+ headers["Content-Type"] = "application/json"
+
+ _kwargs["headers"] = headers
+ return _kwargs
+
+
+def _parse_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Optional[Union[Any, Errors]]:
+ if response.status_code == HTTPStatus.NO_CONTENT:
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.NOT_FOUND:
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
+ if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
+ if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
+ if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
+ if client.raise_on_unexpected_status:
+ raise errors.UnexpectedStatus(response.status_code, response.content)
+ else:
+ return None
+
+
+def _build_response(
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
+) -> Response[Union[Any, Errors]]:
+ return Response(
+ status_code=HTTPStatus(response.status_code),
+ content=response.content,
+ headers=response.headers,
+ parsed=_parse_response(client=client, response=response),
+ )
+
+
+def sync_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Step Results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TeststepResultsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ body=body,
+ )
+
+ response = client.get_httpx_client().request(
+ **kwargs,
+ )
+
+ return _build_response(client=client, response=response)
+
+
+def sync(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Step Results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TeststepResultsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ ).parsed
+
+
+async def asyncio_detailed(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsListPatchRequest,
+) -> Response[Union[Any, Errors]]:
+ """Updates a list of Test Step Results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TeststepResultsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Response[Union[Any, Errors]]
+ """
+
+ kwargs = _get_kwargs(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ body=body,
+ )
+
+ response = await client.get_async_httpx_client().request(**kwargs)
+
+ return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ test_run_id: str,
+ test_case_project_id: str,
+ test_case_id: str,
+ iteration: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepResultsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Step Results.
+
+ Args:
+ project_id (str):
+ test_run_id (str):
+ test_case_project_id (str):
+ test_case_id (str):
+ iteration (str):
+ body (TeststepResultsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ test_run_id=test_run_id,
+ test_case_project_id=test_case_project_id,
+ test_case_id=test_case_id,
+ iteration=iteration,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_step_results/post_test_step_results.py b/polarion_rest_api_client/open_api_client/api/test_step_results/post_test_step_results.py
index d01ee15d..bc8df8d5 100644
--- a/polarion_rest_api_client/open_api_client/api/test_step_results/post_test_step_results.py
+++ b/polarion_rest_api_client/open_api_client/api/test_step_results/post_test_step_results.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.teststep_results_list_post_request import (
TeststepResultsListPostRequest,
)
@@ -50,7 +51,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepResultsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TeststepResultsListPostResponse.from_dict(
response.json()
@@ -58,34 +59,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +106,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepResultsListPostResponse]]:
+) -> Response[Union[Errors, TeststepResultsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -113,7 +124,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepResultsListPostRequest,
-) -> Response[Union[Any, TeststepResultsListPostResponse]]:
+) -> Response[Union[Errors, TeststepResultsListPostResponse]]:
"""Creates a list of Test Step Results.
Args:
@@ -129,7 +140,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsListPostResponse]]
+ Response[Union[Errors, TeststepResultsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -157,7 +168,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepResultsListPostRequest,
-) -> Optional[Union[Any, TeststepResultsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListPostResponse]]:
"""Creates a list of Test Step Results.
Args:
@@ -173,7 +184,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsListPostResponse]
+ Union[Errors, TeststepResultsListPostResponse]
"""
return sync_detailed(
@@ -196,7 +207,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepResultsListPostRequest,
-) -> Response[Union[Any, TeststepResultsListPostResponse]]:
+) -> Response[Union[Errors, TeststepResultsListPostResponse]]:
"""Creates a list of Test Step Results.
Args:
@@ -212,7 +223,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepResultsListPostResponse]]
+ Response[Union[Errors, TeststepResultsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -238,7 +249,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepResultsListPostRequest,
-) -> Optional[Union[Any, TeststepResultsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepResultsListPostResponse]]:
"""Creates a list of Test Step Results.
Args:
@@ -254,7 +265,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepResultsListPostResponse]
+ Union[Errors, TeststepResultsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_step.py b/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_step.py
index 28c09558..005219e7 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_step.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_step.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,27 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.METHOD_NOT_ALLOWED:
- return None
- if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
- if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -59,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -74,7 +86,7 @@ def sync_detailed(
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Step.
Args:
@@ -87,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -103,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Step.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ test_step_index (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ test_step_index=test_step_index,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
test_step_index: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Test Step.
Args:
@@ -122,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -134,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Test Step.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ test_step_index (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ test_step_index=test_step_index,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_steps.py b/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_steps.py
index 0d5cdf0d..56613978 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_steps.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/delete_test_steps.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.teststeps_list_delete_request import TeststepsListDeleteRequest
from ...types import Response
@@ -39,25 +40,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -81,7 +103,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Test Steps.
Args:
@@ -94,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -110,13 +132,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Steps.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (TeststepsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Test Steps.
Args:
@@ -129,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -141,3 +193,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Test Steps.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (TeststepsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/get_test_step.py b/polarion_rest_api_client/open_api_client/api/test_steps/get_test_step.py
index a3babe4d..7bac08b0 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/get_test_step.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/get_test_step.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststeps_single_get_response import TeststepsSingleGetResponse
from ...types import UNSET, Response, Unset
@@ -53,31 +54,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -87,7 +95,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,7 +113,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepsSingleGetResponse]]:
"""Returns the specified Test Step.
Args:
@@ -121,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsSingleGetResponse]]
+ Response[Union[Errors, TeststepsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -149,7 +157,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepsSingleGetResponse]]:
"""Returns the specified Test Step.
Args:
@@ -165,7 +173,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsSingleGetResponse]
+ Union[Errors, TeststepsSingleGetResponse]
"""
return sync_detailed(
@@ -188,7 +196,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepsSingleGetResponse]]:
+) -> Response[Union[Errors, TeststepsSingleGetResponse]]:
"""Returns the specified Test Step.
Args:
@@ -204,7 +212,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsSingleGetResponse]]
+ Response[Union[Errors, TeststepsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -230,7 +238,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepsSingleGetResponse]]:
+) -> Optional[Union[Errors, TeststepsSingleGetResponse]]:
"""Returns the specified Test Step.
Args:
@@ -246,7 +254,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsSingleGetResponse]
+ Union[Errors, TeststepsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/get_test_steps.py b/polarion_rest_api_client/open_api_client/api/test_steps/get_test_steps.py
index 8ca594ff..cb95e2b8 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/get_test_steps.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/get_test_steps.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.teststeps_list_get_response import TeststepsListGetResponse
from ...types import UNSET, Response, Unset
@@ -17,14 +18,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -33,10 +38,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -57,31 +58,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TeststepsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepsListGetResponse]]:
+) -> Response[Union[Errors, TeststepsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,21 +113,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepsListGetResponse]]:
+) -> Response[Union[Errors, TeststepsListGetResponse]]:
"""Returns a list of Test Steps.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -127,16 +135,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsListGetResponse]]
+ Response[Union[Errors, TeststepsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -152,21 +160,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepsListGetResponse]]:
"""Returns a list of Test Steps.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -174,17 +182,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsListGetResponse]
+ Union[Errors, TeststepsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -194,21 +202,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TeststepsListGetResponse]]:
+) -> Response[Union[Errors, TeststepsListGetResponse]]:
"""Returns a list of Test Steps.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -216,16 +224,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsListGetResponse]]
+ Response[Union[Errors, TeststepsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -239,21 +247,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TeststepsListGetResponse]]:
+) -> Optional[Union[Errors, TeststepsListGetResponse]]:
"""Returns a list of Test Steps.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -261,7 +269,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsListGetResponse]
+ Union[Errors, TeststepsListGetResponse]
"""
return (
@@ -269,10 +277,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_step.py b/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_step.py
index 53a7cfd5..100b4bba 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_step.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_step.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.teststeps_single_patch_request import (
TeststepsSinglePatchRequest,
)
@@ -43,27 +44,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +108,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Step.
Args:
@@ -102,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +139,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Step.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ test_step_index (str):
+ body (TeststepsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -126,7 +179,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Test Step.
Args:
@@ -140,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +206,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ test_step_index: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Test Step.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ test_step_index (str):
+ body (TeststepsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ test_step_index=test_step_index,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_steps.py b/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_steps.py
index f34f634a..6e3064f8 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_steps.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/patch_test_steps.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.teststeps_list_patch_request import TeststepsListPatchRequest
from ...types import Response
@@ -39,27 +40,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +88,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +103,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Test Steps.
Args:
@@ -96,7 +116,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +132,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Steps.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (TeststepsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Test Steps.
Args:
@@ -131,7 +181,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +193,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: TeststepsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Test Steps.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (TeststepsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/test_steps/post_test_steps.py b/polarion_rest_api_client/open_api_client/api/test_steps/post_test_steps.py
index b214ed64..1c37064c 100644
--- a/polarion_rest_api_client/open_api_client/api/test_steps/post_test_steps.py
+++ b/polarion_rest_api_client/open_api_client/api/test_steps/post_test_steps.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.teststeps_list_post_request import TeststepsListPostRequest
from ...models.teststeps_list_post_response import TeststepsListPostResponse
from ...types import Response
@@ -40,40 +41,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TeststepsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = TeststepsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +94,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TeststepsListPostResponse]]:
+) -> Response[Union[Errors, TeststepsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -98,7 +109,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPostRequest,
-) -> Response[Union[Any, TeststepsListPostResponse]]:
+) -> Response[Union[Errors, TeststepsListPostResponse]]:
"""Creates a list of Test Steps.
Args:
@@ -111,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsListPostResponse]]
+ Response[Union[Errors, TeststepsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -133,7 +144,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPostRequest,
-) -> Optional[Union[Any, TeststepsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepsListPostResponse]]:
"""Creates a list of Test Steps.
Args:
@@ -146,7 +157,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsListPostResponse]
+ Union[Errors, TeststepsListPostResponse]
"""
return sync_detailed(
@@ -163,7 +174,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPostRequest,
-) -> Response[Union[Any, TeststepsListPostResponse]]:
+) -> Response[Union[Errors, TeststepsListPostResponse]]:
"""Creates a list of Test Steps.
Args:
@@ -176,7 +187,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TeststepsListPostResponse]]
+ Response[Union[Errors, TeststepsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -196,7 +207,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: TeststepsListPostRequest,
-) -> Optional[Union[Any, TeststepsListPostResponse]]:
+) -> Optional[Union[Errors, TeststepsListPostResponse]]:
"""Creates a list of Test Steps.
Args:
@@ -209,7 +220,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TeststepsListPostResponse]
+ Union[Errors, TeststepsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/user_groups/get_user_group.py b/polarion_rest_api_client/open_api_client/api/user_groups/get_user_group.py
index f5338ec1..fcf39d33 100644
--- a/polarion_rest_api_client/open_api_client/api/user_groups/get_user_group.py
+++ b/polarion_rest_api_client/open_api_client/api/user_groups/get_user_group.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.usergroups_single_get_response import (
UsergroupsSingleGetResponse,
@@ -51,31 +52,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Optional[Union[Errors, UsergroupsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = UsergroupsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Response[Union[Errors, UsergroupsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,7 +109,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Response[Union[Errors, UsergroupsSingleGetResponse]]:
"""Returns the specified User Group.
Args:
@@ -115,7 +123,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsergroupsSingleGetResponse]]
+ Response[Union[Errors, UsergroupsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +147,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Optional[Union[Errors, UsergroupsSingleGetResponse]]:
"""Returns the specified User Group.
Args:
@@ -153,7 +161,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsergroupsSingleGetResponse]
+ Union[Errors, UsergroupsSingleGetResponse]
"""
return sync_detailed(
@@ -172,7 +180,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Response[Union[Errors, UsergroupsSingleGetResponse]]:
"""Returns the specified User Group.
Args:
@@ -186,7 +194,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsergroupsSingleGetResponse]]
+ Response[Union[Errors, UsergroupsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -208,7 +216,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsergroupsSingleGetResponse]]:
+) -> Optional[Union[Errors, UsergroupsSingleGetResponse]]:
"""Returns the specified User Group.
Args:
@@ -222,7 +230,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsergroupsSingleGetResponse]
+ Union[Errors, UsergroupsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/users/get_avatar.py b/polarion_rest_api_client/open_api_client/api/users/get_avatar.py
index 8d963d19..c295094a 100644
--- a/polarion_rest_api_client/open_api_client/api/users/get_avatar.py
+++ b/polarion_rest_api_client/open_api_client/api/users/get_avatar.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -26,21 +27,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -49,7 +67,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -62,7 +80,7 @@ def sync_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Returns the specified User Avatar.
Args:
@@ -73,7 +91,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -87,11 +105,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Returns the specified User Avatar.
+
+ Args:
+ user_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ user_id=user_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Returns the specified User Avatar.
Args:
@@ -102,7 +144,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,3 +154,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Returns the specified User Avatar.
+
+ Args:
+ user_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ user_id=user_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/users/get_user.py b/polarion_rest_api_client/open_api_client/api/users/get_user.py
index 0924d8f3..7bdea543 100644
--- a/polarion_rest_api_client/open_api_client/api/users/get_user.py
+++ b/polarion_rest_api_client/open_api_client/api/users/get_user.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.users_single_get_response import UsersSingleGetResponse
from ...types import UNSET, Response, Unset
@@ -49,31 +50,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, UsersSingleGetResponse]]:
+) -> Optional[Union[Errors, UsersSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = UsersSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, UsersSingleGetResponse]]:
+) -> Response[Union[Errors, UsersSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +107,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsersSingleGetResponse]]:
+) -> Response[Union[Errors, UsersSingleGetResponse]]:
"""Returns the specified User.
Args:
@@ -113,7 +121,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersSingleGetResponse]]
+ Response[Union[Errors, UsersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -137,7 +145,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsersSingleGetResponse]]:
+) -> Optional[Union[Errors, UsersSingleGetResponse]]:
"""Returns the specified User.
Args:
@@ -151,7 +159,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersSingleGetResponse]
+ Union[Errors, UsersSingleGetResponse]
"""
return sync_detailed(
@@ -170,7 +178,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsersSingleGetResponse]]:
+) -> Response[Union[Errors, UsersSingleGetResponse]]:
"""Returns the specified User.
Args:
@@ -184,7 +192,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersSingleGetResponse]]
+ Response[Union[Errors, UsersSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -206,7 +214,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsersSingleGetResponse]]:
+) -> Optional[Union[Errors, UsersSingleGetResponse]]:
"""Returns the specified User.
Args:
@@ -220,7 +228,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersSingleGetResponse]
+ Union[Errors, UsersSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/users/get_users.py b/polarion_rest_api_client/open_api_client/api/users/get_users.py
index 7c6d4430..8c881b90 100644
--- a/polarion_rest_api_client/open_api_client/api/users/get_users.py
+++ b/polarion_rest_api_client/open_api_client/api/users/get_users.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.users_list_get_response import UsersListGetResponse
from ...types import UNSET, Response, Unset
@@ -15,15 +16,20 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -32,14 +38,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -55,31 +59,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, UsersListGetResponse]]:
+) -> Optional[Union[Errors, UsersListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = UsersListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, UsersListGetResponse]]:
+) -> Response[Union[Errors, UsersListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,38 +112,41 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsersListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, UsersListGetResponse]]:
"""Returns a list of Users.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersListGetResponse]]
+ Response[Union[Errors, UsersListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = client.get_httpx_client().request(
@@ -145,77 +159,83 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsersListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, UsersListGetResponse]]:
"""Returns a list of Users.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersListGetResponse]
+ Union[Errors, UsersListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, UsersListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, UsersListGetResponse]]:
"""Returns a list of Users.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersListGetResponse]]
+ Response[Union[Errors, UsersListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -226,39 +246,42 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, UsersListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, UsersListGetResponse]]:
"""Returns a list of Users.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersListGetResponse]
+ Union[Errors, UsersListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/users/patch_user.py b/polarion_rest_api_client/open_api_client/api/users/patch_user.py
index 2c236836..b4435c96 100644
--- a/polarion_rest_api_client/open_api_client/api/users/patch_user.py
+++ b/polarion_rest_api_client/open_api_client/api/users/patch_user.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.users_single_patch_request import UsersSinglePatchRequest
from ...types import Response
@@ -37,27 +38,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +86,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -80,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: UsersSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified User.
Args:
@@ -92,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -107,12 +127,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: UsersSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified User.
+
+ Args:
+ user_id (str):
+ body (UsersSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: UsersSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified User.
Args:
@@ -124,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -135,3 +182,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: UsersSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified User.
+
+ Args:
+ user_id (str):
+ body (UsersSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/users/post_users.py b/polarion_rest_api_client/open_api_client/api/users/post_users.py
index 11e5d5a4..5454bf37 100644
--- a/polarion_rest_api_client/open_api_client/api/users/post_users.py
+++ b/polarion_rest_api_client/open_api_client/api/users/post_users.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.users_list_post_request import UsersListPostRequest
from ...models.users_list_post_response import UsersListPostResponse
from ...types import Response
@@ -35,40 +36,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, UsersListPostResponse]]:
+) -> Optional[Union[Errors, UsersListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = UsersListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -78,7 +89,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, UsersListPostResponse]]:
+) -> Response[Union[Errors, UsersListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -91,7 +102,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: UsersListPostRequest,
-) -> Response[Union[Any, UsersListPostResponse]]:
+) -> Response[Union[Errors, UsersListPostResponse]]:
"""Creates a list of Users.
Args:
@@ -102,7 +113,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersListPostResponse]]
+ Response[Union[Errors, UsersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -120,7 +131,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: UsersListPostRequest,
-) -> Optional[Union[Any, UsersListPostResponse]]:
+) -> Optional[Union[Errors, UsersListPostResponse]]:
"""Creates a list of Users.
Args:
@@ -131,7 +142,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersListPostResponse]
+ Union[Errors, UsersListPostResponse]
"""
return sync_detailed(
@@ -144,7 +155,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: UsersListPostRequest,
-) -> Response[Union[Any, UsersListPostResponse]]:
+) -> Response[Union[Errors, UsersListPostResponse]]:
"""Creates a list of Users.
Args:
@@ -155,7 +166,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, UsersListPostResponse]]
+ Response[Union[Errors, UsersListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -171,7 +182,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: UsersListPostRequest,
-) -> Optional[Union[Any, UsersListPostResponse]]:
+) -> Optional[Union[Errors, UsersListPostResponse]]:
"""Creates a list of Users.
Args:
@@ -182,7 +193,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, UsersListPostResponse]
+ Union[Errors, UsersListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/users/set_license.py b/polarion_rest_api_client/open_api_client/api/users/set_license.py
index 1a45f018..db015121 100644
--- a/polarion_rest_api_client/open_api_client/api/users/set_license.py
+++ b/polarion_rest_api_client/open_api_client/api/users/set_license.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.set_license_request_body import SetLicenseRequestBody
from ...types import Response
@@ -37,27 +38,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +86,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -80,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: SetLicenseRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Sets the User's license.
Args:
@@ -92,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -107,12 +127,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: SetLicenseRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Sets the User's license.
+
+ Args:
+ user_id (str):
+ body (SetLicenseRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: SetLicenseRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Sets the User's license.
Args:
@@ -124,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -135,3 +182,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: SetLicenseRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Sets the User's license.
+
+ Args:
+ user_id (str):
+ body (SetLicenseRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/users/update_avatar.py b/polarion_rest_api_client/open_api_client/api/users/update_avatar.py
index dae8fad6..c1b5b13f 100644
--- a/polarion_rest_api_client/open_api_client/api/users/update_avatar.py
+++ b/polarion_rest_api_client/open_api_client/api/users/update_avatar.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.update_avatar_request_body import UpdateAvatarRequestBody
from ...types import Response
@@ -36,27 +37,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -65,7 +85,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -79,7 +99,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: UpdateAvatarRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified User Avatar.
Args:
@@ -91,7 +111,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -106,12 +126,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: UpdateAvatarRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified User Avatar.
+
+ Args:
+ user_id (str):
+ body (UpdateAvatarRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: UpdateAvatarRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified User Avatar.
Args:
@@ -123,7 +170,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -134,3 +181,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: UpdateAvatarRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified User Avatar.
+
+ Args:
+ user_id (str):
+ body (UpdateAvatarRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ user_id=user_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approval.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approval.py
index 9cd91d02..3b7587f5 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approval.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approval.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,19 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -51,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +86,7 @@ def sync_detailed(
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Item Approval.
Args:
@@ -79,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -95,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Item Approval.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ user_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ user_id=user_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
user_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Item Approval.
Args:
@@ -114,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Item Approval.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ user_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ user_id=user_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approvals.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approvals.py
index 0768c623..33e0bc4b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approvals.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/delete_approvals.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_approvals_list_delete_request import (
WorkitemApprovalsListDeleteRequest,
)
@@ -41,25 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Item Approvals.
Args:
@@ -96,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Item Approvals.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkitemApprovalsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Item Approvals.
Args:
@@ -131,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Item Approvals.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkitemApprovalsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approval.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approval.py
index 38046f7a..ccc75cfa 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approval.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approval.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_approvals_single_get_response import (
WorkitemApprovalsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemApprovalsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsSingleGetResponse]]
+ Response[Union[Errors, WorkitemApprovalsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsSingleGetResponse]
+ Union[Errors, WorkitemApprovalsSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsSingleGetResponse]]
+ Response[Union[Errors, WorkitemApprovalsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemApprovalsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsSingleGetResponse]
+ Union[Errors, WorkitemApprovalsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approvals.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approvals.py
index bb7e83be..0bc313a7 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approvals.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/get_work_item_approvals.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_approvals_list_get_response import (
WorkitemApprovalsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemApprovalsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsListGetResponse]]
+ Response[Union[Errors, WorkitemApprovalsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsListGetResponse]
+ Union[Errors, WorkitemApprovalsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsListGetResponse]]
+ Response[Union[Errors, WorkitemApprovalsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemApprovalsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsListGetResponse]
+ Union[Errors, WorkitemApprovalsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approval.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approval.py
index 2145b1d6..f485770c 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approval.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approval.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_approvals_single_patch_request import (
WorkitemApprovalsSinglePatchRequest,
)
@@ -43,27 +44,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +108,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified instance.
Args:
@@ -102,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +139,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified instance.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ user_id (str):
+ body (WorkitemApprovalsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ user_id=user_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -126,7 +179,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified instance.
Args:
@@ -140,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +206,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ user_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified instance.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ user_id (str):
+ body (WorkitemApprovalsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ user_id=user_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approvals.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approvals.py
index fe11e92a..1f611992 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approvals.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/patch_work_item_approvals.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_approvals_list_patch_request import (
WorkitemApprovalsListPatchRequest,
)
@@ -41,27 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -70,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -85,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of instances.
Args:
@@ -98,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -114,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of instances.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkitemApprovalsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of instances.
Args:
@@ -133,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -145,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemApprovalsListPatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of instances.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkitemApprovalsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_approvals/post_work_item_approvals.py b/polarion_rest_api_client/open_api_client/api/work_item_approvals/post_work_item_approvals.py
index e616099f..f6361e3a 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_approvals/post_work_item_approvals.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_approvals/post_work_item_approvals.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_approvals_list_post_request import (
WorkitemApprovalsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = WorkitemApprovalsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPostRequest,
-) -> Response[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListPostResponse]]:
"""Creates a list of WorkItem Approvals.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsListPostResponse]]
+ Response[Union[Errors, WorkitemApprovalsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPostRequest,
-) -> Optional[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListPostResponse]]:
"""Creates a list of WorkItem Approvals.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsListPostResponse]
+ Union[Errors, WorkitemApprovalsListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPostRequest,
-) -> Response[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemApprovalsListPostResponse]]:
"""Creates a list of WorkItem Approvals.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemApprovalsListPostResponse]]
+ Response[Union[Errors, WorkitemApprovalsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemApprovalsListPostRequest,
-) -> Optional[Union[Any, WorkitemApprovalsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemApprovalsListPostResponse]]:
"""Creates a list of WorkItem Approvals.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemApprovalsListPostResponse]
+ Union[Errors, WorkitemApprovalsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/delete_work_item_attachment.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/delete_work_item_attachment.py
index eabb14b4..aa2853bb 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/delete_work_item_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/delete_work_item_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,23 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
- if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -55,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -70,7 +86,7 @@ def sync_detailed(
attachment_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Item Attachment.
Args:
@@ -83,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -99,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Item Attachment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
attachment_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Item Attachment.
Args:
@@ -118,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -130,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Item Attachment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment.py
index 995034b5..7feb6f0b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_attachments_single_get_response import (
WorkitemAttachmentsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemAttachmentsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
"""Returns the specified Work Item Attachment.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsSingleGetResponse]]
+ Response[Union[Errors, WorkitemAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
"""Returns the specified Work Item Attachment.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsSingleGetResponse]
+ Union[Errors, WorkitemAttachmentsSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
"""Returns the specified Work Item Attachment.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsSingleGetResponse]]
+ Response[Union[Errors, WorkitemAttachmentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemAttachmentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsSingleGetResponse]]:
"""Returns the specified Work Item Attachment.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsSingleGetResponse]
+ Union[Errors, WorkitemAttachmentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment_content.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment_content.py
index 4aa33f5b..7fc12063 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment_content.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachment_content.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -41,23 +42,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.OK:
- return None
+ response_200 = cast(Any, None)
+ return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -66,7 +82,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -82,7 +98,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Work Item Attachment.
Args:
@@ -96,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -113,6 +129,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Work Item Attachment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -120,7 +169,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
revision: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Downloads the file content for a specified Work Item Attachment.
Args:
@@ -134,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -147,3 +196,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Downloads the file content for a specified Work Item Attachment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+ revision (Union[Unset, str]):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ revision=revision,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachments.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachments.py
index e39f4267..1f5cfdaa 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/get_work_item_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_attachments_list_get_response import (
WorkitemAttachmentsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemAttachmentsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListGetResponse]]:
"""Returns a list of Work Item Attachments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsListGetResponse]]
+ Response[Union[Errors, WorkitemAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListGetResponse]]:
"""Returns a list of Work Item Attachments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsListGetResponse]
+ Union[Errors, WorkitemAttachmentsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListGetResponse]]:
"""Returns a list of Work Item Attachments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsListGetResponse]]
+ Response[Union[Errors, WorkitemAttachmentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemAttachmentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListGetResponse]]:
"""Returns a list of Work Item Attachments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsListGetResponse]
+ Union[Errors, WorkitemAttachmentsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/patch_work_item_attachment.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/patch_work_item_attachment.py
index 18a7c98b..d894d719 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/patch_work_item_attachment.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/patch_work_item_attachment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.patch_work_item_attachments_request_body import (
PatchWorkItemAttachmentsRequestBody,
)
@@ -42,27 +43,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -71,7 +91,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -87,11 +107,12 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchWorkItemAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Work Item Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -104,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -121,6 +142,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchWorkItemAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Work Item Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+ body (PatchWorkItemAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -128,11 +186,12 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PatchWorkItemAttachmentsRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
r"""Updates the specified Work Item Attachment.
See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -145,7 +204,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -158,3 +217,42 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ attachment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: PatchWorkItemAttachmentsRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ r"""Updates the specified Work Item Attachment.
+
+ See more in the REST
+ API User Guide.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ attachment_id (str):
+ body (PatchWorkItemAttachmentsRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ attachment_id=attachment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_attachments/post_work_item_attachments.py b/polarion_rest_api_client/open_api_client/api/work_item_attachments/post_work_item_attachments.py
index 51927016..c056d929 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_attachments/post_work_item_attachments.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_attachments/post_work_item_attachments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.post_work_item_attachments_request_body import (
PostWorkItemAttachmentsRequestBody,
)
@@ -43,7 +44,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = WorkitemAttachmentsListPostResponse.from_dict(
response.json()
@@ -51,34 +52,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -88,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -103,12 +114,13 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostWorkItemAttachmentsRequestBody,
-) -> Response[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListPostResponse]]:
r"""Creates a list of Work Item Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -120,7 +132,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsListPostResponse]]
+ Response[Union[Errors, WorkitemAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -142,12 +154,13 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: PostWorkItemAttachmentsRequestBody,
-) -> Optional[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListPostResponse]]:
r"""Creates a list of Work Item Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -159,7 +172,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsListPostResponse]
+ Union[Errors, WorkitemAttachmentsListPostResponse]
"""
return sync_detailed(
@@ -176,12 +189,13 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: PostWorkItemAttachmentsRequestBody,
-) -> Response[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemAttachmentsListPostResponse]]:
r"""Creates a list of Work Item Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -193,7 +207,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemAttachmentsListPostResponse]]
+ Response[Union[Errors, WorkitemAttachmentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -213,12 +227,13 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: PostWorkItemAttachmentsRequestBody,
-) -> Optional[Union[Any, WorkitemAttachmentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemAttachmentsListPostResponse]]:
r"""Creates a list of Work Item Attachments.
Files are identified by order or optionally by the 'lid' attribute. See more in the Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871\" target=\"_blank\">REST
+ API User Guide.
Args:
project_id (str):
@@ -230,7 +245,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemAttachmentsListPostResponse]
+ Union[Errors, WorkitemAttachmentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comment.py b/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comment.py
index 848bf5a4..63ddb76c 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_comments_single_get_response import (
WorkitemCommentsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemCommentsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsSingleGetResponse]]:
"""Returns the specified Work Item Comment.
Args:
@@ -125,7 +133,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsSingleGetResponse]]
+ Response[Union[Errors, WorkitemCommentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -153,7 +161,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsSingleGetResponse]]:
"""Returns the specified Work Item Comment.
Args:
@@ -169,7 +177,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsSingleGetResponse]
+ Union[Errors, WorkitemCommentsSingleGetResponse]
"""
return sync_detailed(
@@ -192,7 +200,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsSingleGetResponse]]:
"""Returns the specified Work Item Comment.
Args:
@@ -208,7 +216,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsSingleGetResponse]]
+ Response[Union[Errors, WorkitemCommentsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -234,7 +242,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemCommentsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsSingleGetResponse]]:
"""Returns the specified Work Item Comment.
Args:
@@ -250,7 +258,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsSingleGetResponse]
+ Union[Errors, WorkitemCommentsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comments.py b/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comments.py
index 511a1464..2e3f33a9 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_comments/get_comments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitem_comments_list_get_response import (
WorkitemCommentsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemCommentsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,21 +117,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListGetResponse]]:
"""Returns a list of Work Item Comments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -131,16 +139,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsListGetResponse]]
+ Response[Union[Errors, WorkitemCommentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -156,21 +164,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListGetResponse]]:
"""Returns a list of Work Item Comments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -178,17 +186,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsListGetResponse]
+ Union[Errors, WorkitemCommentsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -198,21 +206,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListGetResponse]]:
"""Returns a list of Work Item Comments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -220,16 +228,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsListGetResponse]]
+ Response[Union[Errors, WorkitemCommentsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -243,21 +251,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemCommentsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListGetResponse]]:
"""Returns a list of Work Item Comments.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -265,7 +273,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsListGetResponse]
+ Union[Errors, WorkitemCommentsListGetResponse]
"""
return (
@@ -273,10 +281,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_comments/patch_comment.py b/polarion_rest_api_client/open_api_client/api/work_item_comments/patch_comment.py
index cc8b5311..852dc16c 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_comments/patch_comment.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_comments/patch_comment.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_comments_single_patch_request import (
WorkitemCommentsSinglePatchRequest,
)
@@ -43,27 +44,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +108,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Work Item Comment.
Args:
@@ -102,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +139,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Work Item Comment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ comment_id (str):
+ body (WorkitemCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -126,7 +179,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsSinglePatchRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Work Item Comment.
Args:
@@ -140,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +206,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ comment_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemCommentsSinglePatchRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Work Item Comment.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ comment_id (str):
+ body (WorkitemCommentsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ comment_id=comment_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_comments/post_comments.py b/polarion_rest_api_client/open_api_client/api/work_item_comments/post_comments.py
index b31c8a9e..6a66c30e 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_comments/post_comments.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_comments/post_comments.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitem_comments_list_post_request import (
WorkitemCommentsListPostRequest,
)
@@ -44,7 +45,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = WorkitemCommentsListPostResponse.from_dict(
response.json()
@@ -52,34 +53,44 @@ def _parse_response(
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +100,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -104,7 +115,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsListPostRequest,
-) -> Response[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListPostResponse]]:
"""Creates a list of Work Item Comments.
Args:
@@ -117,7 +128,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsListPostResponse]]
+ Response[Union[Errors, WorkitemCommentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -139,7 +150,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsListPostRequest,
-) -> Optional[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListPostResponse]]:
"""Creates a list of Work Item Comments.
Args:
@@ -152,7 +163,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsListPostResponse]
+ Union[Errors, WorkitemCommentsListPostResponse]
"""
return sync_detailed(
@@ -169,7 +180,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsListPostRequest,
-) -> Response[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemCommentsListPostResponse]]:
"""Creates a list of Work Item Comments.
Args:
@@ -182,7 +193,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemCommentsListPostResponse]]
+ Response[Union[Errors, WorkitemCommentsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -202,7 +213,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemCommentsListPostRequest,
-) -> Optional[Union[Any, WorkitemCommentsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemCommentsListPostResponse]]:
"""Creates a list of Work Item Comments.
Args:
@@ -215,7 +226,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemCommentsListPostResponse]
+ Union[Errors, WorkitemCommentsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_record.py b/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_record.py
index b591bda6..7405305b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_record.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_record.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -30,19 +31,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
+ if response.status_code == HTTPStatus.BAD_REQUEST:
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -51,7 +71,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -66,7 +86,7 @@ def sync_detailed(
work_record_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Record.
Args:
@@ -79,7 +99,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -95,13 +115,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ work_record_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Record.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ work_record_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ work_record_id=work_record_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
work_record_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes the specified Work Record.
Args:
@@ -114,7 +164,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,3 +176,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ work_record_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Deletes the specified Work Record.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ work_record_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ work_record_id=work_record_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_records.py b/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_records.py
index 7e8c6a72..093f514e 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_records.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_work_records/delete_work_records.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workrecords_list_delete_request import (
WorkrecordsListDeleteRequest,
)
@@ -41,25 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -68,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -83,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Records.
Args:
@@ -96,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkrecordsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Records.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkrecordsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Records.
Args:
@@ -131,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -143,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkrecordsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Records.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (WorkrecordsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_record.py b/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_record.py
index 257bf584..d4f8bb98 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_record.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_record.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workrecords_single_get_response import (
WorkrecordsSingleGetResponse,
@@ -55,31 +56,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkrecordsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -89,7 +97,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -107,7 +115,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -123,7 +131,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsSingleGetResponse]]
+ Response[Union[Errors, WorkrecordsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -151,7 +159,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -167,7 +175,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsSingleGetResponse]
+ Union[Errors, WorkrecordsSingleGetResponse]
"""
return sync_detailed(
@@ -190,7 +198,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -206,7 +214,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsSingleGetResponse]]
+ Response[Union[Errors, WorkrecordsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -232,7 +240,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkrecordsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsSingleGetResponse]]:
"""Returns the specified instance.
Args:
@@ -248,7 +256,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsSingleGetResponse]
+ Union[Errors, WorkrecordsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_records.py b/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_records.py
index 5009895f..856d7c10 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_records.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_work_records/get_work_records.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workrecords_list_get_response import WorkrecordsListGetResponse
from ...types import UNSET, Response, Unset
@@ -17,14 +18,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -33,10 +38,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -57,31 +58,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkrecordsListGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkrecordsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkrecordsListGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,21 +113,21 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkrecordsListGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -127,16 +135,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsListGetResponse]]
+ Response[Union[Errors, WorkrecordsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -152,21 +160,21 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkrecordsListGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -174,17 +182,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsListGetResponse]
+ Union[Errors, WorkrecordsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -194,21 +202,21 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkrecordsListGetResponse]]:
+) -> Response[Union[Errors, WorkrecordsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -216,16 +224,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsListGetResponse]]
+ Response[Union[Errors, WorkrecordsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -239,21 +247,21 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkrecordsListGetResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListGetResponse]]:
"""Returns a list of instances.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -261,7 +269,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsListGetResponse]
+ Union[Errors, WorkrecordsListGetResponse]
"""
return (
@@ -269,10 +277,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_item_work_records/post_work_records.py b/polarion_rest_api_client/open_api_client/api/work_item_work_records/post_work_records.py
index 8ddfcfcb..62b6e7e1 100644
--- a/polarion_rest_api_client/open_api_client/api/work_item_work_records/post_work_records.py
+++ b/polarion_rest_api_client/open_api_client/api/work_item_work_records/post_work_records.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workrecords_list_post_request import WorkrecordsListPostRequest
from ...models.workrecords_list_post_response import (
WorkrecordsListPostResponse,
@@ -42,40 +43,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkrecordsListPostResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = WorkrecordsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkrecordsListPostResponse]]:
+) -> Response[Union[Errors, WorkrecordsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -100,7 +111,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListPostRequest,
-) -> Response[Union[Any, WorkrecordsListPostResponse]]:
+) -> Response[Union[Errors, WorkrecordsListPostResponse]]:
"""Creates a list of Work Records.
Args:
@@ -113,7 +124,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsListPostResponse]]
+ Response[Union[Errors, WorkrecordsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -135,7 +146,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListPostRequest,
-) -> Optional[Union[Any, WorkrecordsListPostResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListPostResponse]]:
"""Creates a list of Work Records.
Args:
@@ -148,7 +159,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsListPostResponse]
+ Union[Errors, WorkrecordsListPostResponse]
"""
return sync_detailed(
@@ -165,7 +176,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListPostRequest,
-) -> Response[Union[Any, WorkrecordsListPostResponse]]:
+) -> Response[Union[Errors, WorkrecordsListPostResponse]]:
"""Creates a list of Work Records.
Args:
@@ -178,7 +189,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkrecordsListPostResponse]]
+ Response[Union[Errors, WorkrecordsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -198,7 +209,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: WorkrecordsListPostRequest,
-) -> Optional[Union[Any, WorkrecordsListPostResponse]]:
+) -> Optional[Union[Errors, WorkrecordsListPostResponse]]:
"""Creates a list of Work Records.
Args:
@@ -211,7 +222,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkrecordsListPostResponse]
+ Union[Errors, WorkrecordsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/delete_all_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/delete_all_work_items.py
index a9b488ef..20819a1f 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/delete_all_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/delete_all_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_list_delete_request import WorkitemsListDeleteRequest
from ...types import Response
@@ -34,23 +35,42 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -59,7 +79,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -72,7 +92,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Items from the Global context.
Args:
@@ -83,7 +103,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -97,11 +117,35 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Items from the Global context.
+
+ Args:
+ body (WorkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Items from the Global context.
Args:
@@ -112,7 +156,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -122,3 +166,29 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Items from the Global context.
+
+ Args:
+ body (WorkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items.py
index a86430eb..17f098ac 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_list_delete_request import WorkitemsListDeleteRequest
from ...types import Response
@@ -37,25 +38,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -64,7 +86,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -78,7 +100,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Items.
Args:
@@ -90,7 +112,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -105,12 +127,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Items.
+
+ Args:
+ project_id (str):
+ body (WorkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Items.
Args:
@@ -122,7 +171,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -133,3 +182,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Items.
+
+ Args:
+ project_id (str):
+ body (WorkitemsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items_relationship.py b/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items_relationship.py
index e064bb18..b2b34182 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items_relationship.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/delete_work_items_relationship.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationships_list_delete_request import (
RelationshipsListDeleteRequest,
)
@@ -43,27 +44,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.METHOD_NOT_ALLOWED:
- return None
+ response_405 = Errors.from_dict(response.json())
+
+ return response_405
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -72,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -88,7 +112,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: RelationshipsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Item Relationships.
Args:
@@ -102,7 +126,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -119,6 +143,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: RelationshipsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (RelationshipsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -126,7 +183,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: RelationshipsListDeleteRequest,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Deletes a list of Work Item Relationships.
Args:
@@ -140,7 +197,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -153,3 +210,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: RelationshipsListDeleteRequest,
+) -> Optional[Union[Any, Errors]]:
+ """Deletes a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (RelationshipsListDeleteRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_all_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/get_all_work_items.py
index 2af9d40f..6c8ef61b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_all_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_all_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitems_list_get_response import WorkitemsListGetResponse
from ...types import UNSET, Response, Unset
@@ -15,15 +16,20 @@
def _get_kwargs(
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -32,14 +38,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -55,25 +59,34 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
+ if response.status_code == HTTPStatus.FORBIDDEN:
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -83,7 +96,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,38 +108,41 @@ def _build_response(
def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListGetResponse]]
+ Response[Union[Errors, WorkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = client.get_httpx_client().request(
@@ -139,77 +155,83 @@ def sync_detailed(
def sync(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListGetResponse]
+ Union[Errors, WorkitemsListGetResponse]
"""
return sync_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
).parsed
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListGetResponse]]
+ Response[Union[Errors, WorkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -220,39 +242,42 @@ async def asyncio_detailed(
async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items from the Global context.
Args:
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListGetResponse]
+ Union[Errors, WorkitemsListGetResponse]
"""
return (
await asyncio_detailed(
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item.py b/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item.py
index 1188e4b7..3f776bd0 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -47,31 +48,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -81,7 +89,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -98,7 +106,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item.
@@ -114,7 +122,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -140,7 +148,7 @@ def sync(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item.
@@ -156,7 +164,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -177,7 +185,7 @@ async def asyncio_detailed(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item.
@@ -193,7 +201,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -217,7 +225,7 @@ async def asyncio(
client: Union[AuthenticatedClient, Client],
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item.
@@ -233,7 +241,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item_type.py b/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item_type.py
index 63df5bea..18f306d0 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item_type.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_available_enum_options_for_work_item_type.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -48,31 +49,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -82,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +107,7 @@ def sync_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item Type.
@@ -115,7 +123,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -141,7 +149,7 @@ def sync(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item Type.
@@ -157,7 +165,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -178,7 +186,7 @@ async def asyncio_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item Type.
@@ -194,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -218,7 +226,7 @@ async def asyncio(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
type: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of available options for the requested field for the
specified Work Item Type.
@@ -234,7 +242,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_current_enum_options_for_work_item.py b/polarion_rest_api_client/open_api_client/api/work_items/get_current_enum_options_for_work_item.py
index f831bd46..64ac7120 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_current_enum_options_for_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_current_enum_options_for_work_item.py
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
@@ -11,6 +11,7 @@
from ...models.enum_options_action_response_body import (
EnumOptionsActionResponseBody,
)
+from ...models.errors import Errors
from ...types import UNSET, Response, Unset
@@ -50,31 +51,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
if response.status_code == HTTPStatus.OK:
response_200 = EnumOptionsActionResponseBody.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -84,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -102,7 +110,7 @@ def sync_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field for specific
Work Item.
@@ -119,7 +127,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -147,7 +155,7 @@ def sync(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field for specific
Work Item.
@@ -164,7 +172,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return sync_detailed(
@@ -187,7 +195,7 @@ async def asyncio_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Response[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field for specific
Work Item.
@@ -204,7 +212,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, EnumOptionsActionResponseBody]]
+ Response[Union[EnumOptionsActionResponseBody, Errors]]
"""
kwargs = _get_kwargs(
@@ -230,7 +238,7 @@ async def asyncio(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, EnumOptionsActionResponseBody]]:
+) -> Optional[Union[EnumOptionsActionResponseBody, Errors]]:
"""Returns a list of selected options for the requested field for specific
Work Item.
@@ -247,7 +255,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, EnumOptionsActionResponseBody]
+ Union[EnumOptionsActionResponseBody, Errors]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item.py b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item.py
index 0dde11b3..24bd0537 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitems_single_get_response import WorkitemsSingleGetResponse
from ...types import UNSET, Response, Unset
@@ -51,31 +52,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemsSingleGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -85,7 +93,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -102,7 +110,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemsSingleGetResponse]]:
"""Returns the specified Work Item.
Args:
@@ -117,7 +125,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsSingleGetResponse]]
+ Response[Union[Errors, WorkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -143,7 +151,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemsSingleGetResponse]]:
"""Returns the specified Work Item.
Args:
@@ -158,7 +166,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsSingleGetResponse]
+ Union[Errors, WorkitemsSingleGetResponse]
"""
return sync_detailed(
@@ -179,7 +187,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Response[Union[Errors, WorkitemsSingleGetResponse]]:
"""Returns the specified Work Item.
Args:
@@ -194,7 +202,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsSingleGetResponse]]
+ Response[Union[Errors, WorkitemsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -218,7 +226,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsSingleGetResponse]]:
+) -> Optional[Union[Errors, WorkitemsSingleGetResponse]]:
"""Returns the specified Work Item.
Args:
@@ -233,7 +241,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsSingleGetResponse]
+ Union[Errors, WorkitemsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definition.py b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definition.py
index 074049a0..dcfd4840 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definition.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definition.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_single_get_response import (
TestparameterDefinitionsSingleGetResponse,
@@ -55,7 +56,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsSingleGetResponse.from_dict(
response.json()
@@ -63,25 +64,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -91,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,7 +117,7 @@ def sync_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Work
Item.
@@ -126,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -154,7 +162,7 @@ def sync(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Work
Item.
@@ -171,7 +179,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return sync_detailed(
@@ -194,7 +202,7 @@ async def asyncio_detailed(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Work
Item.
@@ -211,7 +219,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsSingleGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsSingleGetResponse]]
"""
kwargs = _get_kwargs(
@@ -237,7 +245,7 @@ async def asyncio(
fields: Union[Unset, "SparseFields"] = UNSET,
include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsSingleGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsSingleGetResponse]]:
"""Returns the specified Test Parameter Definition for the specified Work
Item.
@@ -254,7 +262,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsSingleGetResponse]
+ Union[Errors, TestparameterDefinitionsSingleGetResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definitions.py b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definitions.py
index f79cce3b..ff8f6c8a 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definitions.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_work_item_test_parameter_definitions.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.testparameter_definitions_list_get_response import (
TestparameterDefinitionsListGetResponse,
@@ -19,14 +20,18 @@ def _get_kwargs(
project_id: str,
work_item_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -35,10 +40,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -59,7 +60,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = TestparameterDefinitionsListGetResponse.from_dict(
response.json()
@@ -67,25 +68,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -95,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -109,22 +117,22 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Work
Item.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -132,16 +140,16 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -157,22 +165,22 @@ def sync(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Work
Item.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -180,17 +188,17 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -200,22 +208,22 @@ async def asyncio_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Response[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Work
Item.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -223,16 +231,16 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, TestparameterDefinitionsListGetResponse]]
+ Response[Union[Errors, TestparameterDefinitionsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -246,22 +254,22 @@ async def asyncio(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, TestparameterDefinitionsListGetResponse]]:
+) -> Optional[Union[Errors, TestparameterDefinitionsListGetResponse]]:
"""Returns a list of Test Parameter Definitions for the specified Work
Item.
Args:
project_id (str):
work_item_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -269,7 +277,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, TestparameterDefinitionsListGetResponse]
+ Union[Errors, TestparameterDefinitionsListGetResponse]
"""
return (
@@ -277,10 +285,10 @@ async def asyncio(
project_id=project_id,
work_item_id=work_item_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/get_work_items.py
index ca570798..13a0b76c 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.sparse_fields import SparseFields
from ...models.workitems_list_get_response import WorkitemsListGetResponse
from ...types import UNSET, Response, Unset
@@ -16,15 +17,20 @@
def _get_kwargs(
project_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
+ revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -33,14 +39,12 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["query"] = query
params["sort"] = sort
+ params["revision"] = revision
+
params = {
k: v for k, v in params.items() if v is not UNSET and v is not None
}
@@ -58,31 +62,38 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkitemsListGetResponse.from_dict(response.json())
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -92,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -105,40 +116,43 @@ def sync_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListGetResponse]]
+ Response[Union[Errors, WorkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = client.get_httpx_client().request(
@@ -152,41 +166,44 @@ def sync(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListGetResponse]
+ Union[Errors, WorkitemsListGetResponse]
"""
return sync_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
).parsed
@@ -194,40 +211,43 @@ async def asyncio_detailed(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Response[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListGetResponse]]
+ Response[Union[Errors, WorkitemsListGetResponse]]
"""
kwargs = _get_kwargs(
project_id=project_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
response = await client.get_async_httpx_client().request(**kwargs)
@@ -239,41 +259,44 @@ async def asyncio(
project_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
query: Union[Unset, str] = UNSET,
sort: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkitemsListGetResponse]]:
+ revision: Union[Unset, str] = UNSET,
+) -> Optional[Union[Errors, WorkitemsListGetResponse]]:
"""Returns a list of Work Items.
Args:
project_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
query (Union[Unset, str]):
sort (Union[Unset, str]):
+ revision (Union[Unset, str]):
Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListGetResponse]
+ Union[Errors, WorkitemsListGetResponse]
"""
return (
await asyncio_detailed(
project_id=project_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
query=query,
sort=sort,
+ revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_work_items_relationships.py b/polarion_rest_api_client/open_api_client/api/work_items/get_work_items_relationships.py
index c311b421..a00ed71f 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_work_items_relationships.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_work_items_relationships.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationship_data_list_response import (
RelationshipDataListResponse,
)
@@ -23,14 +24,18 @@ def _get_kwargs(
work_item_id: str,
relationship_id: str,
*,
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
+ params["page[size]"] = pagesize
+
+ params["page[number]"] = pagenumber
+
json_fields: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(fields, Unset):
json_fields = fields.to_dict()
@@ -39,10 +44,6 @@ def _get_kwargs(
params["include"] = include
- params["page[size]"] = pagesize
-
- params["page[number]"] = pagenumber
-
params["revision"] = revision
params = {
@@ -66,7 +67,7 @@ def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -101,25 +102,32 @@ def _parse_response_200(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -131,7 +139,7 @@ def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -151,14 +159,14 @@ def sync_detailed(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -170,10 +178,10 @@ def sync_detailed(
project_id (str):
work_item_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -181,17 +189,17 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
+ Response[Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
relationship_id=relationship_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -208,14 +216,14 @@ def sync(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -227,10 +235,10 @@ def sync(
project_id (str):
work_item_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -238,7 +246,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
+ Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
"""
return sync_detailed(
@@ -246,10 +254,10 @@ def sync(
work_item_id=work_item_id,
relationship_id=relationship_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
).parsed
@@ -260,14 +268,14 @@ async def asyncio_detailed(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Response[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -279,10 +287,10 @@ async def asyncio_detailed(
project_id (str):
work_item_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -290,17 +298,17 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
+ Response[Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]]
"""
kwargs = _get_kwargs(
project_id=project_id,
work_item_id=work_item_id,
relationship_id=relationship_id,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
@@ -315,14 +323,14 @@ async def asyncio(
relationship_id: str,
*,
client: Union[AuthenticatedClient, Client],
- fields: Union[Unset, "SparseFields"] = UNSET,
- include: Union[Unset, str] = UNSET,
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
+ fields: Union[Unset, "SparseFields"] = UNSET,
+ include: Union[Unset, str] = UNSET,
revision: Union[Unset, str] = UNSET,
) -> Optional[
Union[
- Any,
+ Errors,
Union[
"RelationshipDataListResponse", "RelationshipDataSingleResponse"
],
@@ -334,10 +342,10 @@ async def asyncio(
project_id (str):
work_item_id (str):
relationship_id (str):
- fields (Union[Unset, SparseFields]):
- include (Union[Unset, str]):
pagesize (Union[Unset, int]):
pagenumber (Union[Unset, int]):
+ fields (Union[Unset, SparseFields]):
+ include (Union[Unset, str]):
revision (Union[Unset, str]):
Raises:
@@ -345,7 +353,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
+ Union[Errors, Union['RelationshipDataListResponse', 'RelationshipDataSingleResponse']]
"""
return (
@@ -354,10 +362,10 @@ async def asyncio(
work_item_id=work_item_id,
relationship_id=relationship_id,
client=client,
- fields=fields,
- include=include,
pagesize=pagesize,
pagenumber=pagenumber,
+ fields=fields,
+ include=include,
revision=revision,
)
).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/get_workflow_actions_for_work_item.py b/polarion_rest_api_client/open_api_client/api/work_items/get_workflow_actions_for_work_item.py
index 23f5f6cf..784bb11f 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/get_workflow_actions_for_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/get_workflow_actions_for_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workflow_actions_action_response_body import (
WorkflowActionsActionResponseBody,
)
@@ -48,7 +49,7 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
if response.status_code == HTTPStatus.OK:
response_200 = WorkflowActionsActionResponseBody.from_dict(
response.json()
@@ -56,25 +57,32 @@ def _parse_response(
return response_200
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -84,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -101,7 +109,7 @@ def sync_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
"""Returns a list of Workflow Actions.
Args:
@@ -116,7 +124,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkflowActionsActionResponseBody]]
+ Response[Union[Errors, WorkflowActionsActionResponseBody]]
"""
kwargs = _get_kwargs(
@@ -142,7 +150,7 @@ def sync(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
"""Returns a list of Workflow Actions.
Args:
@@ -157,7 +165,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkflowActionsActionResponseBody]
+ Union[Errors, WorkflowActionsActionResponseBody]
"""
return sync_detailed(
@@ -178,7 +186,7 @@ async def asyncio_detailed(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Response[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Response[Union[Errors, WorkflowActionsActionResponseBody]]:
"""Returns a list of Workflow Actions.
Args:
@@ -193,7 +201,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkflowActionsActionResponseBody]]
+ Response[Union[Errors, WorkflowActionsActionResponseBody]]
"""
kwargs = _get_kwargs(
@@ -217,7 +225,7 @@ async def asyncio(
pagesize: Union[Unset, int] = UNSET,
pagenumber: Union[Unset, int] = UNSET,
revision: Union[Unset, str] = UNSET,
-) -> Optional[Union[Any, WorkflowActionsActionResponseBody]]:
+) -> Optional[Union[Errors, WorkflowActionsActionResponseBody]]:
"""Returns a list of Workflow Actions.
Args:
@@ -232,7 +240,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkflowActionsActionResponseBody]
+ Union[Errors, WorkflowActionsActionResponseBody]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/move_from_document.py b/polarion_rest_api_client/open_api_client/api/work_items/move_from_document.py
index c7fa2d66..20bca2dc 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/move_from_document.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/move_from_document.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...types import Response
@@ -28,21 +29,34 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -51,7 +65,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -65,7 +79,7 @@ def sync_detailed(
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Moves the specified Work Item from the Document.
Args:
@@ -77,7 +91,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -92,12 +106,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Moves the specified Work Item from the Document.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Moves the specified Work Item from the Document.
Args:
@@ -109,7 +150,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -120,3 +161,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+) -> Optional[Union[Any, Errors]]:
+ """Moves the specified Work Item from the Document.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/move_to_document.py b/polarion_rest_api_client/open_api_client/api/work_items/move_to_document.py
index 172496ac..a8968824 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/move_to_document.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/move_to_document.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.move_work_item_to_document_request_body import (
MoveWorkItemToDocumentRequestBody,
)
@@ -41,27 +42,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -70,7 +90,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -85,7 +105,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: MoveWorkItemToDocumentRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Moves the specified Work Item to the Document.
Args:
@@ -98,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -114,13 +134,43 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MoveWorkItemToDocumentRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Moves the specified Work Item to the Document.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (MoveWorkItemToDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
*,
client: Union[AuthenticatedClient, Client],
body: MoveWorkItemToDocumentRequestBody,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Moves the specified Work Item to the Document.
Args:
@@ -133,7 +183,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -145,3 +195,35 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: MoveWorkItemToDocumentRequestBody,
+) -> Optional[Union[Any, Errors]]:
+ """Moves the specified Work Item to the Document.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ body (MoveWorkItemToDocumentRequestBody):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/patch_all_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/patch_all_work_items.py
index f6c68747..480462e2 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/patch_all_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/patch_all_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_list_patch_request import WorkitemsListPatchRequest
from ...types import UNSET, Response, Unset
@@ -44,25 +45,42 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -71,7 +89,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -85,7 +103,7 @@ def sync_detailed(
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPatchRequest,
workflow_action: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Items in the Global context.
Args:
@@ -97,7 +115,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -112,12 +130,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListPatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Items in the Global context.
+
+ Args:
+ workflow_action (Union[Unset, str]):
+ body (WorkitemsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ ).parsed
+
+
async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPatchRequest,
workflow_action: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Items in the Global context.
Args:
@@ -129,7 +174,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -140,3 +185,32 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListPatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Items in the Global context.
+
+ Args:
+ workflow_action (Union[Unset, str]):
+ body (WorkitemsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item.py b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item.py
index dcc04960..0ba8e57b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_single_patch_request import (
WorkitemsSinglePatchRequest,
)
@@ -54,27 +55,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -83,7 +103,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -100,7 +120,7 @@ def sync_detailed(
body: WorkitemsSinglePatchRequest,
workflow_action: Union[Unset, str] = UNSET,
change_type_to: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Work Item.
Args:
@@ -115,7 +135,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -133,6 +153,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsSinglePatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+ change_type_to: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Work Item.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ workflow_action (Union[Unset, str]):
+ change_type_to (Union[Unset, str]):
+ body (WorkitemsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ change_type_to=change_type_to,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -141,7 +197,7 @@ async def asyncio_detailed(
body: WorkitemsSinglePatchRequest,
workflow_action: Union[Unset, str] = UNSET,
change_type_to: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates the specified Work Item.
Args:
@@ -156,7 +212,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -170,3 +226,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsSinglePatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+ change_type_to: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates the specified Work Item.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ workflow_action (Union[Unset, str]):
+ change_type_to (Union[Unset, str]):
+ body (WorkitemsSinglePatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ change_type_to=change_type_to,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item_relationships.py b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item_relationships.py
index 79e7616f..3333d5e2 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item_relationships.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_item_relationships.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationship_data_list_request import (
RelationshipDataListRequest,
)
@@ -52,25 +53,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
+ if response.status_code == HTTPStatus.CONFLICT:
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -79,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -97,7 +119,7 @@ def sync_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Item Relationships.
Args:
@@ -112,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -129,6 +151,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -138,7 +196,7 @@ async def asyncio_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Item Relationships.
Args:
@@ -153,7 +211,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -166,3 +224,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_items.py
index dd248a25..d242a061 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/patch_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/patch_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_list_patch_request import WorkitemsListPatchRequest
from ...types import UNSET, Response, Unset
@@ -50,27 +51,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.CONFLICT:
- return None
+ response_409 = Errors.from_dict(response.json())
+
+ return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -79,7 +99,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,7 +115,7 @@ def sync_detailed(
body: WorkitemsListPatchRequest,
workflow_action: Union[Unset, str] = UNSET,
change_type_to: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Items.
Args:
@@ -109,7 +129,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -126,6 +146,39 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListPatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+ change_type_to: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Items.
+
+ Args:
+ project_id (str):
+ workflow_action (Union[Unset, str]):
+ change_type_to (Union[Unset, str]):
+ body (WorkitemsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ change_type_to=change_type_to,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
*,
@@ -133,7 +186,7 @@ async def asyncio_detailed(
body: WorkitemsListPatchRequest,
workflow_action: Union[Unset, str] = UNSET,
change_type_to: Union[Unset, str] = UNSET,
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Updates a list of Work Items.
Args:
@@ -147,7 +200,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -160,3 +213,38 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: WorkitemsListPatchRequest,
+ workflow_action: Union[Unset, str] = UNSET,
+ change_type_to: Union[Unset, str] = UNSET,
+) -> Optional[Union[Any, Errors]]:
+ """Updates a list of Work Items.
+
+ Args:
+ project_id (str):
+ workflow_action (Union[Unset, str]):
+ change_type_to (Union[Unset, str]):
+ body (WorkitemsListPatchRequest):
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ client=client,
+ body=body,
+ workflow_action=workflow_action,
+ change_type_to=change_type_to,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/post_work_item_relationships.py b/polarion_rest_api_client/open_api_client/api/work_items/post_work_item_relationships.py
index e7649006..701cddc9 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/post_work_item_relationships.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/post_work_item_relationships.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union
+from typing import Any, Dict, Optional, Union, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.relationship_data_list_request import (
RelationshipDataListRequest,
)
@@ -52,27 +53,46 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Any]:
+) -> Optional[Union[Any, Errors]]:
if response.status_code == HTTPStatus.NO_CONTENT:
- return None
+ response_204 = cast(Any, None)
+ return response_204
if response.status_code == HTTPStatus.BAD_REQUEST:
- return None
+ response_400 = Errors.from_dict(response.json())
+
+ return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- return None
+ response_401 = Errors.from_dict(response.json())
+
+ return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- return None
+ response_403 = Errors.from_dict(response.json())
+
+ return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- return None
+ response_404 = Errors.from_dict(response.json())
+
+ return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- return None
+ response_406 = Errors.from_dict(response.json())
+
+ return response_406
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- return None
+ response_413 = Errors.from_dict(response.json())
+
+ return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- return None
+ response_415 = Errors.from_dict(response.json())
+
+ return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- return None
+ response_500 = Errors.from_dict(response.json())
+
+ return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- return None
+ response_503 = Errors.from_dict(response.json())
+
+ return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
else:
@@ -81,7 +101,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -99,7 +119,7 @@ def sync_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Creates a list of Work Item Relationships.
Args:
@@ -114,7 +134,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -131,6 +151,42 @@ def sync_detailed(
return _build_response(client=client, response=response)
+def sync(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Creates a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return sync_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ ).parsed
+
+
async def asyncio_detailed(
project_id: str,
work_item_id: str,
@@ -140,7 +196,7 @@ async def asyncio_detailed(
body: Union[
"RelationshipDataListRequest", "RelationshipDataSingleRequest"
],
-) -> Response[Any]:
+) -> Response[Union[Any, Errors]]:
"""Creates a list of Work Item Relationships.
Args:
@@ -155,7 +211,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Any]
+ Response[Union[Any, Errors]]
"""
kwargs = _get_kwargs(
@@ -168,3 +224,41 @@ async def asyncio_detailed(
response = await client.get_async_httpx_client().request(**kwargs)
return _build_response(client=client, response=response)
+
+
+async def asyncio(
+ project_id: str,
+ work_item_id: str,
+ relationship_id: str,
+ *,
+ client: Union[AuthenticatedClient, Client],
+ body: Union[
+ "RelationshipDataListRequest", "RelationshipDataSingleRequest"
+ ],
+) -> Optional[Union[Any, Errors]]:
+ """Creates a list of Work Item Relationships.
+
+ Args:
+ project_id (str):
+ work_item_id (str):
+ relationship_id (str):
+ body (Union['RelationshipDataListRequest', 'RelationshipDataSingleRequest']): List of
+ generic contents Example: {'data': [{'type': 'plans', 'id': 'MyProjectId/MyResourceId'}]}.
+
+ Raises:
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
+
+ Returns:
+ Union[Any, Errors]
+ """
+
+ return (
+ await asyncio_detailed(
+ project_id=project_id,
+ work_item_id=work_item_id,
+ relationship_id=relationship_id,
+ client=client,
+ body=body,
+ )
+ ).parsed
diff --git a/polarion_rest_api_client/open_api_client/api/work_items/post_work_items.py b/polarion_rest_api_client/open_api_client/api/work_items/post_work_items.py
index 5d2fa8dc..1eb2043b 100644
--- a/polarion_rest_api_client/open_api_client/api/work_items/post_work_items.py
+++ b/polarion_rest_api_client/open_api_client/api/work_items/post_work_items.py
@@ -2,12 +2,13 @@
# SPDX-License-Identifier: Apache-2.0
from http import HTTPStatus
-from typing import Any, Dict, Optional, Union, cast
+from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
+from ...models.errors import Errors
from ...models.workitems_list_post_request import WorkitemsListPostRequest
from ...models.workitems_list_post_response import WorkitemsListPostResponse
from ...types import Response
@@ -38,40 +39,50 @@ def _get_kwargs(
def _parse_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Optional[Union[Any, WorkitemsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemsListPostResponse]]:
if response.status_code == HTTPStatus.CREATED:
response_201 = WorkitemsListPostResponse.from_dict(response.json())
return response_201
if response.status_code == HTTPStatus.BAD_REQUEST:
- response_400 = cast(Any, None)
+ response_400 = Errors.from_dict(response.json())
+
return response_400
if response.status_code == HTTPStatus.UNAUTHORIZED:
- response_401 = cast(Any, None)
+ response_401 = Errors.from_dict(response.json())
+
return response_401
if response.status_code == HTTPStatus.FORBIDDEN:
- response_403 = cast(Any, None)
+ response_403 = Errors.from_dict(response.json())
+
return response_403
if response.status_code == HTTPStatus.NOT_FOUND:
- response_404 = cast(Any, None)
+ response_404 = Errors.from_dict(response.json())
+
return response_404
if response.status_code == HTTPStatus.NOT_ACCEPTABLE:
- response_406 = cast(Any, None)
+ response_406 = Errors.from_dict(response.json())
+
return response_406
if response.status_code == HTTPStatus.CONFLICT:
- response_409 = cast(Any, None)
+ response_409 = Errors.from_dict(response.json())
+
return response_409
if response.status_code == HTTPStatus.REQUEST_ENTITY_TOO_LARGE:
- response_413 = cast(Any, None)
+ response_413 = Errors.from_dict(response.json())
+
return response_413
if response.status_code == HTTPStatus.UNSUPPORTED_MEDIA_TYPE:
- response_415 = cast(Any, None)
+ response_415 = Errors.from_dict(response.json())
+
return response_415
if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
- response_500 = cast(Any, None)
+ response_500 = Errors.from_dict(response.json())
+
return response_500
if response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:
- response_503 = cast(Any, None)
+ response_503 = Errors.from_dict(response.json())
+
return response_503
if client.raise_on_unexpected_status:
raise errors.UnexpectedStatus(response.status_code, response.content)
@@ -81,7 +92,7 @@ def _parse_response(
def _build_response(
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
-) -> Response[Union[Any, WorkitemsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemsListPostResponse]]:
return Response(
status_code=HTTPStatus(response.status_code),
content=response.content,
@@ -95,7 +106,7 @@ def sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPostRequest,
-) -> Response[Union[Any, WorkitemsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemsListPostResponse]]:
"""Creates a list of Work Items.
Args:
@@ -107,7 +118,7 @@ def sync_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListPostResponse]]
+ Response[Union[Errors, WorkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -127,7 +138,7 @@ def sync(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPostRequest,
-) -> Optional[Union[Any, WorkitemsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemsListPostResponse]]:
"""Creates a list of Work Items.
Args:
@@ -139,7 +150,7 @@ def sync(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListPostResponse]
+ Union[Errors, WorkitemsListPostResponse]
"""
return sync_detailed(
@@ -154,7 +165,7 @@ async def asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPostRequest,
-) -> Response[Union[Any, WorkitemsListPostResponse]]:
+) -> Response[Union[Errors, WorkitemsListPostResponse]]:
"""Creates a list of Work Items.
Args:
@@ -166,7 +177,7 @@ async def asyncio_detailed(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Response[Union[Any, WorkitemsListPostResponse]]
+ Response[Union[Errors, WorkitemsListPostResponse]]
"""
kwargs = _get_kwargs(
@@ -184,7 +195,7 @@ async def asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: WorkitemsListPostRequest,
-) -> Optional[Union[Any, WorkitemsListPostResponse]]:
+) -> Optional[Union[Errors, WorkitemsListPostResponse]]:
"""Creates a list of Work Items.
Args:
@@ -196,7 +207,7 @@ async def asyncio(
httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns:
- Union[Any, WorkitemsListPostResponse]
+ Union[Errors, WorkitemsListPostResponse]
"""
return (
diff --git a/polarion_rest_api_client/open_api_client/models/__init__.py b/polarion_rest_api_client/open_api_client/models/__init__.py
index b4f12fe6..2866844c 100644
--- a/polarion_rest_api_client/open_api_client/models/__init__.py
+++ b/polarion_rest_api_client/open_api_client/models/__init__.py
@@ -944,8 +944,10 @@
)
from .errors import Errors
from .errors_errors_item import ErrorsErrorsItem
-from .errors_errors_item_source import ErrorsErrorsItemSource
-from .errors_errors_item_source_resource import ErrorsErrorsItemSourceResource
+from .errors_errors_item_source_type_0 import ErrorsErrorsItemSourceType0
+from .errors_errors_item_source_type_0_resource_type_0 import (
+ ErrorsErrorsItemSourceType0ResourceType0,
+)
from .export_test_cases_request_body import ExportTestCasesRequestBody
from .externallylinkedworkitems_list_delete_request import (
ExternallylinkedworkitemsListDeleteRequest,
@@ -1256,6 +1258,111 @@
)
from .icons_single_get_response_links import IconsSingleGetResponseLinks
from .import_test_results_request_body import ImportTestResultsRequestBody
+from .jobs_single_get_response import JobsSingleGetResponse
+from .jobs_single_get_response_data import JobsSingleGetResponseData
+from .jobs_single_get_response_data_attributes import (
+ JobsSingleGetResponseDataAttributes,
+)
+from .jobs_single_get_response_data_attributes_status import (
+ JobsSingleGetResponseDataAttributesStatus,
+)
+from .jobs_single_get_response_data_attributes_status_type import (
+ JobsSingleGetResponseDataAttributesStatusType,
+)
+from .jobs_single_get_response_data_links import JobsSingleGetResponseDataLinks
+from .jobs_single_get_response_data_meta import JobsSingleGetResponseDataMeta
+from .jobs_single_get_response_data_meta_errors_item import (
+ JobsSingleGetResponseDataMetaErrorsItem,
+)
+from .jobs_single_get_response_data_meta_errors_item_source import (
+ JobsSingleGetResponseDataMetaErrorsItemSource,
+)
+from .jobs_single_get_response_data_meta_errors_item_source_resource import (
+ JobsSingleGetResponseDataMetaErrorsItemSourceResource,
+)
+from .jobs_single_get_response_data_relationships import (
+ JobsSingleGetResponseDataRelationships,
+)
+from .jobs_single_get_response_data_relationships_document import (
+ JobsSingleGetResponseDataRelationshipsDocument,
+)
+from .jobs_single_get_response_data_relationships_document_data import (
+ JobsSingleGetResponseDataRelationshipsDocumentData,
+)
+from .jobs_single_get_response_data_relationships_document_data_type import (
+ JobsSingleGetResponseDataRelationshipsDocumentDataType,
+)
+from .jobs_single_get_response_data_relationships_documents import (
+ JobsSingleGetResponseDataRelationshipsDocuments,
+)
+from .jobs_single_get_response_data_relationships_documents_data_item import (
+ JobsSingleGetResponseDataRelationshipsDocumentsDataItem,
+)
+from .jobs_single_get_response_data_relationships_documents_data_item_type import (
+ JobsSingleGetResponseDataRelationshipsDocumentsDataItemType,
+)
+from .jobs_single_get_response_data_relationships_documents_meta import (
+ JobsSingleGetResponseDataRelationshipsDocumentsMeta,
+)
+from .jobs_single_get_response_data_relationships_project import (
+ JobsSingleGetResponseDataRelationshipsProject,
+)
+from .jobs_single_get_response_data_relationships_project_data import (
+ JobsSingleGetResponseDataRelationshipsProjectData,
+)
+from .jobs_single_get_response_data_relationships_project_data_type import (
+ JobsSingleGetResponseDataRelationshipsProjectDataType,
+)
+from .jobs_single_get_response_data_type import JobsSingleGetResponseDataType
+from .jobs_single_get_response_included_item import (
+ JobsSingleGetResponseIncludedItem,
+)
+from .jobs_single_get_response_links import JobsSingleGetResponseLinks
+from .jobs_single_post_response import JobsSinglePostResponse
+from .jobs_single_post_response_data import JobsSinglePostResponseData
+from .jobs_single_post_response_data_attributes import (
+ JobsSinglePostResponseDataAttributes,
+)
+from .jobs_single_post_response_data_attributes_status import (
+ JobsSinglePostResponseDataAttributesStatus,
+)
+from .jobs_single_post_response_data_attributes_status_type import (
+ JobsSinglePostResponseDataAttributesStatusType,
+)
+from .jobs_single_post_response_data_links import (
+ JobsSinglePostResponseDataLinks,
+)
+from .jobs_single_post_response_data_relationships import (
+ JobsSinglePostResponseDataRelationships,
+)
+from .jobs_single_post_response_data_relationships_document import (
+ JobsSinglePostResponseDataRelationshipsDocument,
+)
+from .jobs_single_post_response_data_relationships_document_data import (
+ JobsSinglePostResponseDataRelationshipsDocumentData,
+)
+from .jobs_single_post_response_data_relationships_document_data_type import (
+ JobsSinglePostResponseDataRelationshipsDocumentDataType,
+)
+from .jobs_single_post_response_data_relationships_documents import (
+ JobsSinglePostResponseDataRelationshipsDocuments,
+)
+from .jobs_single_post_response_data_relationships_documents_data_item import (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItem,
+)
+from .jobs_single_post_response_data_relationships_documents_data_item_type import (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItemType,
+)
+from .jobs_single_post_response_data_relationships_project import (
+ JobsSinglePostResponseDataRelationshipsProject,
+)
+from .jobs_single_post_response_data_relationships_project_data import (
+ JobsSinglePostResponseDataRelationshipsProjectData,
+)
+from .jobs_single_post_response_data_relationships_project_data_type import (
+ JobsSinglePostResponseDataRelationshipsProjectDataType,
+)
+from .jobs_single_post_response_data_type import JobsSinglePostResponseDataType
from .linkedoslcresources_list_delete_request import (
LinkedoslcresourcesListDeleteRequest,
)
@@ -1466,6 +1573,7 @@
from .linkedworkitems_single_patch_request_data_type import (
LinkedworkitemsSinglePatchRequestDataType,
)
+from .merge_document_request_body import MergeDocumentRequestBody
from .move_project_request_body import MoveProjectRequestBody
from .move_work_item_to_document_request_body import (
MoveWorkItemToDocumentRequestBody,
@@ -1623,9 +1731,15 @@
from .patch_document_attachments_request_body import (
PatchDocumentAttachmentsRequestBody,
)
+from .patch_test_record_attachments_request_body import (
+ PatchTestRecordAttachmentsRequestBody,
+)
from .patch_test_run_attachments_request_body import (
PatchTestRunAttachmentsRequestBody,
)
+from .patch_test_step_result_attachments_request_body import (
+ PatchTestStepResultAttachmentsRequestBody,
+)
from .patch_work_item_attachments_request_body import (
PatchWorkItemAttachmentsRequestBody,
)
@@ -2238,6 +2352,15 @@
from .set_license_request_body import SetLicenseRequestBody
from .set_license_request_body_license import SetLicenseRequestBodyLicense
from .sparse_fields import SparseFields
+from .testparameter_definitions_list_delete_request import (
+ TestparameterDefinitionsListDeleteRequest,
+)
+from .testparameter_definitions_list_delete_request_data_item import (
+ TestparameterDefinitionsListDeleteRequestDataItem,
+)
+from .testparameter_definitions_list_delete_request_data_item_type import (
+ TestparameterDefinitionsListDeleteRequestDataItemType,
+)
from .testparameter_definitions_list_get_response import (
TestparameterDefinitionsListGetResponse,
)
@@ -2331,6 +2454,13 @@
from .testparameter_definitions_single_get_response_links import (
TestparameterDefinitionsSingleGetResponseLinks,
)
+from .testparameters_list_delete_request import TestparametersListDeleteRequest
+from .testparameters_list_delete_request_data_item import (
+ TestparametersListDeleteRequestDataItem,
+)
+from .testparameters_list_delete_request_data_item_type import (
+ TestparametersListDeleteRequestDataItemType,
+)
from .testparameters_list_get_response import TestparametersListGetResponse
from .testparameters_list_get_response_data_item import (
TestparametersListGetResponseDataItem,
@@ -2440,6 +2570,15 @@
from .testparameters_single_get_response_links import (
TestparametersSingleGetResponseLinks,
)
+from .testrecord_attachments_list_delete_request import (
+ TestrecordAttachmentsListDeleteRequest,
+)
+from .testrecord_attachments_list_delete_request_data_item import (
+ TestrecordAttachmentsListDeleteRequestDataItem,
+)
+from .testrecord_attachments_list_delete_request_data_item_type import (
+ TestrecordAttachmentsListDeleteRequestDataItemType,
+)
from .testrecord_attachments_list_get_response import (
TestrecordAttachmentsListGetResponse,
)
@@ -2575,6 +2714,18 @@
from .testrecord_attachments_single_get_response_links import (
TestrecordAttachmentsSingleGetResponseLinks,
)
+from .testrecord_attachments_single_patch_request import (
+ TestrecordAttachmentsSinglePatchRequest,
+)
+from .testrecord_attachments_single_patch_request_data import (
+ TestrecordAttachmentsSinglePatchRequestData,
+)
+from .testrecord_attachments_single_patch_request_data_attributes import (
+ TestrecordAttachmentsSinglePatchRequestDataAttributes,
+)
+from .testrecord_attachments_single_patch_request_data_type import (
+ TestrecordAttachmentsSinglePatchRequestDataType,
+)
from .testrecords_list_get_response import TestrecordsListGetResponse
from .testrecords_list_get_response_data_item import (
TestrecordsListGetResponseDataItem,
@@ -2643,6 +2794,43 @@
TestrecordsListGetResponseLinks,
)
from .testrecords_list_get_response_meta import TestrecordsListGetResponseMeta
+from .testrecords_list_patch_request import TestrecordsListPatchRequest
+from .testrecords_list_patch_request_data_item import (
+ TestrecordsListPatchRequestDataItem,
+)
+from .testrecords_list_patch_request_data_item_attributes import (
+ TestrecordsListPatchRequestDataItemAttributes,
+)
+from .testrecords_list_patch_request_data_item_attributes_comment import (
+ TestrecordsListPatchRequestDataItemAttributesComment,
+)
+from .testrecords_list_patch_request_data_item_attributes_comment_type import (
+ TestrecordsListPatchRequestDataItemAttributesCommentType,
+)
+from .testrecords_list_patch_request_data_item_relationships import (
+ TestrecordsListPatchRequestDataItemRelationships,
+)
+from .testrecords_list_patch_request_data_item_relationships_defect import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefect,
+)
+from .testrecords_list_patch_request_data_item_relationships_defect_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectData,
+)
+from .testrecords_list_patch_request_data_item_relationships_defect_data_type import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectDataType,
+)
+from .testrecords_list_patch_request_data_item_relationships_executed_by import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedBy,
+)
+from .testrecords_list_patch_request_data_item_relationships_executed_by_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByData,
+)
+from .testrecords_list_patch_request_data_item_relationships_executed_by_data_type import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType,
+)
+from .testrecords_list_patch_request_data_item_type import (
+ TestrecordsListPatchRequestDataItemType,
+)
from .testrecords_list_post_request import TestrecordsListPostRequest
from .testrecords_list_post_request_data_item import (
TestrecordsListPostRequestDataItem,
@@ -2803,6 +2991,15 @@
from .testrecords_single_patch_request_data_type import (
TestrecordsSinglePatchRequestDataType,
)
+from .testrun_attachments_list_delete_request import (
+ TestrunAttachmentsListDeleteRequest,
+)
+from .testrun_attachments_list_delete_request_data_item import (
+ TestrunAttachmentsListDeleteRequestDataItem,
+)
+from .testrun_attachments_list_delete_request_data_item_type import (
+ TestrunAttachmentsListDeleteRequestDataItemType,
+)
from .testrun_attachments_list_get_response import (
TestrunAttachmentsListGetResponse,
)
@@ -3032,6 +3229,18 @@
from .testrun_comments_list_get_response_meta import (
TestrunCommentsListGetResponseMeta,
)
+from .testrun_comments_list_patch_request import (
+ TestrunCommentsListPatchRequest,
+)
+from .testrun_comments_list_patch_request_data_item import (
+ TestrunCommentsListPatchRequestDataItem,
+)
+from .testrun_comments_list_patch_request_data_item_attributes import (
+ TestrunCommentsListPatchRequestDataItemAttributes,
+)
+from .testrun_comments_list_patch_request_data_item_type import (
+ TestrunCommentsListPatchRequestDataItemType,
+)
from .testrun_comments_list_post_request import TestrunCommentsListPostRequest
from .testrun_comments_list_post_request_data_item import (
TestrunCommentsListPostRequestDataItem,
@@ -3174,6 +3383,13 @@
from .testrun_comments_single_patch_request_data_type import (
TestrunCommentsSinglePatchRequestDataType,
)
+from .testruns_list_delete_request import TestrunsListDeleteRequest
+from .testruns_list_delete_request_data_item import (
+ TestrunsListDeleteRequestDataItem,
+)
+from .testruns_list_delete_request_data_item_type import (
+ TestrunsListDeleteRequestDataItemType,
+)
from .testruns_list_get_response import TestrunsListGetResponse
from .testruns_list_get_response_data_item import (
TestrunsListGetResponseDataItem,
@@ -3273,6 +3489,55 @@
)
from .testruns_list_get_response_links import TestrunsListGetResponseLinks
from .testruns_list_get_response_meta import TestrunsListGetResponseMeta
+from .testruns_list_patch_request import TestrunsListPatchRequest
+from .testruns_list_patch_request_data_item import (
+ TestrunsListPatchRequestDataItem,
+)
+from .testruns_list_patch_request_data_item_attributes import (
+ TestrunsListPatchRequestDataItemAttributes,
+)
+from .testruns_list_patch_request_data_item_attributes_home_page_content import (
+ TestrunsListPatchRequestDataItemAttributesHomePageContent,
+)
+from .testruns_list_patch_request_data_item_attributes_home_page_content_type import (
+ TestrunsListPatchRequestDataItemAttributesHomePageContentType,
+)
+from .testruns_list_patch_request_data_item_attributes_select_test_cases_by import (
+ TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy,
+)
+from .testruns_list_patch_request_data_item_relationships import (
+ TestrunsListPatchRequestDataItemRelationships,
+)
+from .testruns_list_patch_request_data_item_relationships_document import (
+ TestrunsListPatchRequestDataItemRelationshipsDocument,
+)
+from .testruns_list_patch_request_data_item_relationships_document_data import (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentData,
+)
+from .testruns_list_patch_request_data_item_relationships_document_data_type import (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentDataType,
+)
+from .testruns_list_patch_request_data_item_relationships_project_span import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpan,
+)
+from .testruns_list_patch_request_data_item_relationships_project_span_data_item import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem,
+)
+from .testruns_list_patch_request_data_item_relationships_project_span_data_item_type import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType,
+)
+from .testruns_list_patch_request_data_item_relationships_summary_defect import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefect,
+)
+from .testruns_list_patch_request_data_item_relationships_summary_defect_data import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData,
+)
+from .testruns_list_patch_request_data_item_relationships_summary_defect_data_type import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType,
+)
+from .testruns_list_patch_request_data_item_type import (
+ TestrunsListPatchRequestDataItemType,
+)
from .testruns_list_post_request import TestrunsListPostRequest
from .testruns_list_post_request_data_item import (
TestrunsListPostRequestDataItem,
@@ -3536,6 +3801,24 @@
from .teststep_results_list_get_response_meta import (
TeststepResultsListGetResponseMeta,
)
+from .teststep_results_list_patch_request import (
+ TeststepResultsListPatchRequest,
+)
+from .teststep_results_list_patch_request_data_item import (
+ TeststepResultsListPatchRequestDataItem,
+)
+from .teststep_results_list_patch_request_data_item_attributes import (
+ TeststepResultsListPatchRequestDataItemAttributes,
+)
+from .teststep_results_list_patch_request_data_item_attributes_comment import (
+ TeststepResultsListPatchRequestDataItemAttributesComment,
+)
+from .teststep_results_list_patch_request_data_item_attributes_comment_type import (
+ TeststepResultsListPatchRequestDataItemAttributesCommentType,
+)
+from .teststep_results_list_patch_request_data_item_type import (
+ TeststepResultsListPatchRequestDataItemType,
+)
from .teststep_results_list_post_request import TeststepResultsListPostRequest
from .teststep_results_list_post_request_data_item import (
TeststepResultsListPostRequestDataItem,
@@ -3615,6 +3898,33 @@
from .teststep_results_single_get_response_links import (
TeststepResultsSingleGetResponseLinks,
)
+from .teststep_results_single_patch_request import (
+ TeststepResultsSinglePatchRequest,
+)
+from .teststep_results_single_patch_request_data import (
+ TeststepResultsSinglePatchRequestData,
+)
+from .teststep_results_single_patch_request_data_attributes import (
+ TeststepResultsSinglePatchRequestDataAttributes,
+)
+from .teststep_results_single_patch_request_data_attributes_comment import (
+ TeststepResultsSinglePatchRequestDataAttributesComment,
+)
+from .teststep_results_single_patch_request_data_attributes_comment_type import (
+ TeststepResultsSinglePatchRequestDataAttributesCommentType,
+)
+from .teststep_results_single_patch_request_data_type import (
+ TeststepResultsSinglePatchRequestDataType,
+)
+from .teststepresult_attachments_list_delete_request import (
+ TeststepresultAttachmentsListDeleteRequest,
+)
+from .teststepresult_attachments_list_delete_request_data_item import (
+ TeststepresultAttachmentsListDeleteRequestDataItem,
+)
+from .teststepresult_attachments_list_delete_request_data_item_type import (
+ TeststepresultAttachmentsListDeleteRequestDataItemType,
+)
from .teststepresult_attachments_list_get_response import (
TeststepresultAttachmentsListGetResponse,
)
@@ -3750,6 +4060,18 @@
from .teststepresult_attachments_single_get_response_links import (
TeststepresultAttachmentsSingleGetResponseLinks,
)
+from .teststepresult_attachments_single_patch_request import (
+ TeststepresultAttachmentsSinglePatchRequest,
+)
+from .teststepresult_attachments_single_patch_request_data import (
+ TeststepresultAttachmentsSinglePatchRequestData,
+)
+from .teststepresult_attachments_single_patch_request_data_attributes import (
+ TeststepresultAttachmentsSinglePatchRequestDataAttributes,
+)
+from .teststepresult_attachments_single_patch_request_data_type import (
+ TeststepresultAttachmentsSinglePatchRequestDataType,
+)
from .teststeps_list_delete_request import TeststepsListDeleteRequest
from .teststeps_list_delete_request_data_item import (
TeststepsListDeleteRequestDataItem,
@@ -5971,8 +6293,8 @@
"EnumOptionsActionResponseBodyMeta",
"Errors",
"ErrorsErrorsItem",
- "ErrorsErrorsItemSource",
- "ErrorsErrorsItemSourceResource",
+ "ErrorsErrorsItemSourceType0",
+ "ErrorsErrorsItemSourceType0ResourceType0",
"ExportTestCasesRequestBody",
"ExternallylinkedworkitemsListDeleteRequest",
"ExternallylinkedworkitemsListDeleteRequestDataItem",
@@ -6087,6 +6409,47 @@
"IconsSingleGetResponseIncludedItem",
"IconsSingleGetResponseLinks",
"ImportTestResultsRequestBody",
+ "JobsSingleGetResponse",
+ "JobsSingleGetResponseData",
+ "JobsSingleGetResponseDataAttributes",
+ "JobsSingleGetResponseDataAttributesStatus",
+ "JobsSingleGetResponseDataAttributesStatusType",
+ "JobsSingleGetResponseDataLinks",
+ "JobsSingleGetResponseDataMeta",
+ "JobsSingleGetResponseDataMetaErrorsItem",
+ "JobsSingleGetResponseDataMetaErrorsItemSource",
+ "JobsSingleGetResponseDataMetaErrorsItemSourceResource",
+ "JobsSingleGetResponseDataRelationships",
+ "JobsSingleGetResponseDataRelationshipsDocument",
+ "JobsSingleGetResponseDataRelationshipsDocumentData",
+ "JobsSingleGetResponseDataRelationshipsDocumentDataType",
+ "JobsSingleGetResponseDataRelationshipsDocuments",
+ "JobsSingleGetResponseDataRelationshipsDocumentsDataItem",
+ "JobsSingleGetResponseDataRelationshipsDocumentsDataItemType",
+ "JobsSingleGetResponseDataRelationshipsDocumentsMeta",
+ "JobsSingleGetResponseDataRelationshipsProject",
+ "JobsSingleGetResponseDataRelationshipsProjectData",
+ "JobsSingleGetResponseDataRelationshipsProjectDataType",
+ "JobsSingleGetResponseDataType",
+ "JobsSingleGetResponseIncludedItem",
+ "JobsSingleGetResponseLinks",
+ "JobsSinglePostResponse",
+ "JobsSinglePostResponseData",
+ "JobsSinglePostResponseDataAttributes",
+ "JobsSinglePostResponseDataAttributesStatus",
+ "JobsSinglePostResponseDataAttributesStatusType",
+ "JobsSinglePostResponseDataLinks",
+ "JobsSinglePostResponseDataRelationships",
+ "JobsSinglePostResponseDataRelationshipsDocument",
+ "JobsSinglePostResponseDataRelationshipsDocumentData",
+ "JobsSinglePostResponseDataRelationshipsDocumentDataType",
+ "JobsSinglePostResponseDataRelationshipsDocuments",
+ "JobsSinglePostResponseDataRelationshipsDocumentsDataItem",
+ "JobsSinglePostResponseDataRelationshipsDocumentsDataItemType",
+ "JobsSinglePostResponseDataRelationshipsProject",
+ "JobsSinglePostResponseDataRelationshipsProjectData",
+ "JobsSinglePostResponseDataRelationshipsProjectDataType",
+ "JobsSinglePostResponseDataType",
"LinkedoslcresourcesListDeleteRequest",
"LinkedoslcresourcesListDeleteRequestDataItem",
"LinkedoslcresourcesListDeleteRequestDataItemType",
@@ -6159,6 +6522,7 @@
"LinkedworkitemsSinglePatchRequestData",
"LinkedworkitemsSinglePatchRequestDataAttributes",
"LinkedworkitemsSinglePatchRequestDataType",
+ "MergeDocumentRequestBody",
"MoveProjectRequestBody",
"MoveWorkItemToDocumentRequestBody",
"PageAttachmentsListPostRequest",
@@ -6218,7 +6582,9 @@
"PagesSinglePatchRequestDataType",
"Pagination",
"PatchDocumentAttachmentsRequestBody",
+ "PatchTestRecordAttachmentsRequestBody",
"PatchTestRunAttachmentsRequestBody",
+ "PatchTestStepResultAttachmentsRequestBody",
"PatchWorkItemAttachmentsRequestBody",
"PlansListDeleteRequest",
"PlansListDeleteRequestDataItem",
@@ -6453,6 +6819,9 @@
"SetLicenseRequestBody",
"SetLicenseRequestBodyLicense",
"SparseFields",
+ "TestparameterDefinitionsListDeleteRequest",
+ "TestparameterDefinitionsListDeleteRequestDataItem",
+ "TestparameterDefinitionsListDeleteRequestDataItemType",
"TestparameterDefinitionsListGetResponse",
"TestparameterDefinitionsListGetResponseDataItem",
"TestparameterDefinitionsListGetResponseDataItemAttributes",
@@ -6484,6 +6853,9 @@
"TestparameterDefinitionsSingleGetResponseDataType",
"TestparameterDefinitionsSingleGetResponseIncludedItem",
"TestparameterDefinitionsSingleGetResponseLinks",
+ "TestparametersListDeleteRequest",
+ "TestparametersListDeleteRequestDataItem",
+ "TestparametersListDeleteRequestDataItemType",
"TestparametersListGetResponse",
"TestparametersListGetResponseDataItem",
"TestparametersListGetResponseDataItemAttributes",
@@ -6523,6 +6895,9 @@
"TestparametersSingleGetResponseDataType",
"TestparametersSingleGetResponseIncludedItem",
"TestparametersSingleGetResponseLinks",
+ "TestrecordAttachmentsListDeleteRequest",
+ "TestrecordAttachmentsListDeleteRequestDataItem",
+ "TestrecordAttachmentsListDeleteRequestDataItemType",
"TestrecordAttachmentsListGetResponse",
"TestrecordAttachmentsListGetResponseDataItem",
"TestrecordAttachmentsListGetResponseDataItemAttributes",
@@ -6568,6 +6943,10 @@
"TestrecordAttachmentsSingleGetResponseDataType",
"TestrecordAttachmentsSingleGetResponseIncludedItem",
"TestrecordAttachmentsSingleGetResponseLinks",
+ "TestrecordAttachmentsSinglePatchRequest",
+ "TestrecordAttachmentsSinglePatchRequestData",
+ "TestrecordAttachmentsSinglePatchRequestDataAttributes",
+ "TestrecordAttachmentsSinglePatchRequestDataType",
"TestrecordsListGetResponse",
"TestrecordsListGetResponseDataItem",
"TestrecordsListGetResponseDataItemAttributes",
@@ -6592,6 +6971,19 @@
"TestrecordsListGetResponseIncludedItem",
"TestrecordsListGetResponseLinks",
"TestrecordsListGetResponseMeta",
+ "TestrecordsListPatchRequest",
+ "TestrecordsListPatchRequestDataItem",
+ "TestrecordsListPatchRequestDataItemAttributes",
+ "TestrecordsListPatchRequestDataItemAttributesComment",
+ "TestrecordsListPatchRequestDataItemAttributesCommentType",
+ "TestrecordsListPatchRequestDataItemRelationships",
+ "TestrecordsListPatchRequestDataItemRelationshipsDefect",
+ "TestrecordsListPatchRequestDataItemRelationshipsDefectData",
+ "TestrecordsListPatchRequestDataItemRelationshipsDefectDataType",
+ "TestrecordsListPatchRequestDataItemRelationshipsExecutedBy",
+ "TestrecordsListPatchRequestDataItemRelationshipsExecutedByData",
+ "TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType",
+ "TestrecordsListPatchRequestDataItemType",
"TestrecordsListPostRequest",
"TestrecordsListPostRequestDataItem",
"TestrecordsListPostRequestDataItemAttributes",
@@ -6648,6 +7040,9 @@
"TestrecordsSinglePatchRequestDataRelationshipsExecutedByData",
"TestrecordsSinglePatchRequestDataRelationshipsExecutedByDataType",
"TestrecordsSinglePatchRequestDataType",
+ "TestrunAttachmentsListDeleteRequest",
+ "TestrunAttachmentsListDeleteRequestDataItem",
+ "TestrunAttachmentsListDeleteRequestDataItemType",
"TestrunAttachmentsListGetResponse",
"TestrunAttachmentsListGetResponseDataItem",
"TestrunAttachmentsListGetResponseDataItemAttributes",
@@ -6725,6 +7120,10 @@
"TestrunCommentsListGetResponseIncludedItem",
"TestrunCommentsListGetResponseLinks",
"TestrunCommentsListGetResponseMeta",
+ "TestrunCommentsListPatchRequest",
+ "TestrunCommentsListPatchRequestDataItem",
+ "TestrunCommentsListPatchRequestDataItemAttributes",
+ "TestrunCommentsListPatchRequestDataItemType",
"TestrunCommentsListPostRequest",
"TestrunCommentsListPostRequestDataItem",
"TestrunCommentsListPostRequestDataItemAttributes",
@@ -6773,6 +7172,9 @@
"TestrunCommentsSinglePatchRequestData",
"TestrunCommentsSinglePatchRequestDataAttributes",
"TestrunCommentsSinglePatchRequestDataType",
+ "TestrunsListDeleteRequest",
+ "TestrunsListDeleteRequestDataItem",
+ "TestrunsListDeleteRequestDataItemType",
"TestrunsListGetResponse",
"TestrunsListGetResponseDataItem",
"TestrunsListGetResponseDataItemAttributes",
@@ -6808,6 +7210,23 @@
"TestrunsListGetResponseIncludedItem",
"TestrunsListGetResponseLinks",
"TestrunsListGetResponseMeta",
+ "TestrunsListPatchRequest",
+ "TestrunsListPatchRequestDataItem",
+ "TestrunsListPatchRequestDataItemAttributes",
+ "TestrunsListPatchRequestDataItemAttributesHomePageContent",
+ "TestrunsListPatchRequestDataItemAttributesHomePageContentType",
+ "TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy",
+ "TestrunsListPatchRequestDataItemRelationships",
+ "TestrunsListPatchRequestDataItemRelationshipsDocument",
+ "TestrunsListPatchRequestDataItemRelationshipsDocumentData",
+ "TestrunsListPatchRequestDataItemRelationshipsDocumentDataType",
+ "TestrunsListPatchRequestDataItemRelationshipsProjectSpan",
+ "TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem",
+ "TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType",
+ "TestrunsListPatchRequestDataItemRelationshipsSummaryDefect",
+ "TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData",
+ "TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType",
+ "TestrunsListPatchRequestDataItemType",
"TestrunsListPostRequest",
"TestrunsListPostRequestDataItem",
"TestrunsListPostRequestDataItemAttributes",
@@ -6883,6 +7302,9 @@
"TestrunsSinglePatchRequestDataRelationshipsSummaryDefectData",
"TestrunsSinglePatchRequestDataRelationshipsSummaryDefectDataType",
"TestrunsSinglePatchRequestDataType",
+ "TeststepresultAttachmentsListDeleteRequest",
+ "TeststepresultAttachmentsListDeleteRequestDataItem",
+ "TeststepresultAttachmentsListDeleteRequestDataItemType",
"TeststepresultAttachmentsListGetResponse",
"TeststepresultAttachmentsListGetResponseDataItem",
"TeststepresultAttachmentsListGetResponseDataItemAttributes",
@@ -6928,6 +7350,10 @@
"TeststepresultAttachmentsSingleGetResponseDataType",
"TeststepresultAttachmentsSingleGetResponseIncludedItem",
"TeststepresultAttachmentsSingleGetResponseLinks",
+ "TeststepresultAttachmentsSinglePatchRequest",
+ "TeststepresultAttachmentsSinglePatchRequestData",
+ "TeststepresultAttachmentsSinglePatchRequestDataAttributes",
+ "TeststepresultAttachmentsSinglePatchRequestDataType",
"TeststepResultsListGetResponse",
"TeststepResultsListGetResponseDataItem",
"TeststepResultsListGetResponseDataItemAttributes",
@@ -6946,6 +7372,12 @@
"TeststepResultsListGetResponseIncludedItem",
"TeststepResultsListGetResponseLinks",
"TeststepResultsListGetResponseMeta",
+ "TeststepResultsListPatchRequest",
+ "TeststepResultsListPatchRequestDataItem",
+ "TeststepResultsListPatchRequestDataItemAttributes",
+ "TeststepResultsListPatchRequestDataItemAttributesComment",
+ "TeststepResultsListPatchRequestDataItemAttributesCommentType",
+ "TeststepResultsListPatchRequestDataItemType",
"TeststepResultsListPostRequest",
"TeststepResultsListPostRequestDataItem",
"TeststepResultsListPostRequestDataItemAttributes",
@@ -6973,6 +7405,12 @@
"TeststepResultsSingleGetResponseDataType",
"TeststepResultsSingleGetResponseIncludedItem",
"TeststepResultsSingleGetResponseLinks",
+ "TeststepResultsSinglePatchRequest",
+ "TeststepResultsSinglePatchRequestData",
+ "TeststepResultsSinglePatchRequestDataAttributes",
+ "TeststepResultsSinglePatchRequestDataAttributesComment",
+ "TeststepResultsSinglePatchRequestDataAttributesCommentType",
+ "TeststepResultsSinglePatchRequestDataType",
"TeststepsListDeleteRequest",
"TeststepsListDeleteRequestDataItem",
"TeststepsListDeleteRequestDataItemType",
diff --git a/polarion_rest_api_client/open_api_client/models/branch_document_request_body.py b/polarion_rest_api_client/open_api_client/models/branch_document_request_body.py
index d7cb84f3..0b5f9eaa 100644
--- a/polarion_rest_api_client/open_api_client/models/branch_document_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/branch_document_request_body.py
@@ -15,75 +15,75 @@
class BranchDocumentRequestBody:
"""
Attributes:
- target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
- target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
- target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
copy_workflow_status_and_signatures (Union[Unset, bool]): Specifies that workflow status and signatures should
be copied to the branched document.
query (Union[Unset, str]): Specifies optional filtering query. Example: status:open.
+ target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
+ target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
+ target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
"""
- target_project_id: Union[Unset, str] = UNSET
- target_space_id: Union[Unset, str] = UNSET
- target_document_name: Union[Unset, str] = UNSET
copy_workflow_status_and_signatures: Union[Unset, bool] = UNSET
query: Union[Unset, str] = UNSET
+ target_document_name: Union[Unset, str] = UNSET
+ target_project_id: Union[Unset, str] = UNSET
+ target_space_id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- target_project_id = self.target_project_id
-
- target_space_id = self.target_space_id
-
- target_document_name = self.target_document_name
-
copy_workflow_status_and_signatures = (
self.copy_workflow_status_and_signatures
)
query = self.query
+ target_document_name = self.target_document_name
+
+ target_project_id = self.target_project_id
+
+ target_space_id = self.target_space_id
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if target_project_id is not UNSET:
- field_dict["targetProjectId"] = target_project_id
- if target_space_id is not UNSET:
- field_dict["targetSpaceId"] = target_space_id
- if target_document_name is not UNSET:
- field_dict["targetDocumentName"] = target_document_name
if copy_workflow_status_and_signatures is not UNSET:
field_dict["copyWorkflowStatusAndSignatures"] = (
copy_workflow_status_and_signatures
)
if query is not UNSET:
field_dict["query"] = query
+ if target_document_name is not UNSET:
+ field_dict["targetDocumentName"] = target_document_name
+ if target_project_id is not UNSET:
+ field_dict["targetProjectId"] = target_project_id
+ if target_space_id is not UNSET:
+ field_dict["targetSpaceId"] = target_space_id
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- target_project_id = d.pop("targetProjectId", UNSET)
-
- target_space_id = d.pop("targetSpaceId", UNSET)
-
- target_document_name = d.pop("targetDocumentName", UNSET)
-
copy_workflow_status_and_signatures = d.pop(
"copyWorkflowStatusAndSignatures", UNSET
)
query = d.pop("query", UNSET)
+ target_document_name = d.pop("targetDocumentName", UNSET)
+
+ target_project_id = d.pop("targetProjectId", UNSET)
+
+ target_space_id = d.pop("targetSpaceId", UNSET)
+
branch_document_request_body_obj = cls(
- target_project_id=target_project_id,
- target_space_id=target_space_id,
- target_document_name=target_document_name,
copy_workflow_status_and_signatures=copy_workflow_status_and_signatures,
query=query,
+ target_document_name=target_document_name,
+ target_project_id=target_project_id,
+ target_space_id=target_space_id,
)
branch_document_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/branch_documents_request_body_document_configurations_item.py b/polarion_rest_api_client/open_api_client/models/branch_documents_request_body_document_configurations_item.py
index f68bc0a9..abe48e32 100644
--- a/polarion_rest_api_client/open_api_client/models/branch_documents_request_body_document_configurations_item.py
+++ b/polarion_rest_api_client/open_api_client/models/branch_documents_request_body_document_configurations_item.py
@@ -16,33 +16,33 @@ class BranchDocumentsRequestBodyDocumentConfigurationsItem:
"""
Attributes:
source_document (str): Reference path of the source Document. Example: MyProjectId/MySpaceId/MyDocumentId.
- source_revision (Union[Unset, str]): Revision of the source Document. Example: 1234.
- target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
- target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
- target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
copy_workflow_status_and_signatures (Union[Unset, bool]): Specifies that workflow status and signatures should
be copied to the branched document.
+ initialized_fields (Union[Unset, List[str]]): Specifies fields of overwritten Work Items that should be
+ initialized (instead of being copied from source Work Items).
+ overwrite_work_items (Union[Unset, bool]): Specifies that Work Items in the branched Document should be
+ overwritten (instead of being referenced).
query (Union[Unset, str]): Specifies optional filtering query. Example: status:open.
+ source_revision (Union[Unset, str]): Revision of the source Document. Example: 1234.
+ target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
target_document_title (Union[Unset, str]): Title for new Document. Example: My Document Title.
+ target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
+ target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
update_title_heading (Union[Unset, bool]): Specifies that title heading of the target Document should be set to
the new Document's title.
- overwrite_work_items (Union[Unset, bool]): Specifies that Work Items in the branched Document should be
- overwritten (instead of being referenced).
- initialized_fields (Union[Unset, List[str]]): Specifies fields of overwritten Work Items that should be
- initialized (instead of being copied from source Work Items).
"""
source_document: str
- source_revision: Union[Unset, str] = UNSET
- target_project_id: Union[Unset, str] = UNSET
- target_space_id: Union[Unset, str] = UNSET
- target_document_name: Union[Unset, str] = UNSET
copy_workflow_status_and_signatures: Union[Unset, bool] = UNSET
+ initialized_fields: Union[Unset, List[str]] = UNSET
+ overwrite_work_items: Union[Unset, bool] = UNSET
query: Union[Unset, str] = UNSET
+ source_revision: Union[Unset, str] = UNSET
+ target_document_name: Union[Unset, str] = UNSET
target_document_title: Union[Unset, str] = UNSET
+ target_project_id: Union[Unset, str] = UNSET
+ target_space_id: Union[Unset, str] = UNSET
update_title_heading: Union[Unset, bool] = UNSET
- overwrite_work_items: Union[Unset, bool] = UNSET
- initialized_fields: Union[Unset, List[str]] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -50,29 +50,29 @@ class BranchDocumentsRequestBodyDocumentConfigurationsItem:
def to_dict(self) -> Dict[str, Any]:
source_document = self.source_document
- source_revision = self.source_revision
-
- target_project_id = self.target_project_id
-
- target_space_id = self.target_space_id
-
- target_document_name = self.target_document_name
-
copy_workflow_status_and_signatures = (
self.copy_workflow_status_and_signatures
)
+ initialized_fields: Union[Unset, List[str]] = UNSET
+ if not isinstance(self.initialized_fields, Unset):
+ initialized_fields = self.initialized_fields
+
+ overwrite_work_items = self.overwrite_work_items
+
query = self.query
+ source_revision = self.source_revision
+
+ target_document_name = self.target_document_name
+
target_document_title = self.target_document_title
- update_title_heading = self.update_title_heading
+ target_project_id = self.target_project_id
- overwrite_work_items = self.overwrite_work_items
+ target_space_id = self.target_space_id
- initialized_fields: Union[Unset, List[str]] = UNSET
- if not isinstance(self.initialized_fields, Unset):
- initialized_fields = self.initialized_fields
+ update_title_heading = self.update_title_heading
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
@@ -81,28 +81,28 @@ def to_dict(self) -> Dict[str, Any]:
"sourceDocument": source_document,
}
)
- if source_revision is not UNSET:
- field_dict["sourceRevision"] = source_revision
- if target_project_id is not UNSET:
- field_dict["targetProjectId"] = target_project_id
- if target_space_id is not UNSET:
- field_dict["targetSpaceId"] = target_space_id
- if target_document_name is not UNSET:
- field_dict["targetDocumentName"] = target_document_name
if copy_workflow_status_and_signatures is not UNSET:
field_dict["copyWorkflowStatusAndSignatures"] = (
copy_workflow_status_and_signatures
)
+ if initialized_fields is not UNSET:
+ field_dict["initializedFields"] = initialized_fields
+ if overwrite_work_items is not UNSET:
+ field_dict["overwriteWorkItems"] = overwrite_work_items
if query is not UNSET:
field_dict["query"] = query
+ if source_revision is not UNSET:
+ field_dict["sourceRevision"] = source_revision
+ if target_document_name is not UNSET:
+ field_dict["targetDocumentName"] = target_document_name
if target_document_title is not UNSET:
field_dict["targetDocumentTitle"] = target_document_title
+ if target_project_id is not UNSET:
+ field_dict["targetProjectId"] = target_project_id
+ if target_space_id is not UNSET:
+ field_dict["targetSpaceId"] = target_space_id
if update_title_heading is not UNSET:
field_dict["updateTitleHeading"] = update_title_heading
- if overwrite_work_items is not UNSET:
- field_dict["overwriteWorkItems"] = overwrite_work_items
- if initialized_fields is not UNSET:
- field_dict["initializedFields"] = initialized_fields
return field_dict
@@ -111,40 +111,40 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
source_document = d.pop("sourceDocument")
- source_revision = d.pop("sourceRevision", UNSET)
-
- target_project_id = d.pop("targetProjectId", UNSET)
-
- target_space_id = d.pop("targetSpaceId", UNSET)
-
- target_document_name = d.pop("targetDocumentName", UNSET)
-
copy_workflow_status_and_signatures = d.pop(
"copyWorkflowStatusAndSignatures", UNSET
)
+ initialized_fields = cast(List[str], d.pop("initializedFields", UNSET))
+
+ overwrite_work_items = d.pop("overwriteWorkItems", UNSET)
+
query = d.pop("query", UNSET)
+ source_revision = d.pop("sourceRevision", UNSET)
+
+ target_document_name = d.pop("targetDocumentName", UNSET)
+
target_document_title = d.pop("targetDocumentTitle", UNSET)
- update_title_heading = d.pop("updateTitleHeading", UNSET)
+ target_project_id = d.pop("targetProjectId", UNSET)
- overwrite_work_items = d.pop("overwriteWorkItems", UNSET)
+ target_space_id = d.pop("targetSpaceId", UNSET)
- initialized_fields = cast(List[str], d.pop("initializedFields", UNSET))
+ update_title_heading = d.pop("updateTitleHeading", UNSET)
branch_documents_request_body_document_configurations_item_obj = cls(
source_document=source_document,
- source_revision=source_revision,
- target_project_id=target_project_id,
- target_space_id=target_space_id,
- target_document_name=target_document_name,
copy_workflow_status_and_signatures=copy_workflow_status_and_signatures,
+ initialized_fields=initialized_fields,
+ overwrite_work_items=overwrite_work_items,
query=query,
+ source_revision=source_revision,
+ target_document_name=target_document_name,
target_document_title=target_document_title,
+ target_project_id=target_project_id,
+ target_space_id=target_space_id,
update_title_heading=update_title_heading,
- overwrite_work_items=overwrite_work_items,
- initialized_fields=initialized_fields,
)
branch_documents_request_body_document_configurations_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/copy_document_request_body.py b/polarion_rest_api_client/open_api_client/models/copy_document_request_body.py
index c703bdf9..556ada6e 100644
--- a/polarion_rest_api_client/open_api_client/models/copy_document_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/copy_document_request_body.py
@@ -15,73 +15,73 @@
class CopyDocumentRequestBody:
"""
Attributes:
- target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
- target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
- target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
- remove_outgoing_links (Union[Unset, bool]): Should outgoing links be removed? Example: True.
link_original_items_with_role (Union[Unset, str]): Link a copy of the document to the original. Example:
duplicates.
+ remove_outgoing_links (Union[Unset, bool]): Should outgoing links be removed? Example: True.
+ target_document_name (Union[Unset, str]): Name for new Document. Example: MyDocumentId.
+ target_project_id (Union[Unset, str]): Project where new document will be created. Example: MyProjectId.
+ target_space_id (Union[Unset, str]): Space where new document will be created. Example: MySpaceId.
"""
+ link_original_items_with_role: Union[Unset, str] = UNSET
+ remove_outgoing_links: Union[Unset, bool] = UNSET
+ target_document_name: Union[Unset, str] = UNSET
target_project_id: Union[Unset, str] = UNSET
target_space_id: Union[Unset, str] = UNSET
- target_document_name: Union[Unset, str] = UNSET
- remove_outgoing_links: Union[Unset, bool] = UNSET
- link_original_items_with_role: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- target_project_id = self.target_project_id
+ link_original_items_with_role = self.link_original_items_with_role
- target_space_id = self.target_space_id
+ remove_outgoing_links = self.remove_outgoing_links
target_document_name = self.target_document_name
- remove_outgoing_links = self.remove_outgoing_links
+ target_project_id = self.target_project_id
- link_original_items_with_role = self.link_original_items_with_role
+ target_space_id = self.target_space_id
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if target_project_id is not UNSET:
- field_dict["targetProjectId"] = target_project_id
- if target_space_id is not UNSET:
- field_dict["targetSpaceId"] = target_space_id
- if target_document_name is not UNSET:
- field_dict["targetDocumentName"] = target_document_name
- if remove_outgoing_links is not UNSET:
- field_dict["removeOutgoingLinks"] = remove_outgoing_links
if link_original_items_with_role is not UNSET:
field_dict["linkOriginalItemsWithRole"] = (
link_original_items_with_role
)
+ if remove_outgoing_links is not UNSET:
+ field_dict["removeOutgoingLinks"] = remove_outgoing_links
+ if target_document_name is not UNSET:
+ field_dict["targetDocumentName"] = target_document_name
+ if target_project_id is not UNSET:
+ field_dict["targetProjectId"] = target_project_id
+ if target_space_id is not UNSET:
+ field_dict["targetSpaceId"] = target_space_id
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- target_project_id = d.pop("targetProjectId", UNSET)
+ link_original_items_with_role = d.pop(
+ "linkOriginalItemsWithRole", UNSET
+ )
- target_space_id = d.pop("targetSpaceId", UNSET)
+ remove_outgoing_links = d.pop("removeOutgoingLinks", UNSET)
target_document_name = d.pop("targetDocumentName", UNSET)
- remove_outgoing_links = d.pop("removeOutgoingLinks", UNSET)
+ target_project_id = d.pop("targetProjectId", UNSET)
- link_original_items_with_role = d.pop(
- "linkOriginalItemsWithRole", UNSET
- )
+ target_space_id = d.pop("targetSpaceId", UNSET)
copy_document_request_body_obj = cls(
+ link_original_items_with_role=link_original_items_with_role,
+ remove_outgoing_links=remove_outgoing_links,
+ target_document_name=target_document_name,
target_project_id=target_project_id,
target_space_id=target_space_id,
- target_document_name=target_document_name,
- remove_outgoing_links=remove_outgoing_links,
- link_original_items_with_role=link_original_items_with_role,
)
copy_document_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/create_project_request_body.py b/polarion_rest_api_client/open_api_client/models/create_project_request_body.py
index 2dfc1f5f..f5c402e0 100644
--- a/polarion_rest_api_client/open_api_client/models/create_project_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/create_project_request_body.py
@@ -21,19 +21,19 @@
class CreateProjectRequestBody:
"""
Attributes:
- project_id (Union[Unset, str]): Id of the new Project to be created. Example: MyProjectId.
- tracker_prefix (Union[Unset, str]): Tracker prefix of the new Project to be created. Example: MyTrackerPrefix.
location (Union[Unset, str]): Location of the new Project to be created. Example: MyLocation.
+ params (Union['CreateProjectRequestBodyParamsType0', None, Unset]): params of new Project to be created.
+ project_id (Union[Unset, str]): Id of the new Project to be created. Example: MyProjectId.
template_id (Union[None, Unset, str]): Id of the template to create the new Project from. Example:
MyProjectTemplateId.
- params (Union['CreateProjectRequestBodyParamsType0', None, Unset]): params of new Project to be created.
+ tracker_prefix (Union[Unset, str]): Tracker prefix of the new Project to be created. Example: MyTrackerPrefix.
"""
- project_id: Union[Unset, str] = UNSET
- tracker_prefix: Union[Unset, str] = UNSET
location: Union[Unset, str] = UNSET
- template_id: Union[None, Unset, str] = UNSET
params: Union["CreateProjectRequestBodyParamsType0", None, Unset] = UNSET
+ project_id: Union[Unset, str] = UNSET
+ template_id: Union[None, Unset, str] = UNSET
+ tracker_prefix: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -43,18 +43,8 @@ def to_dict(self) -> Dict[str, Any]:
CreateProjectRequestBodyParamsType0,
)
- project_id = self.project_id
-
- tracker_prefix = self.tracker_prefix
-
location = self.location
- template_id: Union[None, Unset, str]
- if isinstance(self.template_id, Unset):
- template_id = UNSET
- else:
- template_id = self.template_id
-
params: Union[Dict[str, Any], None, Unset]
if isinstance(self.params, Unset):
params = UNSET
@@ -63,19 +53,29 @@ def to_dict(self) -> Dict[str, Any]:
else:
params = self.params
+ project_id = self.project_id
+
+ template_id: Union[None, Unset, str]
+ if isinstance(self.template_id, Unset):
+ template_id = UNSET
+ else:
+ template_id = self.template_id
+
+ tracker_prefix = self.tracker_prefix
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if project_id is not UNSET:
- field_dict["projectId"] = project_id
- if tracker_prefix is not UNSET:
- field_dict["trackerPrefix"] = tracker_prefix
if location is not UNSET:
field_dict["location"] = location
- if template_id is not UNSET:
- field_dict["templateId"] = template_id
if params is not UNSET:
field_dict["params"] = params
+ if project_id is not UNSET:
+ field_dict["projectId"] = project_id
+ if template_id is not UNSET:
+ field_dict["templateId"] = template_id
+ if tracker_prefix is not UNSET:
+ field_dict["trackerPrefix"] = tracker_prefix
return field_dict
@@ -86,21 +86,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- project_id = d.pop("projectId", UNSET)
-
- tracker_prefix = d.pop("trackerPrefix", UNSET)
-
location = d.pop("location", UNSET)
- def _parse_template_id(data: object) -> Union[None, Unset, str]:
- if data is None:
- return data
- if isinstance(data, Unset):
- return data
- return cast(Union[None, Unset, str], data)
-
- template_id = _parse_template_id(d.pop("templateId", UNSET))
-
def _parse_params(
data: object,
) -> Union["CreateProjectRequestBodyParamsType0", None, Unset]:
@@ -124,12 +111,25 @@ def _parse_params(
params = _parse_params(d.pop("params", UNSET))
+ project_id = d.pop("projectId", UNSET)
+
+ def _parse_template_id(data: object) -> Union[None, Unset, str]:
+ if data is None:
+ return data
+ if isinstance(data, Unset):
+ return data
+ return cast(Union[None, Unset, str], data)
+
+ template_id = _parse_template_id(d.pop("templateId", UNSET))
+
+ tracker_prefix = d.pop("trackerPrefix", UNSET)
+
create_project_request_body_obj = cls(
- project_id=project_id,
- tracker_prefix=tracker_prefix,
location=location,
- template_id=template_id,
params=params,
+ project_id=project_id,
+ template_id=template_id,
+ tracker_prefix=tracker_prefix,
)
create_project_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/create_project_request_body_params_type_0.py b/polarion_rest_api_client/open_api_client/models/create_project_request_body_params_type_0.py
index b7c776bc..3a23b747 100644
--- a/polarion_rest_api_client/open_api_client/models/create_project_request_body_params_type_0.py
+++ b/polarion_rest_api_client/open_api_client/models/create_project_request_body_params_type_0.py
@@ -20,7 +20,6 @@ class CreateProjectRequestBodyParamsType0:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response.py
index a05b14f1..d6136198 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response.py
@@ -30,15 +30,15 @@
class DocumentAttachmentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, DocumentAttachmentsListGetResponseMeta]):
data (Union[Unset, List['DocumentAttachmentsListGetResponseDataItem']]):
included (Union[Unset, List['DocumentAttachmentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, DocumentAttachmentsListGetResponseLinks]):
+ meta (Union[Unset, DocumentAttachmentsListGetResponseMeta]):
"""
- meta: Union[Unset, "DocumentAttachmentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["DocumentAttachmentsListGetResponseDataItem"]] = (
UNSET
)
@@ -46,15 +46,12 @@ class DocumentAttachmentsListGetResponse:
Unset, List["DocumentAttachmentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "DocumentAttachmentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "DocumentAttachmentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentAttachmentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentAttachmentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentAttachmentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentAttachmentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentAttachmentsListGetResponseMeta.from_dict(_meta)
+
document_attachments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
document_attachments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item.py
index 29ceb1b2..944cdf85 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class DocumentAttachmentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentAttachmentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, DocumentAttachmentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, DocumentAttachmentsListGetResponseDataItemMeta]):
links (Union[Unset, DocumentAttachmentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, DocumentAttachmentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, DocumentAttachmentsListGetResponseDataItemType] = UNSET
@@ -51,10 +51,10 @@ class DocumentAttachmentsListGetResponseDataItem:
relationships: Union[
Unset, "DocumentAttachmentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "DocumentAttachmentsListGetResponseDataItemMeta"] = (
+ links: Union[Unset, "DocumentAttachmentsListGetResponseDataItemLinks"] = (
UNSET
)
- links: Union[Unset, "DocumentAttachmentsListGetResponseDataItemLinks"] = (
+ meta: Union[Unset, "DocumentAttachmentsListGetResponseDataItemMeta"] = (
UNSET
)
additional_properties: Dict[str, Any] = _attrs_field(
@@ -78,14 +78,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -99,10 +99,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -157,15 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentAttachmentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentAttachmentsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentAttachmentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -175,14 +166,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentAttachmentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentAttachmentsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
document_attachments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_attachments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_links.py
index 253ee19f..53c787a6 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class DocumentAttachmentsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/d
ocuments/MyDocumentId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
document_attachments_list_get_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
document_attachments_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item.py
index 8664d30d..5a99d866 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class DocumentAttachmentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -90,11 +86,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_attachments_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
document_attachments_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item_source.py
index b9a30591..5b2a57c9 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class DocumentAttachmentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
document_attachments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_author_data.py
index 948f810a..b5ccc6de 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_author_data.py
@@ -21,45 +21,49 @@
class DocumentAttachmentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentAttachmentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_attachments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_attachments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_project_data.py
index 9fc28e9f..17deed33 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class DocumentAttachmentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentAttachmentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_attachments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_attachments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_included_item.py
index 3b0883d2..d67a87c3 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentAttachmentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_links.py
index 40164161..a410e9bb 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_get_response_links.py
@@ -15,73 +15,73 @@
class DocumentAttachmentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/doc
- uments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/doc
uments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/docu
- ments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/doc
- uments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/docu
ments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/doc
+ uments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/docu
+ ments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/doc
+ uments/MyDocumentId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
document_attachments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
document_attachments_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_request_data_item.py
index 41d75e35..5aecb584 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_request_data_item.py
@@ -25,15 +25,15 @@ class DocumentAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, DocumentAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, DocumentAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[Unset, DocumentAttachmentsListPostRequestDataItemType] = UNSET
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "DocumentAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -43,21 +43,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -75,8 +75,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = DocumentAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, DocumentAttachmentsListPostRequestDataItemAttributes
@@ -90,10 +88,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ lid = d.pop("lid", UNSET)
+
document_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
document_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_response_data_item_links.py
index 3c2d35ec..497b1c56 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class DocumentAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/d
ocuments/MyDocumentId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
document_attachments_list_post_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
document_attachments_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response.py
index dc63ba69..5a68a08b 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class DocumentAttachmentsSingleGetResponse:
data (Union[Unset, DocumentAttachmentsSingleGetResponseData]):
included (Union[Unset, List['DocumentAttachmentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, DocumentAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data.py
index 400d9ee8..ed379222 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data.py
@@ -38,8 +38,8 @@ class DocumentAttachmentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, DocumentAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, DocumentAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, DocumentAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, DocumentAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, DocumentAttachmentsSingleGetResponseDataType] = UNSET
@@ -51,10 +51,10 @@ class DocumentAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "DocumentAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "DocumentAttachmentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "DocumentAttachmentsSingleGetResponseDataLinks"] = (
UNSET
)
+ meta: Union[Unset, "DocumentAttachmentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -76,14 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -97,10 +97,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,15 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentAttachmentsSingleGetResponseDataMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentAttachmentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -173,14 +164,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentAttachmentsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+
document_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_attachments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_links.py
index 9e9a1f4c..b53e02b5 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class DocumentAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/spaces/MySpaceId/d
ocuments/MyDocumentId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
document_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
document_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item.py
index 40a64ff3..13cd28c4 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item.py
@@ -23,45 +23,45 @@
class DocumentAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,12 +85,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_attachments_single_get_response_data_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item_source.py
index efce7cdd..dea0068d 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class DocumentAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
document_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_author_data.py
index e6e83a54..e07b6f6d 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_author_data.py
@@ -21,45 +21,49 @@
class DocumentAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentAttachmentsSingleGetResponseDataRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_project_data.py
index bbfc5d46..3e11b4ab 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_data_relationships_project_data.py
@@ -21,45 +21,49 @@
class DocumentAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentAttachmentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_included_item.py
index 077cb51c..a43a9441 100644
--- a/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_attachments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response.py
index 87e2102d..2006db64 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response.py
@@ -30,29 +30,26 @@
class DocumentCommentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, DocumentCommentsListGetResponseMeta]):
data (Union[Unset, List['DocumentCommentsListGetResponseDataItem']]):
included (Union[Unset, List['DocumentCommentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, DocumentCommentsListGetResponseLinks]):
+ meta (Union[Unset, DocumentCommentsListGetResponseMeta]):
"""
- meta: Union[Unset, "DocumentCommentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["DocumentCommentsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["DocumentCommentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "DocumentCommentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "DocumentCommentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentCommentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentCommentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentCommentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentCommentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentCommentsListGetResponseMeta.from_dict(_meta)
+
document_comments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
document_comments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item.py
index e8730e65..447208bb 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class DocumentCommentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentCommentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, DocumentCommentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, DocumentCommentsListGetResponseDataItemMeta]):
links (Union[Unset, DocumentCommentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, DocumentCommentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, DocumentCommentsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class DocumentCommentsListGetResponseDataItem:
relationships: Union[
Unset, "DocumentCommentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "DocumentCommentsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "DocumentCommentsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "DocumentCommentsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentCommentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentCommentsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentCommentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentCommentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentCommentsListGetResponseDataItemMeta.from_dict(_meta)
+
document_comments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_comments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item.py
index 904d6f3a..3802fdc2 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class DocumentCommentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentCommentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentCommentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_comments_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item_source.py
index 4a59eb49..e3e4cfb8 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentCommentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentCommentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"DocumentCommentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class DocumentCommentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
document_comments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_author_data.py
index f2892c12..63967e2c 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_author_data.py
@@ -20,45 +20,49 @@
class DocumentCommentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_child_comments_data_item.py
index 61a584f3..234a8653 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class DocumentCommentsListGetResponseDataItemRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_list_get_response_data_item_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_list_get_response_data_item_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_parent_comment_data.py
index ceb7071a..eb5285c2 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class DocumentCommentsListGetResponseDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListGetResponseDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_list_get_response_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_list_get_response_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_project_data.py
index 3ee2eec5..5c1c305a 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class DocumentCommentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_included_item.py
index 1e2a58a5..2aa9b3a2 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentCommentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_links.py
index aabe8519..db0bf900 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_get_response_links.py
@@ -15,73 +15,73 @@
class DocumentCommentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
document_comments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
document_comments_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_author_data.py
index c3b5d6dc..ae92cd1c 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_author_data.py
@@ -20,39 +20,41 @@
class DocumentCommentsListPostRequestDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, DocumentCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListPostRequestDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
document_comments_list_post_request_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
document_comments_list_post_request_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_parent_comment_data.py
index 084a3268..afd88901 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_list_post_request_data_item_relationships_parent_comment_data.py
@@ -21,39 +21,41 @@
class DocumentCommentsListPostRequestDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
+ type (Union[Unset, DocumentCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsListPostRequestDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
document_comments_list_post_request_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
document_comments_list_post_request_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response.py
index 10088a79..1d019b3f 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response.py
@@ -30,7 +30,8 @@ class DocumentCommentsSingleGetResponse:
data (Union[Unset, DocumentCommentsSingleGetResponseData]):
included (Union[Unset, List['DocumentCommentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, DocumentCommentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data.py
index 80d48320..c9e4a529 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data.py
@@ -38,8 +38,8 @@ class DocumentCommentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentCommentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, DocumentCommentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, DocumentCommentsSingleGetResponseDataMeta]):
links (Union[Unset, DocumentCommentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, DocumentCommentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, DocumentCommentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class DocumentCommentsSingleGetResponseData:
relationships: Union[
Unset, "DocumentCommentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "DocumentCommentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "DocumentCommentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "DocumentCommentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentCommentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentCommentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentCommentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentCommentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentCommentsSingleGetResponseDataMeta.from_dict(_meta)
+
document_comments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_comments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item.py
index 5d0655b8..cda26843 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class DocumentCommentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentCommentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentCommentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_comments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
document_comments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item_source.py
index 0a65bfa4..778c84e9 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentCommentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentCommentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"DocumentCommentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class DocumentCommentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
document_comments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_author_data.py
index a776a2cf..1619293f 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_author_data.py
@@ -20,44 +20,48 @@
class DocumentCommentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentCommentsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_child_comments_data_item.py
index 516b4457..2b7fd947 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class DocumentCommentsSingleGetResponseDataRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_single_get_response_data_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_single_get_response_data_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_parent_comment_data.py
index 72e50f40..b5e4c6eb 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class DocumentCommentsSingleGetResponseDataRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsSingleGetResponseDataRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_single_get_response_data_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_single_get_response_data_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_project_data.py
index 21a75d9c..19ea7bc2 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_data_relationships_project_data.py
@@ -20,45 +20,49 @@
class DocumentCommentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentCommentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentCommentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_comments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_comments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_included_item.py
index 904a6c6d..80472e95 100644
--- a/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_comments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentCommentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response.py
index b906d9b4..17ad6aec 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response.py
@@ -30,29 +30,26 @@
class DocumentPartsListGetResponse:
"""
Attributes:
- meta (Union[Unset, DocumentPartsListGetResponseMeta]):
data (Union[Unset, List['DocumentPartsListGetResponseDataItem']]):
included (Union[Unset, List['DocumentPartsListGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, DocumentPartsListGetResponseLinks]):
+ meta (Union[Unset, DocumentPartsListGetResponseMeta]):
"""
- meta: Union[Unset, "DocumentPartsListGetResponseMeta"] = UNSET
data: Union[Unset, List["DocumentPartsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["DocumentPartsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "DocumentPartsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "DocumentPartsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentPartsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentPartsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentPartsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentPartsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentPartsListGetResponseMeta.from_dict(_meta)
+
document_parts_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
document_parts_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item.py
index 9f2603dd..40a09b5d 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class DocumentPartsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentPartsListGetResponseDataItemAttributes]):
relationships (Union[Unset, DocumentPartsListGetResponseDataItemRelationships]):
- meta (Union[Unset, DocumentPartsListGetResponseDataItemMeta]):
links (Union[Unset, DocumentPartsListGetResponseDataItemLinks]):
+ meta (Union[Unset, DocumentPartsListGetResponseDataItemMeta]):
"""
type: Union[Unset, DocumentPartsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class DocumentPartsListGetResponseDataItem:
relationships: Union[
Unset, "DocumentPartsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "DocumentPartsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "DocumentPartsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "DocumentPartsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentPartsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentPartsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentPartsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -169,14 +162,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentPartsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentPartsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentPartsListGetResponseDataItemMeta.from_dict(_meta)
+
document_parts_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_parts_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item.py
index 0bcf8f04..5637f3aa 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class DocumentPartsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentPartsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentPartsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_parts_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
document_parts_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item_source.py
index b965ead2..66cd2223 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentPartsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentPartsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"DocumentPartsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class DocumentPartsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
document_parts_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_next_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_next_part_data.py
index 67002c9b..c12454f3 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_next_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_next_part_data.py
@@ -20,45 +20,49 @@
class DocumentPartsListGetResponseDataItemRelationshipsNextPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsNextPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsNextPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListGetResponseDataItemRelationshipsNextPartDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_list_get_response_data_item_relationships_next_part_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_list_get_response_data_item_relationships_next_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_previous_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_previous_part_data.py
index cd07b70a..abd34cff 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_previous_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_previous_part_data.py
@@ -21,45 +21,49 @@
class DocumentPartsListGetResponseDataItemRelationshipsPreviousPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsPreviousPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsPreviousPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListGetResponseDataItemRelationshipsPreviousPartDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_list_get_response_data_item_relationships_previous_part_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_list_get_response_data_item_relationships_previous_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_work_item_data.py
index fc0274ee..4db65a35 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_data_item_relationships_work_item_data.py
@@ -20,45 +20,49 @@
class DocumentPartsListGetResponseDataItemRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsListGetResponseDataItemRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListGetResponseDataItemRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_list_get_response_data_item_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_list_get_response_data_item_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_included_item.py
index 92e7b183..3d50170a 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentPartsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_links.py
index ea337eca..64a6f53f 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_get_response_links.py
@@ -15,73 +15,73 @@
class DocumentPartsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/documents/MyDocumentId/parts?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
document_parts_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
document_parts_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_next_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_next_part_data.py
index 0893e1e9..851e64ea 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_next_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_next_part_data.py
@@ -20,39 +20,41 @@
class DocumentPartsListPostRequestDataItemRelationshipsNextPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsNextPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
+ type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsNextPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListPostRequestDataItemRelationshipsNextPartDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
document_parts_list_post_request_data_item_relationships_next_part_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
document_parts_list_post_request_data_item_relationships_next_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_previous_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_previous_part_data.py
index b54c5cce..26125081 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_previous_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_previous_part_data.py
@@ -21,39 +21,41 @@
class DocumentPartsListPostRequestDataItemRelationshipsPreviousPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsPreviousPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
+ type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsPreviousPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListPostRequestDataItemRelationshipsPreviousPartDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
document_parts_list_post_request_data_item_relationships_previous_part_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
document_parts_list_post_request_data_item_relationships_previous_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_work_item_data.py
index 36ff7588..d6a82089 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_list_post_request_data_item_relationships_work_item_data.py
@@ -20,39 +20,49 @@
class DocumentPartsListPostRequestDataItemRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsListPostRequestDataItemRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsListPostRequestDataItemRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
document_parts_list_post_request_data_item_relationships_work_item_data_obj = cls(
- type=type,
id=id,
+ revision=revision,
+ type=type,
)
document_parts_list_post_request_data_item_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response.py
index 296fac6d..96aa34f6 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response.py
@@ -29,8 +29,9 @@ class DocumentPartsSingleGetResponse:
Attributes:
data (Union[Unset, DocumentPartsSingleGetResponseData]):
included (Union[Unset, List['DocumentPartsSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, DocumentPartsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data.py
index 3f13b709..af96190b 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data.py
@@ -38,8 +38,8 @@ class DocumentPartsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentPartsSingleGetResponseDataAttributes]):
relationships (Union[Unset, DocumentPartsSingleGetResponseDataRelationships]):
- meta (Union[Unset, DocumentPartsSingleGetResponseDataMeta]):
links (Union[Unset, DocumentPartsSingleGetResponseDataLinks]):
+ meta (Union[Unset, DocumentPartsSingleGetResponseDataMeta]):
"""
type: Union[Unset, DocumentPartsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class DocumentPartsSingleGetResponseData:
relationships: Union[
Unset, "DocumentPartsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "DocumentPartsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "DocumentPartsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "DocumentPartsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -153,13 +153,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentPartsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentPartsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentPartsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -167,14 +160,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentPartsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentPartsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentPartsSingleGetResponseDataMeta.from_dict(_meta)
+
document_parts_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
document_parts_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item.py
index 107ed72e..0e88e316 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class DocumentPartsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentPartsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentPartsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
document_parts_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
document_parts_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item_source.py
index 18452cef..be3a5a07 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class DocumentPartsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentPartsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "DocumentPartsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -39,10 +39,10 @@ class DocumentPartsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -50,10 +50,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -66,10 +66,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
document_parts_single_get_response_data_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_next_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_next_part_data.py
index 1067f88f..173f65c4 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_next_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_next_part_data.py
@@ -20,44 +20,48 @@
class DocumentPartsSingleGetResponseDataRelationshipsNextPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsNextPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsNextPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentPartsSingleGetResponseDataRelationshipsNextPartDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_single_get_response_data_relationships_next_part_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_single_get_response_data_relationships_next_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_previous_part_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_previous_part_data.py
index fa557802..5b9bd992 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_previous_part_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_previous_part_data.py
@@ -21,45 +21,49 @@
class DocumentPartsSingleGetResponseDataRelationshipsPreviousPartData:
"""
Attributes:
- type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsPreviousPartDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsPreviousPartDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentPartsSingleGetResponseDataRelationshipsPreviousPartDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_single_get_response_data_relationships_previous_part_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_single_get_response_data_relationships_previous_part_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_work_item_data.py
index 9cf37fb9..bdcfece3 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_data_relationships_work_item_data.py
@@ -20,44 +20,48 @@
class DocumentPartsSingleGetResponseDataRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentPartsSingleGetResponseDataRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentPartsSingleGetResponseDataRelationshipsWorkItemDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
document_parts_single_get_response_data_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
document_parts_single_get_response_data_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_included_item.py
index 5bf91ff3..2a61969c 100644
--- a/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/document_parts_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentPartsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/documents_list_post_request_data_item_attributes_rendering_layouts_item.py b/polarion_rest_api_client/open_api_client/models/documents_list_post_request_data_item_attributes_rendering_layouts_item.py
index b2139682..bb67d8f5 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_list_post_request_data_item_attributes_rendering_layouts_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_list_post_request_data_item_attributes_rendering_layouts_item.py
@@ -23,13 +23,12 @@
class DocumentsListPostRequestDataItemAttributesRenderingLayoutsItem:
"""
Attributes:
- type (Union[Unset, str]): Example: task.
label (Union[Unset, str]): Example: My label.
layouter (Union[Unset, str]): Example: paragraph.
properties (Union[Unset, List['DocumentsListPostRequestDataItemAttributesRenderingLayoutsItemPropertiesItem']]):
+ type (Union[Unset, str]): Example: task.
"""
- type: Union[Unset, str] = UNSET
label: Union[Unset, str] = UNSET
layouter: Union[Unset, str] = UNSET
properties: Union[
@@ -38,13 +37,12 @@ class DocumentsListPostRequestDataItemAttributesRenderingLayoutsItem:
"DocumentsListPostRequestDataItemAttributesRenderingLayoutsItemPropertiesItem"
],
] = UNSET
+ type: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type = self.type
-
label = self.label
layouter = self.layouter
@@ -56,17 +54,19 @@ def to_dict(self) -> Dict[str, Any]:
properties_item = properties_item_data.to_dict()
properties.append(properties_item)
+ type = self.type
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if label is not UNSET:
field_dict["label"] = label
if layouter is not UNSET:
field_dict["layouter"] = layouter
if properties is not UNSET:
field_dict["properties"] = properties
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@@ -77,8 +77,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- type = d.pop("type", UNSET)
-
label = d.pop("label", UNSET)
layouter = d.pop("layouter", UNSET)
@@ -92,11 +90,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
properties.append(properties_item)
+ type = d.pop("type", UNSET)
+
documents_list_post_request_data_item_attributes_rendering_layouts_item_obj = cls(
- type=type,
label=label,
layouter=layouter,
properties=properties,
+ type=type,
)
documents_list_post_request_data_item_attributes_rendering_layouts_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response.py
index f300e032..8d3c4da7 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response.py
@@ -29,8 +29,9 @@ class DocumentsSingleGetResponse:
Attributes:
data (Union[Unset, DocumentsSingleGetResponseData]):
included (Union[Unset, List['DocumentsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, DocumentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data.py
index 571f528d..f4caafbf 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data.py
@@ -38,8 +38,8 @@ class DocumentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, DocumentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, DocumentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, DocumentsSingleGetResponseDataMeta]):
links (Union[Unset, DocumentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, DocumentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, DocumentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class DocumentsSingleGetResponseData:
relationships: Union[
Unset, "DocumentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "DocumentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "DocumentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "DocumentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, DocumentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, DocumentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = DocumentsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, DocumentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentsSingleGetResponseDataMeta.from_dict(_meta)
+
documents_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
documents_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_attributes_rendering_layouts_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_attributes_rendering_layouts_item.py
index 745be25b..51b79e51 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_attributes_rendering_layouts_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_attributes_rendering_layouts_item.py
@@ -23,13 +23,12 @@
class DocumentsSingleGetResponseDataAttributesRenderingLayoutsItem:
"""
Attributes:
- type (Union[Unset, str]): Example: task.
label (Union[Unset, str]): Example: My label.
layouter (Union[Unset, str]): Example: paragraph.
properties (Union[Unset, List['DocumentsSingleGetResponseDataAttributesRenderingLayoutsItemPropertiesItem']]):
+ type (Union[Unset, str]): Example: task.
"""
- type: Union[Unset, str] = UNSET
label: Union[Unset, str] = UNSET
layouter: Union[Unset, str] = UNSET
properties: Union[
@@ -38,13 +37,12 @@ class DocumentsSingleGetResponseDataAttributesRenderingLayoutsItem:
"DocumentsSingleGetResponseDataAttributesRenderingLayoutsItemPropertiesItem"
],
] = UNSET
+ type: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type = self.type
-
label = self.label
layouter = self.layouter
@@ -56,17 +54,19 @@ def to_dict(self) -> Dict[str, Any]:
properties_item = properties_item_data.to_dict()
properties.append(properties_item)
+ type = self.type
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if label is not UNSET:
field_dict["label"] = label
if layouter is not UNSET:
field_dict["layouter"] = layouter
if properties is not UNSET:
field_dict["properties"] = properties
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@@ -77,8 +77,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- type = d.pop("type", UNSET)
-
label = d.pop("label", UNSET)
layouter = d.pop("layouter", UNSET)
@@ -92,11 +90,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
properties.append(properties_item)
+ type = d.pop("type", UNSET)
+
documents_single_get_response_data_attributes_rendering_layouts_item_obj = cls(
- type=type,
label=label,
layouter=layouter,
properties=properties,
+ type=type,
)
documents_single_get_response_data_attributes_rendering_layouts_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item.py
index 50628f25..e7354b1f 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class DocumentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, DocumentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "DocumentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
documents_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
documents_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item_source.py
index d3edbdc5..40a40979 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class DocumentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, DocumentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "DocumentsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class DocumentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, DocumentsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
documents_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments.py
index 54ba7f0a..42546706 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments.py
@@ -30,20 +30,20 @@ class DocumentsSingleGetResponseDataRelationshipsAttachments:
"""
Attributes:
data (Union[Unset, List['DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItem']]):
- meta (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta]):
links (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsLinks]):
+ meta (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta]):
"""
data: Union[
Unset,
List["DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItem"],
] = UNSET
- meta: Union[
- Unset, "DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta"
- ] = UNSET
links: Union[
Unset, "DocumentsSingleGetResponseDataRelationshipsAttachmentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -56,23 +56,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -98,17 +98,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsLinks
@@ -120,10 +109,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentsSingleGetResponseDataRelationshipsAttachmentsMeta.from_dict(
+ _meta
+ )
+
documents_single_get_response_data_relationships_attachments_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
documents_single_get_response_data_relationships_attachments_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments_data_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments_data_item.py
index c6ab6eb4..59926803 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_attachments_data_item.py
@@ -20,45 +20,49 @@
class DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentsSingleGetResponseDataRelationshipsAttachmentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_attachments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_attachments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_author_data.py
index dcc3fafb..3d4196a4 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class DocumentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsAuthorDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_branched_from_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_branched_from_data.py
index 869b2956..8036906e 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_branched_from_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_branched_from_data.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsBranchedFromData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsBranchedFromDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsBranchedFromDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsBranchedFromDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_branched_from_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_branched_from_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments.py
index b60647da..7817b106 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments.py
@@ -28,20 +28,20 @@ class DocumentsSingleGetResponseDataRelationshipsComments:
"""
Attributes:
data (Union[Unset, List['DocumentsSingleGetResponseDataRelationshipsCommentsDataItem']]):
- meta (Union[Unset, DocumentsSingleGetResponseDataRelationshipsCommentsMeta]):
links (Union[Unset, DocumentsSingleGetResponseDataRelationshipsCommentsLinks]):
+ meta (Union[Unset, DocumentsSingleGetResponseDataRelationshipsCommentsMeta]):
"""
data: Union[
Unset,
List["DocumentsSingleGetResponseDataRelationshipsCommentsDataItem"],
] = UNSET
- meta: Union[
- Unset, "DocumentsSingleGetResponseDataRelationshipsCommentsMeta"
- ] = UNSET
links: Union[
Unset, "DocumentsSingleGetResponseDataRelationshipsCommentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "DocumentsSingleGetResponseDataRelationshipsCommentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -54,23 +54,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -96,17 +96,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, DocumentsSingleGetResponseDataRelationshipsCommentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = DocumentsSingleGetResponseDataRelationshipsCommentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsCommentsLinks
@@ -118,10 +107,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, DocumentsSingleGetResponseDataRelationshipsCommentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = DocumentsSingleGetResponseDataRelationshipsCommentsMeta.from_dict(
+ _meta
+ )
+
documents_single_get_response_data_relationships_comments_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
documents_single_get_response_data_relationships_comments_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments_data_item.py
index 6fb0c5f4..d3d27405 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_comments_data_item.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsCommentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsCommentsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_derived_from_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_derived_from_data.py
index 17041a45..10ffb131 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_derived_from_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_derived_from_data.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsDerivedFromData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsDerivedFromDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsDerivedFromDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsDerivedFromDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_derived_from_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_derived_from_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_project_data.py
index c210272e..942aed58 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_project_data.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsProjectDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_project_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_updated_by_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_updated_by_data.py
index f11c42cb..345e0432 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_updated_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_updated_by_data.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsUpdatedByData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsUpdatedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsUpdatedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsUpdatedByDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsUpdatedByDataType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_updated_by_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
documents_single_get_response_data_relationships_updated_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_variant_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_variant_data.py
index 28fdcffa..e55f4753 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_variant_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_data_relationships_variant_data.py
@@ -20,44 +20,48 @@
class DocumentsSingleGetResponseDataRelationshipsVariantData:
"""
Attributes:
- type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsVariantDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, DocumentsSingleGetResponseDataRelationshipsVariantDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsVariantDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSingleGetResponseDataRelationshipsVariantDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
documents_single_get_response_data_relationships_variant_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_included_item.py
index 879fd294..d470cf24 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class DocumentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_patch_request_data_attributes_rendering_layouts_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_patch_request_data_attributes_rendering_layouts_item.py
index 67aa5277..c190994f 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_patch_request_data_attributes_rendering_layouts_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_patch_request_data_attributes_rendering_layouts_item.py
@@ -23,13 +23,12 @@
class DocumentsSinglePatchRequestDataAttributesRenderingLayoutsItem:
"""
Attributes:
- type (Union[Unset, str]): Example: task.
label (Union[Unset, str]): Example: My label.
layouter (Union[Unset, str]): Example: paragraph.
properties (Union[Unset, List['DocumentsSinglePatchRequestDataAttributesRenderingLayoutsItemPropertiesItem']]):
+ type (Union[Unset, str]): Example: task.
"""
- type: Union[Unset, str] = UNSET
label: Union[Unset, str] = UNSET
layouter: Union[Unset, str] = UNSET
properties: Union[
@@ -38,13 +37,12 @@ class DocumentsSinglePatchRequestDataAttributesRenderingLayoutsItem:
"DocumentsSinglePatchRequestDataAttributesRenderingLayoutsItemPropertiesItem"
],
] = UNSET
+ type: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type = self.type
-
label = self.label
layouter = self.layouter
@@ -56,17 +54,19 @@ def to_dict(self) -> Dict[str, Any]:
properties_item = properties_item_data.to_dict()
properties.append(properties_item)
+ type = self.type
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if label is not UNSET:
field_dict["label"] = label
if layouter is not UNSET:
field_dict["layouter"] = layouter
if properties is not UNSET:
field_dict["properties"] = properties
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@@ -77,8 +77,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- type = d.pop("type", UNSET)
-
label = d.pop("label", UNSET)
layouter = d.pop("layouter", UNSET)
@@ -92,11 +90,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
properties.append(properties_item)
+ type = d.pop("type", UNSET)
+
documents_single_patch_request_data_attributes_rendering_layouts_item_obj = cls(
- type=type,
label=label,
layouter=layouter,
properties=properties,
+ type=type,
)
documents_single_patch_request_data_attributes_rendering_layouts_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_attributes_rendering_layouts_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_attributes_rendering_layouts_item.py
index ec8c860a..9a617d61 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_attributes_rendering_layouts_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_attributes_rendering_layouts_item.py
@@ -23,13 +23,12 @@
class DocumentsSinglePostResponseDataAttributesRenderingLayoutsItem:
"""
Attributes:
- type (Union[Unset, str]): Example: task.
label (Union[Unset, str]): Example: My label.
layouter (Union[Unset, str]): Example: paragraph.
properties (Union[Unset, List['DocumentsSinglePostResponseDataAttributesRenderingLayoutsItemPropertiesItem']]):
+ type (Union[Unset, str]): Example: task.
"""
- type: Union[Unset, str] = UNSET
label: Union[Unset, str] = UNSET
layouter: Union[Unset, str] = UNSET
properties: Union[
@@ -38,13 +37,12 @@ class DocumentsSinglePostResponseDataAttributesRenderingLayoutsItem:
"DocumentsSinglePostResponseDataAttributesRenderingLayoutsItemPropertiesItem"
],
] = UNSET
+ type: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type = self.type
-
label = self.label
layouter = self.layouter
@@ -56,17 +54,19 @@ def to_dict(self) -> Dict[str, Any]:
properties_item = properties_item_data.to_dict()
properties.append(properties_item)
+ type = self.type
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if label is not UNSET:
field_dict["label"] = label
if layouter is not UNSET:
field_dict["layouter"] = layouter
if properties is not UNSET:
field_dict["properties"] = properties
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@@ -77,8 +77,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- type = d.pop("type", UNSET)
-
label = d.pop("label", UNSET)
layouter = d.pop("layouter", UNSET)
@@ -92,11 +90,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
properties.append(properties_item)
+ type = d.pop("type", UNSET)
+
documents_single_post_response_data_attributes_rendering_layouts_item_obj = cls(
- type=type,
label=label,
layouter=layouter,
properties=properties,
+ type=type,
)
documents_single_post_response_data_attributes_rendering_layouts_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_attachments_data_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_attachments_data_item.py
index 1a80aa4f..2df9b26d 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_attachments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_attachments_data_item.py
@@ -21,39 +21,41 @@
class DocumentsSinglePostResponseDataRelationshipsAttachmentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsAttachmentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyAttachmentId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsAttachmentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
DocumentsSinglePostResponseDataRelationshipsAttachmentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_attachments_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
documents_single_post_response_data_relationships_attachments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_author_data.py
index 01010d5f..1e6cb9e0 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_author_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsAuthorDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_author_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_branched_from_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_branched_from_data.py
index 734ea609..3f129d2a 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_branched_from_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_branched_from_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsBranchedFromData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsBranchedFromDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsBranchedFromDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsBranchedFromDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_branched_from_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
documents_single_post_response_data_relationships_branched_from_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_comments_data_item.py
index 0d9dddfe..83a02056 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_comments_data_item.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsCommentsDataItem:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/MyCommentId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsCommentsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_comments_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
documents_single_post_response_data_relationships_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_derived_from_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_derived_from_data.py
index f9d7e518..017da5f7 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_derived_from_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_derived_from_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsDerivedFromData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsDerivedFromDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsDerivedFromDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsDerivedFromDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_derived_from_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
documents_single_post_response_data_relationships_derived_from_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_project_data.py
index b405eb63..7a931efd 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_project_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsProjectDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_project_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_updated_by_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_updated_by_data.py
index 308b2509..c99b0d92 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_updated_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_updated_by_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsUpdatedByData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsUpdatedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsUpdatedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsUpdatedByDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_updated_by_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
documents_single_post_response_data_relationships_updated_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_variant_data.py b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_variant_data.py
index f35b5384..3c21fca9 100644
--- a/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_variant_data.py
+++ b/polarion_rest_api_client/open_api_client/models/documents_single_post_response_data_relationships_variant_data.py
@@ -20,38 +20,40 @@
class DocumentsSinglePostResponseDataRelationshipsVariantData:
"""
Attributes:
- type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsVariantDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, DocumentsSinglePostResponseDataRelationshipsVariantDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsVariantDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, DocumentsSinglePostResponseDataRelationshipsVariantDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
documents_single_post_response_data_relationships_variant_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body.py b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body.py
index a13ee376..d699355a 100644
--- a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body.py
+++ b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body.py
@@ -27,23 +27,19 @@
class EnumOptionsActionResponseBody:
"""
Attributes:
- meta (Union[Unset, EnumOptionsActionResponseBodyMeta]):
data (Union[Unset, List['EnumOptionsActionResponseBodyDataItem']]):
links (Union[Unset, EnumOptionsActionResponseBodyLinks]):
+ meta (Union[Unset, EnumOptionsActionResponseBodyMeta]):
"""
- meta: Union[Unset, "EnumOptionsActionResponseBodyMeta"] = UNSET
data: Union[Unset, List["EnumOptionsActionResponseBodyDataItem"]] = UNSET
links: Union[Unset, "EnumOptionsActionResponseBodyLinks"] = UNSET
+ meta: Union[Unset, "EnumOptionsActionResponseBodyMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -55,15 +51,19 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -80,13 +80,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, EnumOptionsActionResponseBodyMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = EnumOptionsActionResponseBodyMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -103,10 +96,17 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = EnumOptionsActionResponseBodyLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, EnumOptionsActionResponseBodyMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = EnumOptionsActionResponseBodyMeta.from_dict(_meta)
+
enum_options_action_response_body_obj = cls(
- meta=meta,
data=data,
links=links,
+ meta=meta,
)
enum_options_action_response_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_data_item.py b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_data_item.py
index 11a3b118..29c902f9 100644
--- a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_data_item.py
@@ -16,36 +16,36 @@ class EnumOptionsActionResponseBodyDataItem:
"""
Attributes:
id (Union[Unset, str]): Example: open.
- name (Union[Unset, str]): Example: Open.
color (Union[Unset, str]): Example: #F9FF4D.
+ column_width (Union[Unset, str]): Example: 90%.
+ create_defect (Union[Unset, bool]): Example: True.
+ default (Union[Unset, bool]): Example: True.
description (Union[Unset, str]): Example: Description.
hidden (Union[Unset, bool]):
- default (Union[Unset, bool]): Example: True.
- parent (Union[Unset, bool]): Example: True.
- opposite_name (Union[Unset, str]): Example: Opposite Name.
- column_width (Union[Unset, str]): Example: 90%.
icon_url (Union[Unset, str]): Example: /polarion/icons/default/enums/status_open.gif.
- create_defect (Union[Unset, bool]): Example: True.
- template_work_item (Union[Unset, str]): Example: exampleTemplate.
min_value (Union[Unset, float]): Example: 30.0.
+ name (Union[Unset, str]): Example: Open.
+ opposite_name (Union[Unset, str]): Example: Opposite Name.
+ parent (Union[Unset, bool]): Example: True.
requires_signature_for_test_case_execution (Union[Unset, bool]): Example: True.
+ template_work_item (Union[Unset, str]): Example: exampleTemplate.
terminal (Union[Unset, bool]): Example: True.
"""
id: Union[Unset, str] = UNSET
- name: Union[Unset, str] = UNSET
color: Union[Unset, str] = UNSET
+ column_width: Union[Unset, str] = UNSET
+ create_defect: Union[Unset, bool] = UNSET
+ default: Union[Unset, bool] = UNSET
description: Union[Unset, str] = UNSET
hidden: Union[Unset, bool] = UNSET
- default: Union[Unset, bool] = UNSET
- parent: Union[Unset, bool] = UNSET
- opposite_name: Union[Unset, str] = UNSET
- column_width: Union[Unset, str] = UNSET
icon_url: Union[Unset, str] = UNSET
- create_defect: Union[Unset, bool] = UNSET
- template_work_item: Union[Unset, str] = UNSET
min_value: Union[Unset, float] = UNSET
+ name: Union[Unset, str] = UNSET
+ opposite_name: Union[Unset, str] = UNSET
+ parent: Union[Unset, bool] = UNSET
requires_signature_for_test_case_execution: Union[Unset, bool] = UNSET
+ template_work_item: Union[Unset, str] = UNSET
terminal: Union[Unset, bool] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
@@ -54,34 +54,34 @@ class EnumOptionsActionResponseBodyDataItem:
def to_dict(self) -> Dict[str, Any]:
id = self.id
- name = self.name
-
color = self.color
- description = self.description
+ column_width = self.column_width
- hidden = self.hidden
+ create_defect = self.create_defect
default = self.default
- parent = self.parent
-
- opposite_name = self.opposite_name
+ description = self.description
- column_width = self.column_width
+ hidden = self.hidden
icon_url = self.icon_url
- create_defect = self.create_defect
+ min_value = self.min_value
- template_work_item = self.template_work_item
+ name = self.name
- min_value = self.min_value
+ opposite_name = self.opposite_name
+
+ parent = self.parent
requires_signature_for_test_case_execution = (
self.requires_signature_for_test_case_execution
)
+ template_work_item = self.template_work_item
+
terminal = self.terminal
field_dict: Dict[str, Any] = {}
@@ -89,34 +89,34 @@ def to_dict(self) -> Dict[str, Any]:
field_dict.update({})
if id is not UNSET:
field_dict["id"] = id
- if name is not UNSET:
- field_dict["name"] = name
if color is not UNSET:
field_dict["color"] = color
+ if column_width is not UNSET:
+ field_dict["columnWidth"] = column_width
+ if create_defect is not UNSET:
+ field_dict["createDefect"] = create_defect
+ if default is not UNSET:
+ field_dict["default"] = default
if description is not UNSET:
field_dict["description"] = description
if hidden is not UNSET:
field_dict["hidden"] = hidden
- if default is not UNSET:
- field_dict["default"] = default
- if parent is not UNSET:
- field_dict["parent"] = parent
- if opposite_name is not UNSET:
- field_dict["oppositeName"] = opposite_name
- if column_width is not UNSET:
- field_dict["columnWidth"] = column_width
if icon_url is not UNSET:
field_dict["iconURL"] = icon_url
- if create_defect is not UNSET:
- field_dict["createDefect"] = create_defect
- if template_work_item is not UNSET:
- field_dict["templateWorkItem"] = template_work_item
if min_value is not UNSET:
field_dict["minValue"] = min_value
+ if name is not UNSET:
+ field_dict["name"] = name
+ if opposite_name is not UNSET:
+ field_dict["oppositeName"] = opposite_name
+ if parent is not UNSET:
+ field_dict["parent"] = parent
if requires_signature_for_test_case_execution is not UNSET:
field_dict["requiresSignatureForTestCaseExecution"] = (
requires_signature_for_test_case_execution
)
+ if template_work_item is not UNSET:
+ field_dict["templateWorkItem"] = template_work_item
if terminal is not UNSET:
field_dict["terminal"] = terminal
@@ -127,51 +127,51 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
id = d.pop("id", UNSET)
- name = d.pop("name", UNSET)
-
color = d.pop("color", UNSET)
- description = d.pop("description", UNSET)
+ column_width = d.pop("columnWidth", UNSET)
- hidden = d.pop("hidden", UNSET)
+ create_defect = d.pop("createDefect", UNSET)
default = d.pop("default", UNSET)
- parent = d.pop("parent", UNSET)
-
- opposite_name = d.pop("oppositeName", UNSET)
+ description = d.pop("description", UNSET)
- column_width = d.pop("columnWidth", UNSET)
+ hidden = d.pop("hidden", UNSET)
icon_url = d.pop("iconURL", UNSET)
- create_defect = d.pop("createDefect", UNSET)
+ min_value = d.pop("minValue", UNSET)
- template_work_item = d.pop("templateWorkItem", UNSET)
+ name = d.pop("name", UNSET)
- min_value = d.pop("minValue", UNSET)
+ opposite_name = d.pop("oppositeName", UNSET)
+
+ parent = d.pop("parent", UNSET)
requires_signature_for_test_case_execution = d.pop(
"requiresSignatureForTestCaseExecution", UNSET
)
+ template_work_item = d.pop("templateWorkItem", UNSET)
+
terminal = d.pop("terminal", UNSET)
enum_options_action_response_body_data_item_obj = cls(
id=id,
- name=name,
color=color,
+ column_width=column_width,
+ create_defect=create_defect,
+ default=default,
description=description,
hidden=hidden,
- default=default,
- parent=parent,
- opposite_name=opposite_name,
- column_width=column_width,
icon_url=icon_url,
- create_defect=create_defect,
- template_work_item=template_work_item,
min_value=min_value,
+ name=name,
+ opposite_name=opposite_name,
+ parent=parent,
requires_signature_for_test_case_execution=requires_signature_for_test_case_execution,
+ template_work_item=template_work_item,
terminal=terminal,
)
diff --git a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_links.py b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_links.py
index 0cad0dff..eb527ce0 100644
--- a/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_links.py
+++ b/polarion_rest_api_client/open_api_client/models/enum_options_action_response_body_links.py
@@ -17,20 +17,20 @@ class EnumOptionsActionResponseBodyLinks:
Attributes:
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bnumber%5D=4.
self_ (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/.../fields/MyField/actions/actionName?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
@@ -39,11 +39,11 @@ class EnumOptionsActionResponseBodyLinks:
def to_dict(self) -> Dict[str, Any]:
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
self_ = self.self_
@@ -52,12 +52,12 @@ def to_dict(self) -> Dict[str, Any]:
field_dict.update({})
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
if self_ is not UNSET:
field_dict["self"] = self_
@@ -68,19 +68,19 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
self_ = d.pop("self", UNSET)
enum_options_action_response_body_links_obj = cls(
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
self_=self_,
)
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_list_post_request_data_item_attributes_options_item.py b/polarion_rest_api_client/open_api_client/models/enumerations_list_post_request_data_item_attributes_options_item.py
index 1a2a6c6b..7fe03215 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_list_post_request_data_item_attributes_options_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_list_post_request_data_item_attributes_options_item.py
@@ -17,108 +17,108 @@
class EnumerationsListPostRequestDataItemAttributesOptionsItem:
"""
Attributes:
- id (Union[Unset, str]): Example: open.
- name (Union[Unset, str]): Example: Open.
color (Union[Unset, str]): Example: #F9FF4D.
+ column_width (Union[Unset, str]): Example: 90%.
+ create_defect (Union[Unset, bool]): Example: True.
+ default (Union[Unset, bool]): Example: True.
description (Union[Unset, str]): Example: Description.
hidden (Union[Unset, bool]):
- default (Union[Unset, bool]): Example: True.
- parent (Union[Unset, bool]): Example: True.
- opposite_name (Union[Unset, str]): Example: Opposite Name.
- column_width (Union[Unset, str]): Example: 90%.
icon_url (Union[Unset, str]): Example: /polarion/icons/default/enums/status_open.gif.
- create_defect (Union[Unset, bool]): Example: True.
- template_work_item (Union[Unset, str]): Example: exampleTemplate.
+ id (Union[Unset, str]): Example: open.
min_value (Union[Unset, float]): Example: 30.0.
+ name (Union[Unset, str]): Example: Open.
+ opposite_name (Union[Unset, str]): Example: Opposite Name.
+ parent (Union[Unset, bool]): Example: True.
requires_signature_for_test_case_execution (Union[Unset, bool]): Example: True.
+ template_work_item (Union[Unset, str]): Example: exampleTemplate.
terminal (Union[Unset, bool]): Example: True.
"""
- id: Union[Unset, str] = UNSET
- name: Union[Unset, str] = UNSET
color: Union[Unset, str] = UNSET
+ column_width: Union[Unset, str] = UNSET
+ create_defect: Union[Unset, bool] = UNSET
+ default: Union[Unset, bool] = UNSET
description: Union[Unset, str] = UNSET
hidden: Union[Unset, bool] = UNSET
- default: Union[Unset, bool] = UNSET
- parent: Union[Unset, bool] = UNSET
- opposite_name: Union[Unset, str] = UNSET
- column_width: Union[Unset, str] = UNSET
icon_url: Union[Unset, str] = UNSET
- create_defect: Union[Unset, bool] = UNSET
- template_work_item: Union[Unset, str] = UNSET
+ id: Union[Unset, str] = UNSET
min_value: Union[Unset, float] = UNSET
+ name: Union[Unset, str] = UNSET
+ opposite_name: Union[Unset, str] = UNSET
+ parent: Union[Unset, bool] = UNSET
requires_signature_for_test_case_execution: Union[Unset, bool] = UNSET
+ template_work_item: Union[Unset, str] = UNSET
terminal: Union[Unset, bool] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- id = self.id
-
- name = self.name
-
color = self.color
- description = self.description
+ column_width = self.column_width
- hidden = self.hidden
+ create_defect = self.create_defect
default = self.default
- parent = self.parent
-
- opposite_name = self.opposite_name
+ description = self.description
- column_width = self.column_width
+ hidden = self.hidden
icon_url = self.icon_url
- create_defect = self.create_defect
-
- template_work_item = self.template_work_item
+ id = self.id
min_value = self.min_value
+ name = self.name
+
+ opposite_name = self.opposite_name
+
+ parent = self.parent
+
requires_signature_for_test_case_execution = (
self.requires_signature_for_test_case_execution
)
+ template_work_item = self.template_work_item
+
terminal = self.terminal
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if id is not UNSET:
- field_dict["id"] = id
- if name is not UNSET:
- field_dict["name"] = name
if color is not UNSET:
field_dict["color"] = color
+ if column_width is not UNSET:
+ field_dict["columnWidth"] = column_width
+ if create_defect is not UNSET:
+ field_dict["createDefect"] = create_defect
+ if default is not UNSET:
+ field_dict["default"] = default
if description is not UNSET:
field_dict["description"] = description
if hidden is not UNSET:
field_dict["hidden"] = hidden
- if default is not UNSET:
- field_dict["default"] = default
- if parent is not UNSET:
- field_dict["parent"] = parent
- if opposite_name is not UNSET:
- field_dict["oppositeName"] = opposite_name
- if column_width is not UNSET:
- field_dict["columnWidth"] = column_width
if icon_url is not UNSET:
field_dict["iconURL"] = icon_url
- if create_defect is not UNSET:
- field_dict["createDefect"] = create_defect
- if template_work_item is not UNSET:
- field_dict["templateWorkItem"] = template_work_item
+ if id is not UNSET:
+ field_dict["id"] = id
if min_value is not UNSET:
field_dict["minValue"] = min_value
+ if name is not UNSET:
+ field_dict["name"] = name
+ if opposite_name is not UNSET:
+ field_dict["oppositeName"] = opposite_name
+ if parent is not UNSET:
+ field_dict["parent"] = parent
if requires_signature_for_test_case_execution is not UNSET:
field_dict["requiresSignatureForTestCaseExecution"] = (
requires_signature_for_test_case_execution
)
+ if template_work_item is not UNSET:
+ field_dict["templateWorkItem"] = template_work_item
if terminal is not UNSET:
field_dict["terminal"] = terminal
@@ -127,53 +127,53 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- id = d.pop("id", UNSET)
-
- name = d.pop("name", UNSET)
-
color = d.pop("color", UNSET)
- description = d.pop("description", UNSET)
+ column_width = d.pop("columnWidth", UNSET)
- hidden = d.pop("hidden", UNSET)
+ create_defect = d.pop("createDefect", UNSET)
default = d.pop("default", UNSET)
- parent = d.pop("parent", UNSET)
-
- opposite_name = d.pop("oppositeName", UNSET)
+ description = d.pop("description", UNSET)
- column_width = d.pop("columnWidth", UNSET)
+ hidden = d.pop("hidden", UNSET)
icon_url = d.pop("iconURL", UNSET)
- create_defect = d.pop("createDefect", UNSET)
-
- template_work_item = d.pop("templateWorkItem", UNSET)
+ id = d.pop("id", UNSET)
min_value = d.pop("minValue", UNSET)
+ name = d.pop("name", UNSET)
+
+ opposite_name = d.pop("oppositeName", UNSET)
+
+ parent = d.pop("parent", UNSET)
+
requires_signature_for_test_case_execution = d.pop(
"requiresSignatureForTestCaseExecution", UNSET
)
+ template_work_item = d.pop("templateWorkItem", UNSET)
+
terminal = d.pop("terminal", UNSET)
enumerations_list_post_request_data_item_attributes_options_item_obj = cls(
- id=id,
- name=name,
color=color,
+ column_width=column_width,
+ create_defect=create_defect,
+ default=default,
description=description,
hidden=hidden,
- default=default,
- parent=parent,
- opposite_name=opposite_name,
- column_width=column_width,
icon_url=icon_url,
- create_defect=create_defect,
- template_work_item=template_work_item,
+ id=id,
min_value=min_value,
+ name=name,
+ opposite_name=opposite_name,
+ parent=parent,
requires_signature_for_test_case_execution=requires_signature_for_test_case_execution,
+ template_work_item=template_work_item,
terminal=terminal,
)
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response.py
index 401589ef..250f7b6a 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response.py
@@ -29,8 +29,9 @@ class EnumerationsSingleGetResponse:
Attributes:
data (Union[Unset, EnumerationsSingleGetResponseData]):
included (Union[Unset, List['EnumerationsSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, EnumerationsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data.py
index 487b6802..901b1fd4 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data.py
@@ -34,8 +34,8 @@ class EnumerationsSingleGetResponseData:
id (Union[Unset, str]): Example: ~/status/~.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, EnumerationsSingleGetResponseDataAttributes]):
- meta (Union[Unset, EnumerationsSingleGetResponseDataMeta]):
links (Union[Unset, EnumerationsSingleGetResponseDataLinks]):
+ meta (Union[Unset, EnumerationsSingleGetResponseDataMeta]):
"""
type: Union[Unset, EnumerationsSingleGetResponseDataType] = UNSET
@@ -44,8 +44,8 @@ class EnumerationsSingleGetResponseData:
attributes: Union[Unset, "EnumerationsSingleGetResponseDataAttributes"] = (
UNSET
)
- meta: Union[Unset, "EnumerationsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "EnumerationsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "EnumerationsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -63,14 +63,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -82,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -122,13 +122,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, EnumerationsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = EnumerationsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, EnumerationsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -136,13 +129,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = EnumerationsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, EnumerationsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = EnumerationsSingleGetResponseDataMeta.from_dict(_meta)
+
enumerations_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
enumerations_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_attributes_options_item.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_attributes_options_item.py
index b3e3ca09..9da58a76 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_attributes_options_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_attributes_options_item.py
@@ -17,108 +17,108 @@
class EnumerationsSingleGetResponseDataAttributesOptionsItem:
"""
Attributes:
- id (Union[Unset, str]): Example: open.
- name (Union[Unset, str]): Example: Open.
color (Union[Unset, str]): Example: #F9FF4D.
+ column_width (Union[Unset, str]): Example: 90%.
+ create_defect (Union[Unset, bool]): Example: True.
+ default (Union[Unset, bool]): Example: True.
description (Union[Unset, str]): Example: Description.
hidden (Union[Unset, bool]):
- default (Union[Unset, bool]): Example: True.
- parent (Union[Unset, bool]): Example: True.
- opposite_name (Union[Unset, str]): Example: Opposite Name.
- column_width (Union[Unset, str]): Example: 90%.
icon_url (Union[Unset, str]): Example: /polarion/icons/default/enums/status_open.gif.
- create_defect (Union[Unset, bool]): Example: True.
- template_work_item (Union[Unset, str]): Example: exampleTemplate.
+ id (Union[Unset, str]): Example: open.
min_value (Union[Unset, float]): Example: 30.0.
+ name (Union[Unset, str]): Example: Open.
+ opposite_name (Union[Unset, str]): Example: Opposite Name.
+ parent (Union[Unset, bool]): Example: True.
requires_signature_for_test_case_execution (Union[Unset, bool]): Example: True.
+ template_work_item (Union[Unset, str]): Example: exampleTemplate.
terminal (Union[Unset, bool]): Example: True.
"""
- id: Union[Unset, str] = UNSET
- name: Union[Unset, str] = UNSET
color: Union[Unset, str] = UNSET
+ column_width: Union[Unset, str] = UNSET
+ create_defect: Union[Unset, bool] = UNSET
+ default: Union[Unset, bool] = UNSET
description: Union[Unset, str] = UNSET
hidden: Union[Unset, bool] = UNSET
- default: Union[Unset, bool] = UNSET
- parent: Union[Unset, bool] = UNSET
- opposite_name: Union[Unset, str] = UNSET
- column_width: Union[Unset, str] = UNSET
icon_url: Union[Unset, str] = UNSET
- create_defect: Union[Unset, bool] = UNSET
- template_work_item: Union[Unset, str] = UNSET
+ id: Union[Unset, str] = UNSET
min_value: Union[Unset, float] = UNSET
+ name: Union[Unset, str] = UNSET
+ opposite_name: Union[Unset, str] = UNSET
+ parent: Union[Unset, bool] = UNSET
requires_signature_for_test_case_execution: Union[Unset, bool] = UNSET
+ template_work_item: Union[Unset, str] = UNSET
terminal: Union[Unset, bool] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- id = self.id
-
- name = self.name
-
color = self.color
- description = self.description
+ column_width = self.column_width
- hidden = self.hidden
+ create_defect = self.create_defect
default = self.default
- parent = self.parent
-
- opposite_name = self.opposite_name
+ description = self.description
- column_width = self.column_width
+ hidden = self.hidden
icon_url = self.icon_url
- create_defect = self.create_defect
-
- template_work_item = self.template_work_item
+ id = self.id
min_value = self.min_value
+ name = self.name
+
+ opposite_name = self.opposite_name
+
+ parent = self.parent
+
requires_signature_for_test_case_execution = (
self.requires_signature_for_test_case_execution
)
+ template_work_item = self.template_work_item
+
terminal = self.terminal
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if id is not UNSET:
- field_dict["id"] = id
- if name is not UNSET:
- field_dict["name"] = name
if color is not UNSET:
field_dict["color"] = color
+ if column_width is not UNSET:
+ field_dict["columnWidth"] = column_width
+ if create_defect is not UNSET:
+ field_dict["createDefect"] = create_defect
+ if default is not UNSET:
+ field_dict["default"] = default
if description is not UNSET:
field_dict["description"] = description
if hidden is not UNSET:
field_dict["hidden"] = hidden
- if default is not UNSET:
- field_dict["default"] = default
- if parent is not UNSET:
- field_dict["parent"] = parent
- if opposite_name is not UNSET:
- field_dict["oppositeName"] = opposite_name
- if column_width is not UNSET:
- field_dict["columnWidth"] = column_width
if icon_url is not UNSET:
field_dict["iconURL"] = icon_url
- if create_defect is not UNSET:
- field_dict["createDefect"] = create_defect
- if template_work_item is not UNSET:
- field_dict["templateWorkItem"] = template_work_item
+ if id is not UNSET:
+ field_dict["id"] = id
if min_value is not UNSET:
field_dict["minValue"] = min_value
+ if name is not UNSET:
+ field_dict["name"] = name
+ if opposite_name is not UNSET:
+ field_dict["oppositeName"] = opposite_name
+ if parent is not UNSET:
+ field_dict["parent"] = parent
if requires_signature_for_test_case_execution is not UNSET:
field_dict["requiresSignatureForTestCaseExecution"] = (
requires_signature_for_test_case_execution
)
+ if template_work_item is not UNSET:
+ field_dict["templateWorkItem"] = template_work_item
if terminal is not UNSET:
field_dict["terminal"] = terminal
@@ -127,53 +127,53 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- id = d.pop("id", UNSET)
-
- name = d.pop("name", UNSET)
-
color = d.pop("color", UNSET)
- description = d.pop("description", UNSET)
+ column_width = d.pop("columnWidth", UNSET)
- hidden = d.pop("hidden", UNSET)
+ create_defect = d.pop("createDefect", UNSET)
default = d.pop("default", UNSET)
- parent = d.pop("parent", UNSET)
-
- opposite_name = d.pop("oppositeName", UNSET)
+ description = d.pop("description", UNSET)
- column_width = d.pop("columnWidth", UNSET)
+ hidden = d.pop("hidden", UNSET)
icon_url = d.pop("iconURL", UNSET)
- create_defect = d.pop("createDefect", UNSET)
-
- template_work_item = d.pop("templateWorkItem", UNSET)
+ id = d.pop("id", UNSET)
min_value = d.pop("minValue", UNSET)
+ name = d.pop("name", UNSET)
+
+ opposite_name = d.pop("oppositeName", UNSET)
+
+ parent = d.pop("parent", UNSET)
+
requires_signature_for_test_case_execution = d.pop(
"requiresSignatureForTestCaseExecution", UNSET
)
+ template_work_item = d.pop("templateWorkItem", UNSET)
+
terminal = d.pop("terminal", UNSET)
enumerations_single_get_response_data_attributes_options_item_obj = cls(
- id=id,
- name=name,
color=color,
+ column_width=column_width,
+ create_defect=create_defect,
+ default=default,
description=description,
hidden=hidden,
- default=default,
- parent=parent,
- opposite_name=opposite_name,
- column_width=column_width,
icon_url=icon_url,
- create_defect=create_defect,
- template_work_item=template_work_item,
+ id=id,
min_value=min_value,
+ name=name,
+ opposite_name=opposite_name,
+ parent=parent,
requires_signature_for_test_case_execution=requires_signature_for_test_case_execution,
+ template_work_item=template_work_item,
terminal=terminal,
)
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item.py
index 3716c602..8714ceff 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class EnumerationsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, EnumerationsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "EnumerationsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
enumerations_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
enumerations_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item_source.py
index e9b00362..68b0b421 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_data_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class EnumerationsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, EnumerationsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "EnumerationsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class EnumerationsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -82,8 +82,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
enumerations_single_get_response_data_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_included_item.py
index c4373d84..9e136e9b 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class EnumerationsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/enumerations_single_patch_request_data_attributes_options_item.py b/polarion_rest_api_client/open_api_client/models/enumerations_single_patch_request_data_attributes_options_item.py
index 42dbc7cd..4858d4f4 100644
--- a/polarion_rest_api_client/open_api_client/models/enumerations_single_patch_request_data_attributes_options_item.py
+++ b/polarion_rest_api_client/open_api_client/models/enumerations_single_patch_request_data_attributes_options_item.py
@@ -17,108 +17,108 @@
class EnumerationsSinglePatchRequestDataAttributesOptionsItem:
"""
Attributes:
- id (Union[Unset, str]): Example: open.
- name (Union[Unset, str]): Example: Open.
color (Union[Unset, str]): Example: #F9FF4D.
+ column_width (Union[Unset, str]): Example: 90%.
+ create_defect (Union[Unset, bool]): Example: True.
+ default (Union[Unset, bool]): Example: True.
description (Union[Unset, str]): Example: Description.
hidden (Union[Unset, bool]):
- default (Union[Unset, bool]): Example: True.
- parent (Union[Unset, bool]): Example: True.
- opposite_name (Union[Unset, str]): Example: Opposite Name.
- column_width (Union[Unset, str]): Example: 90%.
icon_url (Union[Unset, str]): Example: /polarion/icons/default/enums/status_open.gif.
- create_defect (Union[Unset, bool]): Example: True.
- template_work_item (Union[Unset, str]): Example: exampleTemplate.
+ id (Union[Unset, str]): Example: open.
min_value (Union[Unset, float]): Example: 30.0.
+ name (Union[Unset, str]): Example: Open.
+ opposite_name (Union[Unset, str]): Example: Opposite Name.
+ parent (Union[Unset, bool]): Example: True.
requires_signature_for_test_case_execution (Union[Unset, bool]): Example: True.
+ template_work_item (Union[Unset, str]): Example: exampleTemplate.
terminal (Union[Unset, bool]): Example: True.
"""
- id: Union[Unset, str] = UNSET
- name: Union[Unset, str] = UNSET
color: Union[Unset, str] = UNSET
+ column_width: Union[Unset, str] = UNSET
+ create_defect: Union[Unset, bool] = UNSET
+ default: Union[Unset, bool] = UNSET
description: Union[Unset, str] = UNSET
hidden: Union[Unset, bool] = UNSET
- default: Union[Unset, bool] = UNSET
- parent: Union[Unset, bool] = UNSET
- opposite_name: Union[Unset, str] = UNSET
- column_width: Union[Unset, str] = UNSET
icon_url: Union[Unset, str] = UNSET
- create_defect: Union[Unset, bool] = UNSET
- template_work_item: Union[Unset, str] = UNSET
+ id: Union[Unset, str] = UNSET
min_value: Union[Unset, float] = UNSET
+ name: Union[Unset, str] = UNSET
+ opposite_name: Union[Unset, str] = UNSET
+ parent: Union[Unset, bool] = UNSET
requires_signature_for_test_case_execution: Union[Unset, bool] = UNSET
+ template_work_item: Union[Unset, str] = UNSET
terminal: Union[Unset, bool] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- id = self.id
-
- name = self.name
-
color = self.color
- description = self.description
+ column_width = self.column_width
- hidden = self.hidden
+ create_defect = self.create_defect
default = self.default
- parent = self.parent
-
- opposite_name = self.opposite_name
+ description = self.description
- column_width = self.column_width
+ hidden = self.hidden
icon_url = self.icon_url
- create_defect = self.create_defect
-
- template_work_item = self.template_work_item
+ id = self.id
min_value = self.min_value
+ name = self.name
+
+ opposite_name = self.opposite_name
+
+ parent = self.parent
+
requires_signature_for_test_case_execution = (
self.requires_signature_for_test_case_execution
)
+ template_work_item = self.template_work_item
+
terminal = self.terminal
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if id is not UNSET:
- field_dict["id"] = id
- if name is not UNSET:
- field_dict["name"] = name
if color is not UNSET:
field_dict["color"] = color
+ if column_width is not UNSET:
+ field_dict["columnWidth"] = column_width
+ if create_defect is not UNSET:
+ field_dict["createDefect"] = create_defect
+ if default is not UNSET:
+ field_dict["default"] = default
if description is not UNSET:
field_dict["description"] = description
if hidden is not UNSET:
field_dict["hidden"] = hidden
- if default is not UNSET:
- field_dict["default"] = default
- if parent is not UNSET:
- field_dict["parent"] = parent
- if opposite_name is not UNSET:
- field_dict["oppositeName"] = opposite_name
- if column_width is not UNSET:
- field_dict["columnWidth"] = column_width
if icon_url is not UNSET:
field_dict["iconURL"] = icon_url
- if create_defect is not UNSET:
- field_dict["createDefect"] = create_defect
- if template_work_item is not UNSET:
- field_dict["templateWorkItem"] = template_work_item
+ if id is not UNSET:
+ field_dict["id"] = id
if min_value is not UNSET:
field_dict["minValue"] = min_value
+ if name is not UNSET:
+ field_dict["name"] = name
+ if opposite_name is not UNSET:
+ field_dict["oppositeName"] = opposite_name
+ if parent is not UNSET:
+ field_dict["parent"] = parent
if requires_signature_for_test_case_execution is not UNSET:
field_dict["requiresSignatureForTestCaseExecution"] = (
requires_signature_for_test_case_execution
)
+ if template_work_item is not UNSET:
+ field_dict["templateWorkItem"] = template_work_item
if terminal is not UNSET:
field_dict["terminal"] = terminal
@@ -127,53 +127,53 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- id = d.pop("id", UNSET)
-
- name = d.pop("name", UNSET)
-
color = d.pop("color", UNSET)
- description = d.pop("description", UNSET)
+ column_width = d.pop("columnWidth", UNSET)
- hidden = d.pop("hidden", UNSET)
+ create_defect = d.pop("createDefect", UNSET)
default = d.pop("default", UNSET)
- parent = d.pop("parent", UNSET)
-
- opposite_name = d.pop("oppositeName", UNSET)
+ description = d.pop("description", UNSET)
- column_width = d.pop("columnWidth", UNSET)
+ hidden = d.pop("hidden", UNSET)
icon_url = d.pop("iconURL", UNSET)
- create_defect = d.pop("createDefect", UNSET)
-
- template_work_item = d.pop("templateWorkItem", UNSET)
+ id = d.pop("id", UNSET)
min_value = d.pop("minValue", UNSET)
+ name = d.pop("name", UNSET)
+
+ opposite_name = d.pop("oppositeName", UNSET)
+
+ parent = d.pop("parent", UNSET)
+
requires_signature_for_test_case_execution = d.pop(
"requiresSignatureForTestCaseExecution", UNSET
)
+ template_work_item = d.pop("templateWorkItem", UNSET)
+
terminal = d.pop("terminal", UNSET)
enumerations_single_patch_request_data_attributes_options_item_obj = cls(
- id=id,
- name=name,
color=color,
+ column_width=column_width,
+ create_defect=create_defect,
+ default=default,
description=description,
hidden=hidden,
- default=default,
- parent=parent,
- opposite_name=opposite_name,
- column_width=column_width,
icon_url=icon_url,
- create_defect=create_defect,
- template_work_item=template_work_item,
+ id=id,
min_value=min_value,
+ name=name,
+ opposite_name=opposite_name,
+ parent=parent,
requires_signature_for_test_case_execution=requires_signature_for_test_case_execution,
+ template_work_item=template_work_item,
terminal=terminal,
)
diff --git a/polarion_rest_api_client/open_api_client/models/errors_errors_item.py b/polarion_rest_api_client/open_api_client/models/errors_errors_item.py
index 97020bb7..93f6c67d 100644
--- a/polarion_rest_api_client/open_api_client/models/errors_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/errors_errors_item.py
@@ -1,7 +1,7 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0
-from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
from attrs import define as _attrs_define
from attrs import field as _attrs_field
@@ -9,7 +9,9 @@
from ..types import UNSET, Unset
if TYPE_CHECKING:
- from ..models.errors_errors_item_source import ErrorsErrorsItemSource
+ from ..models.errors_errors_item_source_type_0 import (
+ ErrorsErrorsItemSourceType0,
+ )
T = TypeVar("T", bound="ErrorsErrorsItem")
@@ -23,27 +25,35 @@ class ErrorsErrorsItem:
title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
- source (Union[Unset, ErrorsErrorsItemSource]):
+ source (Union['ErrorsErrorsItemSourceType0', None, Unset]):
"""
status: Union[Unset, str] = UNSET
title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
- source: Union[Unset, "ErrorsErrorsItemSource"] = UNSET
+ source: Union["ErrorsErrorsItemSourceType0", None, Unset] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ from ..models.errors_errors_item_source_type_0 import (
+ ErrorsErrorsItemSourceType0,
+ )
+
status = self.status
title = self.title
detail = self.detail
- source: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.source, Unset):
+ source: Union[Dict[str, Any], None, Unset]
+ if isinstance(self.source, Unset):
+ source = UNSET
+ elif isinstance(self.source, ErrorsErrorsItemSourceType0):
source = self.source.to_dict()
+ else:
+ source = self.source
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
@@ -61,7 +71,9 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
- from ..models.errors_errors_item_source import ErrorsErrorsItemSource
+ from ..models.errors_errors_item_source_type_0 import (
+ ErrorsErrorsItemSourceType0,
+ )
d = src_dict.copy()
status = d.pop("status", UNSET)
@@ -70,12 +82,26 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
detail = d.pop("detail", UNSET)
- _source = d.pop("source", UNSET)
- source: Union[Unset, ErrorsErrorsItemSource]
- if isinstance(_source, Unset):
- source = UNSET
- else:
- source = ErrorsErrorsItemSource.from_dict(_source)
+ def _parse_source(
+ data: object,
+ ) -> Union["ErrorsErrorsItemSourceType0", None, Unset]:
+ if data is None:
+ return data
+ if isinstance(data, Unset):
+ return data
+ try:
+ if not isinstance(data, dict):
+ raise TypeError()
+ source_type_0 = ErrorsErrorsItemSourceType0.from_dict(data)
+
+ return source_type_0
+ except: # noqa: E722
+ pass
+ return cast(
+ Union["ErrorsErrorsItemSourceType0", None, Unset], data
+ )
+
+ source = _parse_source(d.pop("source", UNSET))
errors_errors_item_obj = cls(
status=status,
diff --git a/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0.py b/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0.py
new file mode 100644
index 00000000..1c271268
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0.py
@@ -0,0 +1,127 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.errors_errors_item_source_type_0_resource_type_0 import (
+ ErrorsErrorsItemSourceType0ResourceType0,
+ )
+
+
+T = TypeVar("T", bound="ErrorsErrorsItemSourceType0")
+
+
+@_attrs_define
+class ErrorsErrorsItemSourceType0:
+ """
+ Attributes:
+ parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
+ resource (Union['ErrorsErrorsItemSourceType0ResourceType0', None, Unset]): Resource causing the error.
+ """
+
+ parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
+ resource: Union[
+ "ErrorsErrorsItemSourceType0ResourceType0", None, Unset
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ from ..models.errors_errors_item_source_type_0_resource_type_0 import (
+ ErrorsErrorsItemSourceType0ResourceType0,
+ )
+
+ parameter = self.parameter
+
+ pointer = self.pointer
+
+ resource: Union[Dict[str, Any], None, Unset]
+ if isinstance(self.resource, Unset):
+ resource = UNSET
+ elif isinstance(
+ self.resource, ErrorsErrorsItemSourceType0ResourceType0
+ ):
+ resource = self.resource.to_dict()
+ else:
+ resource = self.resource
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if parameter is not UNSET:
+ field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
+ if resource is not UNSET:
+ field_dict["resource"] = resource
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.errors_errors_item_source_type_0_resource_type_0 import (
+ ErrorsErrorsItemSourceType0ResourceType0,
+ )
+
+ d = src_dict.copy()
+ parameter = d.pop("parameter", UNSET)
+
+ pointer = d.pop("pointer", UNSET)
+
+ def _parse_resource(
+ data: object,
+ ) -> Union["ErrorsErrorsItemSourceType0ResourceType0", None, Unset]:
+ if data is None:
+ return data
+ if isinstance(data, Unset):
+ return data
+ try:
+ if not isinstance(data, dict):
+ raise TypeError()
+ resource_type_0 = (
+ ErrorsErrorsItemSourceType0ResourceType0.from_dict(data)
+ )
+
+ return resource_type_0
+ except: # noqa: E722
+ pass
+ return cast(
+ Union["ErrorsErrorsItemSourceType0ResourceType0", None, Unset],
+ data,
+ )
+
+ resource = _parse_resource(d.pop("resource", UNSET))
+
+ errors_errors_item_source_type_0_obj = cls(
+ parameter=parameter,
+ pointer=pointer,
+ resource=resource,
+ )
+
+ errors_errors_item_source_type_0_obj.additional_properties = d
+ return errors_errors_item_source_type_0_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_resource.py b/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0_resource_type_0.py
similarity index 82%
rename from polarion_rest_api_client/open_api_client/models/errors_errors_item_source_resource.py
rename to polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0_resource_type_0.py
index 5fc7d9b0..899d79cd 100644
--- a/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_resource.py
+++ b/polarion_rest_api_client/open_api_client/models/errors_errors_item_source_type_0_resource_type_0.py
@@ -8,11 +8,11 @@
from ..types import UNSET, Unset
-T = TypeVar("T", bound="ErrorsErrorsItemSourceResource")
+T = TypeVar("T", bound="ErrorsErrorsItemSourceType0ResourceType0")
@_attrs_define
-class ErrorsErrorsItemSourceResource:
+class ErrorsErrorsItemSourceType0ResourceType0:
"""Resource causing the error.
Attributes:
@@ -48,13 +48,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
type = d.pop("type", UNSET)
- errors_errors_item_source_resource_obj = cls(
+ errors_errors_item_source_type_0_resource_type_0_obj = cls(
id=id,
type=type,
)
- errors_errors_item_source_resource_obj.additional_properties = d
- return errors_errors_item_source_resource_obj
+ errors_errors_item_source_type_0_resource_type_0_obj.additional_properties = (
+ d
+ )
+ return errors_errors_item_source_type_0_resource_type_0_obj
@property
def additional_keys(self) -> List[str]:
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response.py
index 693941e9..6d24a278 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response.py
@@ -30,15 +30,15 @@
class ExternallylinkedworkitemsListGetResponse:
"""
Attributes:
- meta (Union[Unset, ExternallylinkedworkitemsListGetResponseMeta]):
data (Union[Unset, List['ExternallylinkedworkitemsListGetResponseDataItem']]):
included (Union[Unset, List['ExternallylinkedworkitemsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, ExternallylinkedworkitemsListGetResponseLinks]):
+ meta (Union[Unset, ExternallylinkedworkitemsListGetResponseMeta]):
"""
- meta: Union[Unset, "ExternallylinkedworkitemsListGetResponseMeta"] = UNSET
data: Union[
Unset, List["ExternallylinkedworkitemsListGetResponseDataItem"]
] = UNSET
@@ -48,15 +48,12 @@ class ExternallylinkedworkitemsListGetResponse:
links: Union[Unset, "ExternallylinkedworkitemsListGetResponseLinks"] = (
UNSET
)
+ meta: Union[Unset, "ExternallylinkedworkitemsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -75,17 +72,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -105,15 +106,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ExternallylinkedworkitemsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ExternallylinkedworkitemsListGetResponseMeta.from_dict(
- _meta
- )
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -145,11 +137,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ExternallylinkedworkitemsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ExternallylinkedworkitemsListGetResponseMeta.from_dict(
+ _meta
+ )
+
externallylinkedworkitems_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
externallylinkedworkitems_list_get_response_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item.py
index 03791d62..ea2e7884 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item.py
@@ -34,8 +34,8 @@ class ExternallylinkedworkitemsListGetResponseDataItem:
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/hostname/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemAttributes]):
- meta (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemMeta]):
links (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemLinks]):
+ meta (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemMeta]):
"""
type: Union[
@@ -46,12 +46,12 @@ class ExternallylinkedworkitemsListGetResponseDataItem:
attributes: Union[
Unset, "ExternallylinkedworkitemsListGetResponseDataItemAttributes"
] = UNSET
- meta: Union[
- Unset, "ExternallylinkedworkitemsListGetResponseDataItemMeta"
- ] = UNSET
links: Union[
Unset, "ExternallylinkedworkitemsListGetResponseDataItemLinks"
] = UNSET
+ meta: Union[
+ Unset, "ExternallylinkedworkitemsListGetResponseDataItemMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -69,14 +69,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -88,10 +88,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -132,6 +132,17 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
+ _links = d.pop("links", UNSET)
+ links: Union[
+ Unset, ExternallylinkedworkitemsListGetResponseDataItemLinks
+ ]
+ if isinstance(_links, Unset):
+ links = UNSET
+ else:
+ links = ExternallylinkedworkitemsListGetResponseDataItemLinks.from_dict(
+ _links
+ )
+
_meta = d.pop("meta", UNSET)
meta: Union[
Unset, ExternallylinkedworkitemsListGetResponseDataItemMeta
@@ -145,24 +156,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _links = d.pop("links", UNSET)
- links: Union[
- Unset, ExternallylinkedworkitemsListGetResponseDataItemLinks
- ]
- if isinstance(_links, Unset):
- links = UNSET
- else:
- links = ExternallylinkedworkitemsListGetResponseDataItemLinks.from_dict(
- _links
- )
-
externallylinkedworkitems_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
externallylinkedworkitems_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item.py
index c87adb48..91b8a9f7 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item.py
@@ -23,46 +23,46 @@
class ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
externallylinkedworkitems_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
externallylinkedworkitems_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item_source.py
index 66a26646..84ca56f5 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_data_item_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class ExternallylinkedworkitemsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
externallylinkedworkitems_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_included_item.py
index ab482535..7b74ff35 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class ExternallylinkedworkitemsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_links.py
index 44f4d742..38ec1b5a 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_list_get_response_links.py
@@ -15,73 +15,73 @@
class ExternallylinkedworkitemsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
Id/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
- d/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
d/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
+ d/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/externallylinkedworkitems/parent/hostname/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
externallylinkedworkitems_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
externallylinkedworkitems_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response.py
index caefaa08..70f40e25 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response.py
@@ -30,7 +30,8 @@ class ExternallylinkedworkitemsSingleGetResponse:
data (Union[Unset, ExternallylinkedworkitemsSingleGetResponseData]):
included (Union[Unset, List['ExternallylinkedworkitemsSingleGetResponseIncludedItem']]): Related entities might
be returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, ExternallylinkedworkitemsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data.py
index ec8e2735..1837913c 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data.py
@@ -34,8 +34,8 @@ class ExternallylinkedworkitemsSingleGetResponseData:
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/hostname/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataAttributes]):
- meta (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMeta]):
links (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataLinks]):
+ meta (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMeta]):
"""
type: Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataType] = (
@@ -46,12 +46,12 @@ class ExternallylinkedworkitemsSingleGetResponseData:
attributes: Union[
Unset, "ExternallylinkedworkitemsSingleGetResponseDataAttributes"
] = UNSET
- meta: Union[
- Unset, "ExternallylinkedworkitemsSingleGetResponseDataMeta"
- ] = UNSET
links: Union[
Unset, "ExternallylinkedworkitemsSingleGetResponseDataLinks"
] = UNSET
+ meta: Union[
+ Unset, "ExternallylinkedworkitemsSingleGetResponseDataMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -69,14 +69,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -88,10 +88,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -130,17 +130,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = (
- ExternallylinkedworkitemsSingleGetResponseDataMeta.from_dict(
- _meta
- )
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, ExternallylinkedworkitemsSingleGetResponseDataLinks
@@ -154,13 +143,24 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = (
+ ExternallylinkedworkitemsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+ )
+
externallylinkedworkitems_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
externallylinkedworkitems_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item.py
index 7b9e3d25..5d555954 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item.py
@@ -23,46 +23,46 @@
class ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
externallylinkedworkitems_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
externallylinkedworkitems_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item_source.py
index 4b163dce..0816d6d3 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_data_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class ExternallylinkedworkitemsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
externallylinkedworkitems_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_included_item.py
index 326f2c87..aa639dec 100644
--- a/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/externallylinkedworkitems_single_get_response_included_item.py
@@ -22,7 +22,6 @@ class ExternallylinkedworkitemsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response.py
index aa015148..e6162725 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response.py
@@ -30,15 +30,15 @@
class FeatureselectionsListGetResponse:
"""
Attributes:
- meta (Union[Unset, FeatureselectionsListGetResponseMeta]):
data (Union[Unset, List['FeatureselectionsListGetResponseDataItem']]):
included (Union[Unset, List['FeatureselectionsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, FeatureselectionsListGetResponseLinks]):
+ meta (Union[Unset, FeatureselectionsListGetResponseMeta]):
"""
- meta: Union[Unset, "FeatureselectionsListGetResponseMeta"] = UNSET
data: Union[Unset, List["FeatureselectionsListGetResponseDataItem"]] = (
UNSET
)
@@ -46,15 +46,12 @@ class FeatureselectionsListGetResponse:
Unset, List["FeatureselectionsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "FeatureselectionsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "FeatureselectionsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, FeatureselectionsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = FeatureselectionsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = FeatureselectionsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, FeatureselectionsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = FeatureselectionsListGetResponseMeta.from_dict(_meta)
+
featureselections_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
featureselections_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item.py
index 8dde4067..0dcef221 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class FeatureselectionsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, FeatureselectionsListGetResponseDataItemAttributes]):
relationships (Union[Unset, FeatureselectionsListGetResponseDataItemRelationships]):
- meta (Union[Unset, FeatureselectionsListGetResponseDataItemMeta]):
links (Union[Unset, FeatureselectionsListGetResponseDataItemLinks]):
+ meta (Union[Unset, FeatureselectionsListGetResponseDataItemMeta]):
"""
type: Union[Unset, FeatureselectionsListGetResponseDataItemType] = UNSET
@@ -51,10 +51,10 @@ class FeatureselectionsListGetResponseDataItem:
relationships: Union[
Unset, "FeatureselectionsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "FeatureselectionsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "FeatureselectionsListGetResponseDataItemLinks"] = (
UNSET
)
+ meta: Union[Unset, "FeatureselectionsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -76,14 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -97,10 +97,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,15 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, FeatureselectionsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = FeatureselectionsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, FeatureselectionsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -173,14 +164,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, FeatureselectionsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = FeatureselectionsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
featureselections_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
featureselections_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item.py
index e064ed01..cba71269 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class FeatureselectionsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, FeatureselectionsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "FeatureselectionsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,12 +85,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
featureselections_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item_source.py
index c1893c30..21734e1d 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class FeatureselectionsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, FeatureselectionsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"FeatureselectionsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class FeatureselectionsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
featureselections_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_relationships_work_item_data.py
index 669bdadc..01013f5d 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_data_item_relationships_work_item_data.py
@@ -21,45 +21,49 @@
class FeatureselectionsListGetResponseDataItemRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, FeatureselectionsListGetResponseDataItemRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, FeatureselectionsListGetResponseDataItemRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
FeatureselectionsListGetResponseDataItemRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
featureselections_list_get_response_data_item_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
featureselections_list_get_response_data_item_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_included_item.py
index 89ab87b6..fbb756cc 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class FeatureselectionsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_links.py
index dccfb868..ad4965c3 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_list_get_response_links.py
@@ -15,73 +15,73 @@
class FeatureselectionsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
Id/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
- d/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
d/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
+ d/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/featureselections/included/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
featureselections_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
featureselections_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response.py
index 79630441..61068806 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response.py
@@ -30,7 +30,8 @@ class FeatureselectionsSingleGetResponse:
data (Union[Unset, FeatureselectionsSingleGetResponseData]):
included (Union[Unset, List['FeatureselectionsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, FeatureselectionsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data.py
index 91a3c09d..5c6660c4 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data.py
@@ -38,8 +38,8 @@ class FeatureselectionsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, FeatureselectionsSingleGetResponseDataAttributes]):
relationships (Union[Unset, FeatureselectionsSingleGetResponseDataRelationships]):
- meta (Union[Unset, FeatureselectionsSingleGetResponseDataMeta]):
links (Union[Unset, FeatureselectionsSingleGetResponseDataLinks]):
+ meta (Union[Unset, FeatureselectionsSingleGetResponseDataMeta]):
"""
type: Union[Unset, FeatureselectionsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class FeatureselectionsSingleGetResponseData:
relationships: Union[
Unset, "FeatureselectionsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "FeatureselectionsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "FeatureselectionsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "FeatureselectionsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, FeatureselectionsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = FeatureselectionsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, FeatureselectionsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, FeatureselectionsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = FeatureselectionsSingleGetResponseDataMeta.from_dict(_meta)
+
featureselections_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
featureselections_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item.py
index 857abce6..55636970 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class FeatureselectionsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, FeatureselectionsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "FeatureselectionsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
featureselections_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
featureselections_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item_source.py
index 1fcc18d7..ff6b2c66 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class FeatureselectionsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, FeatureselectionsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"FeatureselectionsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class FeatureselectionsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
featureselections_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_relationships_work_item_data.py
index e1dd7bd0..905d6e31 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_data_relationships_work_item_data.py
@@ -21,45 +21,49 @@
class FeatureselectionsSingleGetResponseDataRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, FeatureselectionsSingleGetResponseDataRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, FeatureselectionsSingleGetResponseDataRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
FeatureselectionsSingleGetResponseDataRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
featureselections_single_get_response_data_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
featureselections_single_get_response_data_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_included_item.py
index 4508731b..2854c731 100644
--- a/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/featureselections_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class FeatureselectionsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response.py
index b9753930..50f1c091 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response.py
@@ -29,8 +29,9 @@ class GlobalrolesSingleGetResponse:
Attributes:
data (Union[Unset, GlobalrolesSingleGetResponseData]):
included (Union[Unset, List['GlobalrolesSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, GlobalrolesSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data.py
index 55b222f4..dacb3a0b 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data.py
@@ -33,8 +33,8 @@ class GlobalrolesSingleGetResponseData:
type (Union[Unset, GlobalrolesSingleGetResponseDataType]):
id (Union[Unset, str]): Example: MyRoleId.
relationships (Union[Unset, GlobalrolesSingleGetResponseDataRelationships]):
- meta (Union[Unset, GlobalrolesSingleGetResponseDataMeta]):
links (Union[Unset, GlobalrolesSingleGetResponseDataLinks]):
+ meta (Union[Unset, GlobalrolesSingleGetResponseDataMeta]):
"""
type: Union[Unset, GlobalrolesSingleGetResponseDataType] = UNSET
@@ -42,8 +42,8 @@ class GlobalrolesSingleGetResponseData:
relationships: Union[
Unset, "GlobalrolesSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "GlobalrolesSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "GlobalrolesSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "GlobalrolesSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -59,14 +59,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -76,10 +76,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["id"] = id
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -118,13 +118,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, GlobalrolesSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = GlobalrolesSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, GlobalrolesSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -132,12 +125,19 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = GlobalrolesSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, GlobalrolesSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = GlobalrolesSingleGetResponseDataMeta.from_dict(_meta)
+
globalroles_single_get_response_data_obj = cls(
type=type,
id=id,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
globalroles_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item.py
index 017ddfb4..320a4351 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class GlobalrolesSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, GlobalrolesSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "GlobalrolesSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
globalroles_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
globalroles_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item_source.py
index 415b6a8f..907c25fa 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class GlobalrolesSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, GlobalrolesSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "GlobalrolesSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class GlobalrolesSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, GlobalrolesSingleGetResponseDataMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
globalroles_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_relationships_users_data_item.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_relationships_users_data_item.py
index dab43585..3c0d0c5c 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_relationships_users_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_data_relationships_users_data_item.py
@@ -20,38 +20,40 @@
class GlobalrolesSingleGetResponseDataRelationshipsUsersDataItem:
"""
Attributes:
- type (Union[Unset, GlobalrolesSingleGetResponseDataRelationshipsUsersDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, GlobalrolesSingleGetResponseDataRelationshipsUsersDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, GlobalrolesSingleGetResponseDataRelationshipsUsersDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
globalroles_single_get_response_data_relationships_users_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
globalroles_single_get_response_data_relationships_users_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_included_item.py
index 046afb43..93bd1fd2 100644
--- a/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/globalroles_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class GlobalrolesSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response.py
index cf9affc4..c2ac2a31 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response.py
@@ -28,27 +28,24 @@
class IconsListGetResponse:
"""
Attributes:
- meta (Union[Unset, IconsListGetResponseMeta]):
data (Union[Unset, List['IconsListGetResponseDataItem']]):
included (Union[Unset, List['IconsListGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, IconsListGetResponseLinks]):
+ meta (Union[Unset, IconsListGetResponseMeta]):
"""
- meta: Union[Unset, "IconsListGetResponseMeta"] = UNSET
data: Union[Unset, List["IconsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["IconsListGetResponseIncludedItem"]] = UNSET
links: Union[Unset, "IconsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "IconsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -67,17 +64,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -97,13 +98,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, IconsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = IconsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -127,11 +121,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = IconsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, IconsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = IconsListGetResponseMeta.from_dict(_meta)
+
icons_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
icons_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item.py
index 800873cd..da2d0ecf 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item.py
@@ -34,16 +34,16 @@ class IconsListGetResponseDataItem:
id (Union[Unset, str]): Example: default/example.gif.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, IconsListGetResponseDataItemAttributes]):
- meta (Union[Unset, IconsListGetResponseDataItemMeta]):
links (Union[Unset, IconsListGetResponseDataItemLinks]):
+ meta (Union[Unset, IconsListGetResponseDataItemMeta]):
"""
type: Union[Unset, IconsListGetResponseDataItemType] = UNSET
id: Union[Unset, str] = UNSET
revision: Union[Unset, str] = UNSET
attributes: Union[Unset, "IconsListGetResponseDataItemAttributes"] = UNSET
- meta: Union[Unset, "IconsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "IconsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "IconsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -61,14 +61,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -80,10 +80,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -120,13 +120,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, IconsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = IconsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, IconsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -134,13 +127,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = IconsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, IconsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = IconsListGetResponseDataItemMeta.from_dict(_meta)
+
icons_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
icons_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item.py
index acac926e..a1d2834e 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class IconsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, IconsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "IconsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
icons_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
icons_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item_source.py
index 23257359..02863335 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_data_item_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class IconsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, IconsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "IconsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class IconsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, IconsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
icons_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_included_item.py
index 83823dbf..b4ac5ab8 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class IconsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_links.py
index a120c971..5e15564b 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_list_get_response_links.py
@@ -15,73 +15,73 @@
class IconsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/enumerations/defaulticons?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
icons_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
icons_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/icons_single_get_response.py b/polarion_rest_api_client/open_api_client/models/icons_single_get_response.py
index b9f1c326..bd9fe17e 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_single_get_response.py
@@ -29,7 +29,8 @@ class IconsSingleGetResponse:
Attributes:
data (Union[Unset, IconsSingleGetResponseData]):
included (Union[Unset, List['IconsSingleGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, IconsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data.py
index 69a30b37..a50c5510 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data.py
@@ -34,16 +34,16 @@ class IconsSingleGetResponseData:
id (Union[Unset, str]): Example: default/example.gif.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, IconsSingleGetResponseDataAttributes]):
- meta (Union[Unset, IconsSingleGetResponseDataMeta]):
links (Union[Unset, IconsSingleGetResponseDataLinks]):
+ meta (Union[Unset, IconsSingleGetResponseDataMeta]):
"""
type: Union[Unset, IconsSingleGetResponseDataType] = UNSET
id: Union[Unset, str] = UNSET
revision: Union[Unset, str] = UNSET
attributes: Union[Unset, "IconsSingleGetResponseDataAttributes"] = UNSET
- meta: Union[Unset, "IconsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "IconsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "IconsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -61,14 +61,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -80,10 +80,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -120,13 +120,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, IconsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = IconsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, IconsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -134,13 +127,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = IconsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, IconsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = IconsSingleGetResponseDataMeta.from_dict(_meta)
+
icons_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
icons_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item.py
index 26694c64..63002a3e 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class IconsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, IconsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[Unset, "IconsSingleGetResponseDataMetaErrorsItemSource"] = (
UNSET
)
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -85,11 +81,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
icons_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
icons_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item_source.py
index 0c1c66e8..ba310f7a 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class IconsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, IconsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "IconsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class IconsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, IconsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
icons_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_included_item.py
index 3142fa4d..f2b3c193 100644
--- a/polarion_rest_api_client/open_api_client/models/icons_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/icons_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class IconsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/import_test_results_request_body.py b/polarion_rest_api_client/open_api_client/models/import_test_results_request_body.py
index feef97a5..bc37d41d 100644
--- a/polarion_rest_api_client/open_api_client/models/import_test_results_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/import_test_results_request_body.py
@@ -15,41 +15,41 @@
class ImportTestResultsRequestBody:
"""
Attributes:
- retest (Union[Unset, bool]):
defect_template_id (Union[Unset, str]): Example: MyProjectId/MyDefectId.
+ retest (Union[Unset, bool]):
"""
- retest: Union[Unset, bool] = UNSET
defect_template_id: Union[Unset, str] = UNSET
+ retest: Union[Unset, bool] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- retest = self.retest
-
defect_template_id = self.defect_template_id
+ retest = self.retest
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if retest is not UNSET:
- field_dict["retest"] = retest
if defect_template_id is not UNSET:
field_dict["defectTemplateId"] = defect_template_id
+ if retest is not UNSET:
+ field_dict["retest"] = retest
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- retest = d.pop("retest", UNSET)
-
defect_template_id = d.pop("defectTemplateId", UNSET)
+ retest = d.pop("retest", UNSET)
+
import_test_results_request_body_obj = cls(
- retest=retest,
defect_template_id=defect_template_id,
+ retest=retest,
)
import_test_results_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response.py
new file mode 100644
index 00000000..e5dc9272
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response.py
@@ -0,0 +1,132 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data import (
+ JobsSingleGetResponseData,
+ )
+ from ..models.jobs_single_get_response_included_item import (
+ JobsSingleGetResponseIncludedItem,
+ )
+ from ..models.jobs_single_get_response_links import (
+ JobsSingleGetResponseLinks,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponse")
+
+
+@_attrs_define
+class JobsSingleGetResponse:
+ """
+ Attributes:
+ data (Union[Unset, JobsSingleGetResponseData]):
+ included (Union[Unset, List['JobsSingleGetResponseIncludedItem']]): Related entities might be returned, see REST API User
+ Guide.
+ links (Union[Unset, JobsSingleGetResponseLinks]):
+ """
+
+ data: Union[Unset, "JobsSingleGetResponseData"] = UNSET
+ included: Union[Unset, List["JobsSingleGetResponseIncludedItem"]] = UNSET
+ links: Union[Unset, "JobsSingleGetResponseLinks"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ included: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.included, Unset):
+ included = []
+ for included_item_data in self.included:
+ included_item = included_item_data.to_dict()
+ included.append(included_item)
+
+ links: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.links, Unset):
+ links = self.links.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+ if included is not UNSET:
+ field_dict["included"] = included
+ if links is not UNSET:
+ field_dict["links"] = links
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data import (
+ JobsSingleGetResponseData,
+ )
+ from ..models.jobs_single_get_response_included_item import (
+ JobsSingleGetResponseIncludedItem,
+ )
+ from ..models.jobs_single_get_response_links import (
+ JobsSingleGetResponseLinks,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSingleGetResponseData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = JobsSingleGetResponseData.from_dict(_data)
+
+ included = []
+ _included = d.pop("included", UNSET)
+ for included_item_data in _included or []:
+ included_item = JobsSingleGetResponseIncludedItem.from_dict(
+ included_item_data
+ )
+
+ included.append(included_item)
+
+ _links = d.pop("links", UNSET)
+ links: Union[Unset, JobsSingleGetResponseLinks]
+ if isinstance(_links, Unset):
+ links = UNSET
+ else:
+ links = JobsSingleGetResponseLinks.from_dict(_links)
+
+ jobs_single_get_response_obj = cls(
+ data=data,
+ included=included,
+ links=links,
+ )
+
+ jobs_single_get_response_obj.additional_properties = d
+ return jobs_single_get_response_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data.py
new file mode 100644
index 00000000..96e2bc86
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data.py
@@ -0,0 +1,189 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_get_response_data_type import (
+ JobsSingleGetResponseDataType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_attributes import (
+ JobsSingleGetResponseDataAttributes,
+ )
+ from ..models.jobs_single_get_response_data_links import (
+ JobsSingleGetResponseDataLinks,
+ )
+ from ..models.jobs_single_get_response_data_meta import (
+ JobsSingleGetResponseDataMeta,
+ )
+ from ..models.jobs_single_get_response_data_relationships import (
+ JobsSingleGetResponseDataRelationships,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseData")
+
+
+@_attrs_define
+class JobsSingleGetResponseData:
+ """
+ Attributes:
+ type (Union[Unset, JobsSingleGetResponseDataType]):
+ id (Union[Unset, str]): Example: MyJobId.
+ revision (Union[Unset, str]): Example: 1234.
+ attributes (Union[Unset, JobsSingleGetResponseDataAttributes]):
+ relationships (Union[Unset, JobsSingleGetResponseDataRelationships]):
+ links (Union[Unset, JobsSingleGetResponseDataLinks]):
+ meta (Union[Unset, JobsSingleGetResponseDataMeta]):
+ """
+
+ type: Union[Unset, JobsSingleGetResponseDataType] = UNSET
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
+ attributes: Union[Unset, "JobsSingleGetResponseDataAttributes"] = UNSET
+ relationships: Union[Unset, "JobsSingleGetResponseDataRelationships"] = (
+ UNSET
+ )
+ links: Union[Unset, "JobsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "JobsSingleGetResponseDataMeta"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ revision = self.revision
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ relationships: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.relationships, Unset):
+ relationships = self.relationships.to_dict()
+
+ links: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.links, Unset):
+ links = self.links.to_dict()
+
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+ if relationships is not UNSET:
+ field_dict["relationships"] = relationships
+ if links is not UNSET:
+ field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_attributes import (
+ JobsSingleGetResponseDataAttributes,
+ )
+ from ..models.jobs_single_get_response_data_links import (
+ JobsSingleGetResponseDataLinks,
+ )
+ from ..models.jobs_single_get_response_data_meta import (
+ JobsSingleGetResponseDataMeta,
+ )
+ from ..models.jobs_single_get_response_data_relationships import (
+ JobsSingleGetResponseDataRelationships,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, JobsSingleGetResponseDataType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSingleGetResponseDataType(_type)
+
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[Unset, JobsSingleGetResponseDataAttributes]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = JobsSingleGetResponseDataAttributes.from_dict(
+ _attributes
+ )
+
+ _relationships = d.pop("relationships", UNSET)
+ relationships: Union[Unset, JobsSingleGetResponseDataRelationships]
+ if isinstance(_relationships, Unset):
+ relationships = UNSET
+ else:
+ relationships = JobsSingleGetResponseDataRelationships.from_dict(
+ _relationships
+ )
+
+ _links = d.pop("links", UNSET)
+ links: Union[Unset, JobsSingleGetResponseDataLinks]
+ if isinstance(_links, Unset):
+ links = UNSET
+ else:
+ links = JobsSingleGetResponseDataLinks.from_dict(_links)
+
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, JobsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = JobsSingleGetResponseDataMeta.from_dict(_meta)
+
+ jobs_single_get_response_data_obj = cls(
+ type=type,
+ id=id,
+ revision=revision,
+ attributes=attributes,
+ relationships=relationships,
+ links=links,
+ meta=meta,
+ )
+
+ jobs_single_get_response_data_obj.additional_properties = d
+ return jobs_single_get_response_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes.py
new file mode 100644
index 00000000..fc5c4f00
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes.py
@@ -0,0 +1,109 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_attributes_status import (
+ JobsSingleGetResponseDataAttributesStatus,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataAttributes")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataAttributes:
+ """
+ Attributes:
+ job_id (Union[Unset, str]): Example: example.
+ name (Union[Unset, str]): Example: example.
+ state (Union[Unset, str]): Example: example.
+ status (Union[Unset, JobsSingleGetResponseDataAttributesStatus]):
+ """
+
+ job_id: Union[Unset, str] = UNSET
+ name: Union[Unset, str] = UNSET
+ state: Union[Unset, str] = UNSET
+ status: Union[Unset, "JobsSingleGetResponseDataAttributesStatus"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ job_id = self.job_id
+
+ name = self.name
+
+ state = self.state
+
+ status: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.status, Unset):
+ status = self.status.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if job_id is not UNSET:
+ field_dict["jobId"] = job_id
+ if name is not UNSET:
+ field_dict["name"] = name
+ if state is not UNSET:
+ field_dict["state"] = state
+ if status is not UNSET:
+ field_dict["status"] = status
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_attributes_status import (
+ JobsSingleGetResponseDataAttributesStatus,
+ )
+
+ d = src_dict.copy()
+ job_id = d.pop("jobId", UNSET)
+
+ name = d.pop("name", UNSET)
+
+ state = d.pop("state", UNSET)
+
+ _status = d.pop("status", UNSET)
+ status: Union[Unset, JobsSingleGetResponseDataAttributesStatus]
+ if isinstance(_status, Unset):
+ status = UNSET
+ else:
+ status = JobsSingleGetResponseDataAttributesStatus.from_dict(
+ _status
+ )
+
+ jobs_single_get_response_data_attributes_obj = cls(
+ job_id=job_id,
+ name=name,
+ state=state,
+ status=status,
+ )
+
+ jobs_single_get_response_data_attributes_obj.additional_properties = d
+ return jobs_single_get_response_data_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status.py
new file mode 100644
index 00000000..aa8c130f
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_get_response_data_attributes_status_type import (
+ JobsSingleGetResponseDataAttributesStatusType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataAttributesStatus")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataAttributesStatus:
+ """
+ Attributes:
+ message (Union[Unset, str]): Example: message.
+ type (Union[Unset, JobsSingleGetResponseDataAttributesStatusType]):
+ """
+
+ message: Union[Unset, str] = UNSET
+ type: Union[Unset, JobsSingleGetResponseDataAttributesStatusType] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ message = self.message
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if message is not UNSET:
+ field_dict["message"] = message
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ message = d.pop("message", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, JobsSingleGetResponseDataAttributesStatusType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSingleGetResponseDataAttributesStatusType(_type)
+
+ jobs_single_get_response_data_attributes_status_obj = cls(
+ message=message,
+ type=type,
+ )
+
+ jobs_single_get_response_data_attributes_status_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_attributes_status_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status_type.py
new file mode 100644
index 00000000..e32f15e7
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_attributes_status_type.py
@@ -0,0 +1,14 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSingleGetResponseDataAttributesStatusType(str, Enum):
+ CANCELLED = "CANCELLED"
+ FAILED = "FAILED"
+ OK = "OK"
+ UNKNOWN = "UNKNOWN"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_links.py
new file mode 100644
index 00000000..2ef966f4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_links.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union, cast
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataLinks")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataLinks:
+ """
+ Attributes:
+ downloads (Union[Unset, List[str]]): Example: ['https://example.com/polarion/download/filename1',
+ 'https://example.com/polarion/download/filename2'].
+ log (Union[Unset, str]): Example: server-host-name/application-path/polarion/job-report?jobId=MyJobId.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/jobs/MyJobId.
+ """
+
+ downloads: Union[Unset, List[str]] = UNSET
+ log: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ downloads: Union[Unset, List[str]] = UNSET
+ if not isinstance(self.downloads, Unset):
+ downloads = self.downloads
+
+ log = self.log
+
+ self_ = self.self_
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if downloads is not UNSET:
+ field_dict["downloads"] = downloads
+ if log is not UNSET:
+ field_dict["log"] = log
+ if self_ is not UNSET:
+ field_dict["self"] = self_
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ downloads = cast(List[str], d.pop("downloads", UNSET))
+
+ log = d.pop("log", UNSET)
+
+ self_ = d.pop("self", UNSET)
+
+ jobs_single_get_response_data_links_obj = cls(
+ downloads=downloads,
+ log=log,
+ self_=self_,
+ )
+
+ jobs_single_get_response_data_links_obj.additional_properties = d
+ return jobs_single_get_response_data_links_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta.py
new file mode 100644
index 00000000..ef22c098
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta.py
@@ -0,0 +1,87 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_meta_errors_item import (
+ JobsSingleGetResponseDataMetaErrorsItem,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataMeta")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataMeta:
+ """
+ Attributes:
+ errors (Union[Unset, List['JobsSingleGetResponseDataMetaErrorsItem']]):
+ """
+
+ errors: Union[Unset, List["JobsSingleGetResponseDataMetaErrorsItem"]] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ errors: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.errors, Unset):
+ errors = []
+ for errors_item_data in self.errors:
+ errors_item = errors_item_data.to_dict()
+ errors.append(errors_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if errors is not UNSET:
+ field_dict["errors"] = errors
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_meta_errors_item import (
+ JobsSingleGetResponseDataMetaErrorsItem,
+ )
+
+ d = src_dict.copy()
+ errors = []
+ _errors = d.pop("errors", UNSET)
+ for errors_item_data in _errors or []:
+ errors_item = JobsSingleGetResponseDataMetaErrorsItem.from_dict(
+ errors_item_data
+ )
+
+ errors.append(errors_item)
+
+ jobs_single_get_response_data_meta_obj = cls(
+ errors=errors,
+ )
+
+ jobs_single_get_response_data_meta_obj.additional_properties = d
+ return jobs_single_get_response_data_meta_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item.py
new file mode 100644
index 00000000..525dc1b3
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item.py
@@ -0,0 +1,114 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_meta_errors_item_source import (
+ JobsSingleGetResponseDataMetaErrorsItemSource,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataMetaErrorsItem")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataMetaErrorsItem:
+ """
+ Attributes:
+ detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
+ Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
+ source (Union[Unset, JobsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
+ """
+
+ detail: Union[Unset, str] = UNSET
+ source: Union[Unset, "JobsSingleGetResponseDataMetaErrorsItemSource"] = (
+ UNSET
+ )
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ detail = self.detail
+
+ source: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.source, Unset):
+ source = self.source.to_dict()
+
+ status = self.status
+
+ title = self.title
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if detail is not UNSET:
+ field_dict["detail"] = detail
+ if source is not UNSET:
+ field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_meta_errors_item_source import (
+ JobsSingleGetResponseDataMetaErrorsItemSource,
+ )
+
+ d = src_dict.copy()
+ detail = d.pop("detail", UNSET)
+
+ _source = d.pop("source", UNSET)
+ source: Union[Unset, JobsSingleGetResponseDataMetaErrorsItemSource]
+ if isinstance(_source, Unset):
+ source = UNSET
+ else:
+ source = JobsSingleGetResponseDataMetaErrorsItemSource.from_dict(
+ _source
+ )
+
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
+ jobs_single_get_response_data_meta_errors_item_obj = cls(
+ detail=detail,
+ source=source,
+ status=status,
+ title=title,
+ )
+
+ jobs_single_get_response_data_meta_errors_item_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_meta_errors_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/errors_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source.py
similarity index 67%
rename from polarion_rest_api_client/open_api_client/models/errors_errors_item_source.py
rename to polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source.py
index c91c7815..b0123b09 100644
--- a/polarion_rest_api_client/open_api_client/models/errors_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source.py
@@ -9,35 +9,37 @@
from ..types import UNSET, Unset
if TYPE_CHECKING:
- from ..models.errors_errors_item_source_resource import (
- ErrorsErrorsItemSourceResource,
+ from ..models.jobs_single_get_response_data_meta_errors_item_source_resource import (
+ JobsSingleGetResponseDataMetaErrorsItemSourceResource,
)
-T = TypeVar("T", bound="ErrorsErrorsItemSource")
+T = TypeVar("T", bound="JobsSingleGetResponseDataMetaErrorsItemSource")
@_attrs_define
-class ErrorsErrorsItemSource:
+class JobsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
- resource (Union[Unset, ErrorsErrorsItemSourceResource]): Resource causing the error.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
+ resource (Union[Unset, JobsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
- resource: Union[Unset, "ErrorsErrorsItemSourceResource"] = UNSET
+ pointer: Union[Unset, str] = UNSET
+ resource: Union[
+ Unset, "JobsSingleGetResponseDataMetaErrorsItemSourceResource"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -45,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -56,30 +58,36 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
- from ..models.errors_errors_item_source_resource import (
- ErrorsErrorsItemSourceResource,
+ from ..models.jobs_single_get_response_data_meta_errors_item_source_resource import (
+ JobsSingleGetResponseDataMetaErrorsItemSourceResource,
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
- resource: Union[Unset, ErrorsErrorsItemSourceResource]
+ resource: Union[
+ Unset, JobsSingleGetResponseDataMetaErrorsItemSourceResource
+ ]
if isinstance(_resource, Unset):
resource = UNSET
else:
- resource = ErrorsErrorsItemSourceResource.from_dict(_resource)
+ resource = JobsSingleGetResponseDataMetaErrorsItemSourceResource.from_dict(
+ _resource
+ )
- errors_errors_item_source_obj = cls(
- pointer=pointer,
+ jobs_single_get_response_data_meta_errors_item_source_obj = cls(
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
- errors_errors_item_source_obj.additional_properties = d
- return errors_errors_item_source_obj
+ jobs_single_get_response_data_meta_errors_item_source_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_meta_errors_item_source_obj
@property
def additional_keys(self) -> List[str]:
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source_resource.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source_resource.py
new file mode 100644
index 00000000..f1ed8902
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_meta_errors_item_source_resource.py
@@ -0,0 +1,79 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataMetaErrorsItemSourceResource")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataMetaErrorsItemSourceResource:
+ """Resource causing the error.
+
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/id.
+ type (Union[Unset, str]): Example: type.
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type = self.type
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ type = d.pop("type", UNSET)
+
+ jobs_single_get_response_data_meta_errors_item_source_resource_obj = (
+ cls(
+ id=id,
+ type=type,
+ )
+ )
+
+ jobs_single_get_response_data_meta_errors_item_source_resource_obj.additional_properties = (
+ d
+ )
+ return (
+ jobs_single_get_response_data_meta_errors_item_source_resource_obj
+ )
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships.py
new file mode 100644
index 00000000..2a33bef5
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships.py
@@ -0,0 +1,144 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_relationships_document import (
+ JobsSingleGetResponseDataRelationshipsDocument,
+ )
+ from ..models.jobs_single_get_response_data_relationships_documents import (
+ JobsSingleGetResponseDataRelationshipsDocuments,
+ )
+ from ..models.jobs_single_get_response_data_relationships_project import (
+ JobsSingleGetResponseDataRelationshipsProject,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationships")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationships:
+ """
+ Attributes:
+ document (Union[Unset, JobsSingleGetResponseDataRelationshipsDocument]):
+ documents (Union[Unset, JobsSingleGetResponseDataRelationshipsDocuments]):
+ project (Union[Unset, JobsSingleGetResponseDataRelationshipsProject]):
+ """
+
+ document: Union[
+ Unset, "JobsSingleGetResponseDataRelationshipsDocument"
+ ] = UNSET
+ documents: Union[
+ Unset, "JobsSingleGetResponseDataRelationshipsDocuments"
+ ] = UNSET
+ project: Union[Unset, "JobsSingleGetResponseDataRelationshipsProject"] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ document: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.document, Unset):
+ document = self.document.to_dict()
+
+ documents: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.documents, Unset):
+ documents = self.documents.to_dict()
+
+ project: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.project, Unset):
+ project = self.project.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if document is not UNSET:
+ field_dict["document"] = document
+ if documents is not UNSET:
+ field_dict["documents"] = documents
+ if project is not UNSET:
+ field_dict["project"] = project
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_relationships_document import (
+ JobsSingleGetResponseDataRelationshipsDocument,
+ )
+ from ..models.jobs_single_get_response_data_relationships_documents import (
+ JobsSingleGetResponseDataRelationshipsDocuments,
+ )
+ from ..models.jobs_single_get_response_data_relationships_project import (
+ JobsSingleGetResponseDataRelationshipsProject,
+ )
+
+ d = src_dict.copy()
+ _document = d.pop("document", UNSET)
+ document: Union[Unset, JobsSingleGetResponseDataRelationshipsDocument]
+ if isinstance(_document, Unset):
+ document = UNSET
+ else:
+ document = (
+ JobsSingleGetResponseDataRelationshipsDocument.from_dict(
+ _document
+ )
+ )
+
+ _documents = d.pop("documents", UNSET)
+ documents: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsDocuments
+ ]
+ if isinstance(_documents, Unset):
+ documents = UNSET
+ else:
+ documents = (
+ JobsSingleGetResponseDataRelationshipsDocuments.from_dict(
+ _documents
+ )
+ )
+
+ _project = d.pop("project", UNSET)
+ project: Union[Unset, JobsSingleGetResponseDataRelationshipsProject]
+ if isinstance(_project, Unset):
+ project = UNSET
+ else:
+ project = JobsSingleGetResponseDataRelationshipsProject.from_dict(
+ _project
+ )
+
+ jobs_single_get_response_data_relationships_obj = cls(
+ document=document,
+ documents=documents,
+ project=project,
+ )
+
+ jobs_single_get_response_data_relationships_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document.py
new file mode 100644
index 00000000..45c36a32
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document.py
@@ -0,0 +1,88 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_relationships_document_data import (
+ JobsSingleGetResponseDataRelationshipsDocumentData,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsDocument")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsDocument:
+ """
+ Attributes:
+ data (Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentData]):
+ """
+
+ data: Union[
+ Unset, "JobsSingleGetResponseDataRelationshipsDocumentData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_relationships_document_data import (
+ JobsSingleGetResponseDataRelationshipsDocumentData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = (
+ JobsSingleGetResponseDataRelationshipsDocumentData.from_dict(
+ _data
+ )
+ )
+
+ jobs_single_get_response_data_relationships_document_obj = cls(
+ data=data,
+ )
+
+ jobs_single_get_response_data_relationships_document_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_document_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data.py
new file mode 100644
index 00000000..6b86daee
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data.py
@@ -0,0 +1,99 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_get_response_data_relationships_document_data_type import (
+ JobsSingleGetResponseDataRelationshipsDocumentDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsDocumentData")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsDocumentData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsDocumentDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsDocumentDataType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSingleGetResponseDataRelationshipsDocumentDataType(
+ _type
+ )
+
+ jobs_single_get_response_data_relationships_document_data_obj = cls(
+ id=id,
+ revision=revision,
+ type=type,
+ )
+
+ jobs_single_get_response_data_relationships_document_data_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_document_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data_type.py
new file mode 100644
index 00000000..f0c9ccae
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_document_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSingleGetResponseDataRelationshipsDocumentDataType(str, Enum):
+ DOCUMENTS = "documents"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents.py
new file mode 100644
index 00000000..8c8673b1
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents.py
@@ -0,0 +1,117 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_relationships_documents_data_item import (
+ JobsSingleGetResponseDataRelationshipsDocumentsDataItem,
+ )
+ from ..models.jobs_single_get_response_data_relationships_documents_meta import (
+ JobsSingleGetResponseDataRelationshipsDocumentsMeta,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsDocuments")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsDocuments:
+ """
+ Attributes:
+ data (Union[Unset, List['JobsSingleGetResponseDataRelationshipsDocumentsDataItem']]):
+ meta (Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentsMeta]):
+ """
+
+ data: Union[
+ Unset, List["JobsSingleGetResponseDataRelationshipsDocumentsDataItem"]
+ ] = UNSET
+ meta: Union[
+ Unset, "JobsSingleGetResponseDataRelationshipsDocumentsMeta"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+ if meta is not UNSET:
+ field_dict["meta"] = meta
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_relationships_documents_data_item import (
+ JobsSingleGetResponseDataRelationshipsDocumentsDataItem,
+ )
+ from ..models.jobs_single_get_response_data_relationships_documents_meta import (
+ JobsSingleGetResponseDataRelationshipsDocumentsMeta,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = JobsSingleGetResponseDataRelationshipsDocumentsDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentsMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = (
+ JobsSingleGetResponseDataRelationshipsDocumentsMeta.from_dict(
+ _meta
+ )
+ )
+
+ jobs_single_get_response_data_relationships_documents_obj = cls(
+ data=data,
+ meta=meta,
+ )
+
+ jobs_single_get_response_data_relationships_documents_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_documents_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item.py
new file mode 100644
index 00000000..3e61dce6
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item.py
@@ -0,0 +1,105 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_get_response_data_relationships_documents_data_item_type import (
+ JobsSingleGetResponseDataRelationshipsDocumentsDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="JobsSingleGetResponseDataRelationshipsDocumentsDataItem"
+)
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsDocumentsDataItem:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, JobsSingleGetResponseDataRelationshipsDocumentsDataItemType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsDocumentsDataItemType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsDocumentsDataItemType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSingleGetResponseDataRelationshipsDocumentsDataItemType(
+ _type
+ )
+
+ jobs_single_get_response_data_relationships_documents_data_item_obj = (
+ cls(
+ id=id,
+ revision=revision,
+ type=type,
+ )
+ )
+
+ jobs_single_get_response_data_relationships_documents_data_item_obj.additional_properties = (
+ d
+ )
+ return (
+ jobs_single_get_response_data_relationships_documents_data_item_obj
+ )
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item_type.py
new file mode 100644
index 00000000..72ab40a8
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSingleGetResponseDataRelationshipsDocumentsDataItemType(str, Enum):
+ DOCUMENTS = "documents"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_meta.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_meta.py
new file mode 100644
index 00000000..8a85bb7e
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_documents_meta.py
@@ -0,0 +1,65 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsDocumentsMeta")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsDocumentsMeta:
+ """
+ Attributes:
+ total_count (Union[Unset, int]):
+ """
+
+ total_count: Union[Unset, int] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ total_count = self.total_count
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if total_count is not UNSET:
+ field_dict["totalCount"] = total_count
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ total_count = d.pop("totalCount", UNSET)
+
+ jobs_single_get_response_data_relationships_documents_meta_obj = cls(
+ total_count=total_count,
+ )
+
+ jobs_single_get_response_data_relationships_documents_meta_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_documents_meta_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project.py
new file mode 100644
index 00000000..690ddd5e
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project.py
@@ -0,0 +1,86 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_get_response_data_relationships_project_data import (
+ JobsSingleGetResponseDataRelationshipsProjectData,
+ )
+
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsProject")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsProject:
+ """
+ Attributes:
+ data (Union[Unset, JobsSingleGetResponseDataRelationshipsProjectData]):
+ """
+
+ data: Union[Unset, "JobsSingleGetResponseDataRelationshipsProjectData"] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_get_response_data_relationships_project_data import (
+ JobsSingleGetResponseDataRelationshipsProjectData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSingleGetResponseDataRelationshipsProjectData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = JobsSingleGetResponseDataRelationshipsProjectData.from_dict(
+ _data
+ )
+
+ jobs_single_get_response_data_relationships_project_obj = cls(
+ data=data,
+ )
+
+ jobs_single_get_response_data_relationships_project_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_project_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data.py
new file mode 100644
index 00000000..2b997dd1
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data.py
@@ -0,0 +1,97 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_get_response_data_relationships_project_data_type import (
+ JobsSingleGetResponseDataRelationshipsProjectDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseDataRelationshipsProjectData")
+
+
+@_attrs_define
+class JobsSingleGetResponseDataRelationshipsProjectData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, JobsSingleGetResponseDataRelationshipsProjectDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsProjectDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSingleGetResponseDataRelationshipsProjectDataType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSingleGetResponseDataRelationshipsProjectDataType(_type)
+
+ jobs_single_get_response_data_relationships_project_data_obj = cls(
+ id=id,
+ revision=revision,
+ type=type,
+ )
+
+ jobs_single_get_response_data_relationships_project_data_obj.additional_properties = (
+ d
+ )
+ return jobs_single_get_response_data_relationships_project_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data_type.py
new file mode 100644
index 00000000..e7ed32d6
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_relationships_project_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSingleGetResponseDataRelationshipsProjectDataType(str, Enum):
+ PROJECTS = "projects"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_type.py
new file mode 100644
index 00000000..c09824b2
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSingleGetResponseDataType(str, Enum):
+ JOBS = "jobs"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_included_item.py
new file mode 100644
index 00000000..40cf84ec
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_included_item.py
@@ -0,0 +1,48 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+T = TypeVar("T", bound="JobsSingleGetResponseIncludedItem")
+
+
+@_attrs_define
+class JobsSingleGetResponseIncludedItem:
+ """"""
+
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ jobs_single_get_response_included_item_obj = cls()
+
+ jobs_single_get_response_included_item_obj.additional_properties = d
+ return jobs_single_get_response_included_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_links.py b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_links.py
new file mode 100644
index 00000000..6741f042
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_get_response_links.py
@@ -0,0 +1,63 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSingleGetResponseLinks")
+
+
+@_attrs_define
+class JobsSingleGetResponseLinks:
+ """
+ Attributes:
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/jobs/MyJobId.
+ """
+
+ self_: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ self_ = self.self_
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if self_ is not UNSET:
+ field_dict["self"] = self_
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ self_ = d.pop("self", UNSET)
+
+ jobs_single_get_response_links_obj = cls(
+ self_=self_,
+ )
+
+ jobs_single_get_response_links_obj.additional_properties = d
+ return jobs_single_get_response_links_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response.py
new file mode 100644
index 00000000..feb56104
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response.py
@@ -0,0 +1,80 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data import (
+ JobsSinglePostResponseData,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponse")
+
+
+@_attrs_define
+class JobsSinglePostResponse:
+ """
+ Attributes:
+ data (Union[Unset, JobsSinglePostResponseData]):
+ """
+
+ data: Union[Unset, "JobsSinglePostResponseData"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data import (
+ JobsSinglePostResponseData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSinglePostResponseData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = JobsSinglePostResponseData.from_dict(_data)
+
+ jobs_single_post_response_obj = cls(
+ data=data,
+ )
+
+ jobs_single_post_response_obj.additional_properties = d
+ return jobs_single_post_response_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data.py
new file mode 100644
index 00000000..5bf31e33
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data.py
@@ -0,0 +1,158 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_post_response_data_type import (
+ JobsSinglePostResponseDataType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_attributes import (
+ JobsSinglePostResponseDataAttributes,
+ )
+ from ..models.jobs_single_post_response_data_links import (
+ JobsSinglePostResponseDataLinks,
+ )
+ from ..models.jobs_single_post_response_data_relationships import (
+ JobsSinglePostResponseDataRelationships,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseData")
+
+
+@_attrs_define
+class JobsSinglePostResponseData:
+ """
+ Attributes:
+ type (Union[Unset, JobsSinglePostResponseDataType]):
+ id (Union[Unset, str]): Example: MyJobId.
+ attributes (Union[Unset, JobsSinglePostResponseDataAttributes]):
+ relationships (Union[Unset, JobsSinglePostResponseDataRelationships]):
+ links (Union[Unset, JobsSinglePostResponseDataLinks]):
+ """
+
+ type: Union[Unset, JobsSinglePostResponseDataType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[Unset, "JobsSinglePostResponseDataAttributes"] = UNSET
+ relationships: Union[Unset, "JobsSinglePostResponseDataRelationships"] = (
+ UNSET
+ )
+ links: Union[Unset, "JobsSinglePostResponseDataLinks"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ relationships: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.relationships, Unset):
+ relationships = self.relationships.to_dict()
+
+ links: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.links, Unset):
+ links = self.links.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+ if relationships is not UNSET:
+ field_dict["relationships"] = relationships
+ if links is not UNSET:
+ field_dict["links"] = links
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_attributes import (
+ JobsSinglePostResponseDataAttributes,
+ )
+ from ..models.jobs_single_post_response_data_links import (
+ JobsSinglePostResponseDataLinks,
+ )
+ from ..models.jobs_single_post_response_data_relationships import (
+ JobsSinglePostResponseDataRelationships,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, JobsSinglePostResponseDataType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSinglePostResponseDataType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[Unset, JobsSinglePostResponseDataAttributes]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = JobsSinglePostResponseDataAttributes.from_dict(
+ _attributes
+ )
+
+ _relationships = d.pop("relationships", UNSET)
+ relationships: Union[Unset, JobsSinglePostResponseDataRelationships]
+ if isinstance(_relationships, Unset):
+ relationships = UNSET
+ else:
+ relationships = JobsSinglePostResponseDataRelationships.from_dict(
+ _relationships
+ )
+
+ _links = d.pop("links", UNSET)
+ links: Union[Unset, JobsSinglePostResponseDataLinks]
+ if isinstance(_links, Unset):
+ links = UNSET
+ else:
+ links = JobsSinglePostResponseDataLinks.from_dict(_links)
+
+ jobs_single_post_response_data_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ relationships=relationships,
+ links=links,
+ )
+
+ jobs_single_post_response_data_obj.additional_properties = d
+ return jobs_single_post_response_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes.py
new file mode 100644
index 00000000..a299eae7
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes.py
@@ -0,0 +1,109 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_attributes_status import (
+ JobsSinglePostResponseDataAttributesStatus,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataAttributes")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataAttributes:
+ """
+ Attributes:
+ job_id (Union[Unset, str]): Example: example.
+ name (Union[Unset, str]): Example: example.
+ state (Union[Unset, str]): Example: example.
+ status (Union[Unset, JobsSinglePostResponseDataAttributesStatus]):
+ """
+
+ job_id: Union[Unset, str] = UNSET
+ name: Union[Unset, str] = UNSET
+ state: Union[Unset, str] = UNSET
+ status: Union[Unset, "JobsSinglePostResponseDataAttributesStatus"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ job_id = self.job_id
+
+ name = self.name
+
+ state = self.state
+
+ status: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.status, Unset):
+ status = self.status.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if job_id is not UNSET:
+ field_dict["jobId"] = job_id
+ if name is not UNSET:
+ field_dict["name"] = name
+ if state is not UNSET:
+ field_dict["state"] = state
+ if status is not UNSET:
+ field_dict["status"] = status
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_attributes_status import (
+ JobsSinglePostResponseDataAttributesStatus,
+ )
+
+ d = src_dict.copy()
+ job_id = d.pop("jobId", UNSET)
+
+ name = d.pop("name", UNSET)
+
+ state = d.pop("state", UNSET)
+
+ _status = d.pop("status", UNSET)
+ status: Union[Unset, JobsSinglePostResponseDataAttributesStatus]
+ if isinstance(_status, Unset):
+ status = UNSET
+ else:
+ status = JobsSinglePostResponseDataAttributesStatus.from_dict(
+ _status
+ )
+
+ jobs_single_post_response_data_attributes_obj = cls(
+ job_id=job_id,
+ name=name,
+ state=state,
+ status=status,
+ )
+
+ jobs_single_post_response_data_attributes_obj.additional_properties = d
+ return jobs_single_post_response_data_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status.py
new file mode 100644
index 00000000..24fea7fa
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_post_response_data_attributes_status_type import (
+ JobsSinglePostResponseDataAttributesStatusType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataAttributesStatus")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataAttributesStatus:
+ """
+ Attributes:
+ message (Union[Unset, str]): Example: message.
+ type (Union[Unset, JobsSinglePostResponseDataAttributesStatusType]):
+ """
+
+ message: Union[Unset, str] = UNSET
+ type: Union[Unset, JobsSinglePostResponseDataAttributesStatusType] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ message = self.message
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if message is not UNSET:
+ field_dict["message"] = message
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ message = d.pop("message", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, JobsSinglePostResponseDataAttributesStatusType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSinglePostResponseDataAttributesStatusType(_type)
+
+ jobs_single_post_response_data_attributes_status_obj = cls(
+ message=message,
+ type=type,
+ )
+
+ jobs_single_post_response_data_attributes_status_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_attributes_status_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status_type.py
new file mode 100644
index 00000000..a9b9cb22
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_attributes_status_type.py
@@ -0,0 +1,14 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSinglePostResponseDataAttributesStatusType(str, Enum):
+ CANCELLED = "CANCELLED"
+ FAILED = "FAILED"
+ OK = "OK"
+ UNKNOWN = "UNKNOWN"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_links.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_links.py
new file mode 100644
index 00000000..0eb4bffb
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_links.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union, cast
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataLinks")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataLinks:
+ """
+ Attributes:
+ downloads (Union[Unset, List[str]]): Example: ['https://example.com/polarion/download/filename1',
+ 'https://example.com/polarion/download/filename2'].
+ log (Union[Unset, str]): Example: server-host-name/application-path/polarion/job-report?jobId=MyJobId.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/jobs/MyJobId.
+ """
+
+ downloads: Union[Unset, List[str]] = UNSET
+ log: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ downloads: Union[Unset, List[str]] = UNSET
+ if not isinstance(self.downloads, Unset):
+ downloads = self.downloads
+
+ log = self.log
+
+ self_ = self.self_
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if downloads is not UNSET:
+ field_dict["downloads"] = downloads
+ if log is not UNSET:
+ field_dict["log"] = log
+ if self_ is not UNSET:
+ field_dict["self"] = self_
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ downloads = cast(List[str], d.pop("downloads", UNSET))
+
+ log = d.pop("log", UNSET)
+
+ self_ = d.pop("self", UNSET)
+
+ jobs_single_post_response_data_links_obj = cls(
+ downloads=downloads,
+ log=log,
+ self_=self_,
+ )
+
+ jobs_single_post_response_data_links_obj.additional_properties = d
+ return jobs_single_post_response_data_links_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships.py
new file mode 100644
index 00000000..f79b2e93
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships.py
@@ -0,0 +1,144 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_relationships_document import (
+ JobsSinglePostResponseDataRelationshipsDocument,
+ )
+ from ..models.jobs_single_post_response_data_relationships_documents import (
+ JobsSinglePostResponseDataRelationshipsDocuments,
+ )
+ from ..models.jobs_single_post_response_data_relationships_project import (
+ JobsSinglePostResponseDataRelationshipsProject,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationships")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationships:
+ """
+ Attributes:
+ document (Union[Unset, JobsSinglePostResponseDataRelationshipsDocument]):
+ documents (Union[Unset, JobsSinglePostResponseDataRelationshipsDocuments]):
+ project (Union[Unset, JobsSinglePostResponseDataRelationshipsProject]):
+ """
+
+ document: Union[
+ Unset, "JobsSinglePostResponseDataRelationshipsDocument"
+ ] = UNSET
+ documents: Union[
+ Unset, "JobsSinglePostResponseDataRelationshipsDocuments"
+ ] = UNSET
+ project: Union[Unset, "JobsSinglePostResponseDataRelationshipsProject"] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ document: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.document, Unset):
+ document = self.document.to_dict()
+
+ documents: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.documents, Unset):
+ documents = self.documents.to_dict()
+
+ project: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.project, Unset):
+ project = self.project.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if document is not UNSET:
+ field_dict["document"] = document
+ if documents is not UNSET:
+ field_dict["documents"] = documents
+ if project is not UNSET:
+ field_dict["project"] = project
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_relationships_document import (
+ JobsSinglePostResponseDataRelationshipsDocument,
+ )
+ from ..models.jobs_single_post_response_data_relationships_documents import (
+ JobsSinglePostResponseDataRelationshipsDocuments,
+ )
+ from ..models.jobs_single_post_response_data_relationships_project import (
+ JobsSinglePostResponseDataRelationshipsProject,
+ )
+
+ d = src_dict.copy()
+ _document = d.pop("document", UNSET)
+ document: Union[Unset, JobsSinglePostResponseDataRelationshipsDocument]
+ if isinstance(_document, Unset):
+ document = UNSET
+ else:
+ document = (
+ JobsSinglePostResponseDataRelationshipsDocument.from_dict(
+ _document
+ )
+ )
+
+ _documents = d.pop("documents", UNSET)
+ documents: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsDocuments
+ ]
+ if isinstance(_documents, Unset):
+ documents = UNSET
+ else:
+ documents = (
+ JobsSinglePostResponseDataRelationshipsDocuments.from_dict(
+ _documents
+ )
+ )
+
+ _project = d.pop("project", UNSET)
+ project: Union[Unset, JobsSinglePostResponseDataRelationshipsProject]
+ if isinstance(_project, Unset):
+ project = UNSET
+ else:
+ project = JobsSinglePostResponseDataRelationshipsProject.from_dict(
+ _project
+ )
+
+ jobs_single_post_response_data_relationships_obj = cls(
+ document=document,
+ documents=documents,
+ project=project,
+ )
+
+ jobs_single_post_response_data_relationships_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document.py
new file mode 100644
index 00000000..0842036a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document.py
@@ -0,0 +1,88 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_relationships_document_data import (
+ JobsSinglePostResponseDataRelationshipsDocumentData,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationshipsDocument")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsDocument:
+ """
+ Attributes:
+ data (Union[Unset, JobsSinglePostResponseDataRelationshipsDocumentData]):
+ """
+
+ data: Union[
+ Unset, "JobsSinglePostResponseDataRelationshipsDocumentData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_relationships_document_data import (
+ JobsSinglePostResponseDataRelationshipsDocumentData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSinglePostResponseDataRelationshipsDocumentData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = (
+ JobsSinglePostResponseDataRelationshipsDocumentData.from_dict(
+ _data
+ )
+ )
+
+ jobs_single_post_response_data_relationships_document_obj = cls(
+ data=data,
+ )
+
+ jobs_single_post_response_data_relationships_document_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_document_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data.py
new file mode 100644
index 00000000..014dec35
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data.py
@@ -0,0 +1,90 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_post_response_data_relationships_document_data_type import (
+ JobsSinglePostResponseDataRelationshipsDocumentDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationshipsDocumentData")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsDocumentData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ type (Union[Unset, JobsSinglePostResponseDataRelationshipsDocumentDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsDocumentDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsDocumentDataType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSinglePostResponseDataRelationshipsDocumentDataType(
+ _type
+ )
+
+ jobs_single_post_response_data_relationships_document_data_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ jobs_single_post_response_data_relationships_document_data_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_document_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data_type.py
new file mode 100644
index 00000000..7e07c9c6
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_document_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSinglePostResponseDataRelationshipsDocumentDataType(str, Enum):
+ DOCUMENTS = "documents"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents.py
new file mode 100644
index 00000000..0305b170
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents.py
@@ -0,0 +1,89 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_relationships_documents_data_item import (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItem,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationshipsDocuments")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsDocuments:
+ """
+ Attributes:
+ data (Union[Unset, List['JobsSinglePostResponseDataRelationshipsDocumentsDataItem']]):
+ """
+
+ data: Union[
+ Unset, List["JobsSinglePostResponseDataRelationshipsDocumentsDataItem"]
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_relationships_documents_data_item import (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = JobsSinglePostResponseDataRelationshipsDocumentsDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ jobs_single_post_response_data_relationships_documents_obj = cls(
+ data=data,
+ )
+
+ jobs_single_post_response_data_relationships_documents_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_documents_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item.py
new file mode 100644
index 00000000..2bdfaaba
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_post_response_data_relationships_documents_data_item_type import (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="JobsSinglePostResponseDataRelationshipsDocumentsDataItem"
+)
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsDocumentsDataItem:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ type (Union[Unset, JobsSinglePostResponseDataRelationshipsDocumentsDataItemType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsDocumentsDataItemType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsDocumentsDataItemType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = (
+ JobsSinglePostResponseDataRelationshipsDocumentsDataItemType(
+ _type
+ )
+ )
+
+ jobs_single_post_response_data_relationships_documents_data_item_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ jobs_single_post_response_data_relationships_documents_data_item_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_documents_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item_type.py
new file mode 100644
index 00000000..0a54c9a2
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_documents_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSinglePostResponseDataRelationshipsDocumentsDataItemType(str, Enum):
+ DOCUMENTS = "documents"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project.py
new file mode 100644
index 00000000..6f75e3a8
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project.py
@@ -0,0 +1,88 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.jobs_single_post_response_data_relationships_project_data import (
+ JobsSinglePostResponseDataRelationshipsProjectData,
+ )
+
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationshipsProject")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsProject:
+ """
+ Attributes:
+ data (Union[Unset, JobsSinglePostResponseDataRelationshipsProjectData]):
+ """
+
+ data: Union[
+ Unset, "JobsSinglePostResponseDataRelationshipsProjectData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.jobs_single_post_response_data_relationships_project_data import (
+ JobsSinglePostResponseDataRelationshipsProjectData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, JobsSinglePostResponseDataRelationshipsProjectData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = (
+ JobsSinglePostResponseDataRelationshipsProjectData.from_dict(
+ _data
+ )
+ )
+
+ jobs_single_post_response_data_relationships_project_obj = cls(
+ data=data,
+ )
+
+ jobs_single_post_response_data_relationships_project_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_project_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data.py
new file mode 100644
index 00000000..0d6358c1
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data.py
@@ -0,0 +1,90 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.jobs_single_post_response_data_relationships_project_data_type import (
+ JobsSinglePostResponseDataRelationshipsProjectDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="JobsSinglePostResponseDataRelationshipsProjectData")
+
+
+@_attrs_define
+class JobsSinglePostResponseDataRelationshipsProjectData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, JobsSinglePostResponseDataRelationshipsProjectDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsProjectDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, JobsSinglePostResponseDataRelationshipsProjectDataType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = JobsSinglePostResponseDataRelationshipsProjectDataType(
+ _type
+ )
+
+ jobs_single_post_response_data_relationships_project_data_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ jobs_single_post_response_data_relationships_project_data_obj.additional_properties = (
+ d
+ )
+ return jobs_single_post_response_data_relationships_project_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data_type.py
new file mode 100644
index 00000000..25f9fa01
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_relationships_project_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSinglePostResponseDataRelationshipsProjectDataType(str, Enum):
+ PROJECTS = "projects"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_type.py b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_type.py
new file mode 100644
index 00000000..0cc0e518
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/jobs_single_post_response_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class JobsSinglePostResponseDataType(str, Enum):
+ JOBS = "jobs"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response.py
index 60b37084..758c0fd0 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response.py
@@ -27,29 +27,26 @@
class LinkedoslcresourcesListGetResponse:
"""
Attributes:
- meta (Union[Unset, LinkedoslcresourcesListGetResponseMeta]):
data (Union[Unset, List['LinkedoslcresourcesListGetResponseDataItem']]):
included (Union[Unset, List['LinkedoslcresourcesListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
+ meta (Union[Unset, LinkedoslcresourcesListGetResponseMeta]):
"""
- meta: Union[Unset, "LinkedoslcresourcesListGetResponseMeta"] = UNSET
data: Union[Unset, List["LinkedoslcresourcesListGetResponseDataItem"]] = (
UNSET
)
included: Union[
Unset, List["LinkedoslcresourcesListGetResponseIncludedItem"]
] = UNSET
+ meta: Union[Unset, "LinkedoslcresourcesListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -64,15 +61,19 @@ def to_dict(self) -> Dict[str, Any]:
included_item = included_item_data.to_dict()
included.append(included_item)
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -89,13 +90,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, LinkedoslcresourcesListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = LinkedoslcresourcesListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -116,10 +110,17 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
included.append(included_item)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, LinkedoslcresourcesListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = LinkedoslcresourcesListGetResponseMeta.from_dict(_meta)
+
linkedoslcresources_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
+ meta=meta,
)
linkedoslcresources_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item.py
index 493ece62..723eafa7 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item.py
@@ -36,8 +36,8 @@ class LinkedoslcresourcesListGetResponseDataItem:
path/oslc/services/projects/MyProjectId/workitems/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, LinkedoslcresourcesListGetResponseDataItemAttributes]):
- meta (Union[Unset, LinkedoslcresourcesListGetResponseDataItemMeta]):
links (Union[Unset, LinkedoslcresourcesListGetResponseDataItemLinks]):
+ meta (Union[Unset, LinkedoslcresourcesListGetResponseDataItemMeta]):
"""
type: Union[Unset, LinkedoslcresourcesListGetResponseDataItemType] = UNSET
@@ -46,10 +46,10 @@ class LinkedoslcresourcesListGetResponseDataItem:
attributes: Union[
Unset, "LinkedoslcresourcesListGetResponseDataItemAttributes"
] = UNSET
- meta: Union[Unset, "LinkedoslcresourcesListGetResponseDataItemMeta"] = (
+ links: Union[Unset, "LinkedoslcresourcesListGetResponseDataItemLinks"] = (
UNSET
)
- links: Union[Unset, "LinkedoslcresourcesListGetResponseDataItemLinks"] = (
+ meta: Union[Unset, "LinkedoslcresourcesListGetResponseDataItemMeta"] = (
UNSET
)
additional_properties: Dict[str, Any] = _attrs_field(
@@ -69,14 +69,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -88,10 +88,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -132,15 +132,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, LinkedoslcresourcesListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = LinkedoslcresourcesListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, LinkedoslcresourcesListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -150,13 +141,22 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, LinkedoslcresourcesListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = LinkedoslcresourcesListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
linkedoslcresources_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
linkedoslcresources_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_links.py
index f036e6ac..5e090005 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_links.py
@@ -20,7 +20,6 @@ class LinkedoslcresourcesListGetResponseDataItemLinks:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item.py
index 0616ac78..a11322d8 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class LinkedoslcresourcesListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -90,11 +86,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
linkedoslcresources_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
linkedoslcresources_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item_source.py
index 784ed3ce..6a6ccde0 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class LinkedoslcresourcesListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
linkedoslcresources_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_included_item.py
index aeb80d03..d2ce1dec 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class LinkedoslcresourcesListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_post_response_data_item_links.py
index aa989da1..65a01a5a 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedoslcresources_list_post_response_data_item_links.py
@@ -20,7 +20,6 @@ class LinkedoslcresourcesListPostResponseDataItemLinks:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response.py
index 066ad35f..9dff18d6 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response.py
@@ -30,29 +30,26 @@
class LinkedworkitemsListGetResponse:
"""
Attributes:
- meta (Union[Unset, LinkedworkitemsListGetResponseMeta]):
data (Union[Unset, List['LinkedworkitemsListGetResponseDataItem']]):
included (Union[Unset, List['LinkedworkitemsListGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, LinkedworkitemsListGetResponseLinks]):
+ meta (Union[Unset, LinkedworkitemsListGetResponseMeta]):
"""
- meta: Union[Unset, "LinkedworkitemsListGetResponseMeta"] = UNSET
data: Union[Unset, List["LinkedworkitemsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["LinkedworkitemsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "LinkedworkitemsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "LinkedworkitemsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, LinkedworkitemsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = LinkedworkitemsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = LinkedworkitemsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, LinkedworkitemsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = LinkedworkitemsListGetResponseMeta.from_dict(_meta)
+
linkedworkitems_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
linkedworkitems_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item.py
index fe293c35..5f03be2d 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class LinkedworkitemsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, LinkedworkitemsListGetResponseDataItemAttributes]):
relationships (Union[Unset, LinkedworkitemsListGetResponseDataItemRelationships]):
- meta (Union[Unset, LinkedworkitemsListGetResponseDataItemMeta]):
links (Union[Unset, LinkedworkitemsListGetResponseDataItemLinks]):
+ meta (Union[Unset, LinkedworkitemsListGetResponseDataItemMeta]):
"""
type: Union[Unset, LinkedworkitemsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class LinkedworkitemsListGetResponseDataItem:
relationships: Union[
Unset, "LinkedworkitemsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "LinkedworkitemsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "LinkedworkitemsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "LinkedworkitemsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, LinkedworkitemsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = LinkedworkitemsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, LinkedworkitemsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, LinkedworkitemsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = LinkedworkitemsListGetResponseDataItemMeta.from_dict(_meta)
+
linkedworkitems_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
linkedworkitems_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item.py
index 7a2b6ef7..c4500b74 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class LinkedworkitemsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, LinkedworkitemsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "LinkedworkitemsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
linkedworkitems_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
linkedworkitems_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item_source.py
index 83f097f0..843d1762 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class LinkedworkitemsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, LinkedworkitemsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"LinkedworkitemsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class LinkedworkitemsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
linkedworkitems_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_relationships_work_item_data.py
index 2279ebb8..a8b37a90 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_data_item_relationships_work_item_data.py
@@ -21,45 +21,49 @@
class LinkedworkitemsListGetResponseDataItemRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, LinkedworkitemsListGetResponseDataItemRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, LinkedworkitemsListGetResponseDataItemRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
LinkedworkitemsListGetResponseDataItemRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
linkedworkitems_list_get_response_data_item_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
linkedworkitems_list_get_response_data_item_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_included_item.py
index 669fda70..46f748b3 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class LinkedworkitemsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_links.py
index 56976fd2..0f659caa 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_get_response_links.py
@@ -15,73 +15,73 @@
class LinkedworkitemsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
Id/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
- d/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
- Id/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
d/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItemI
+ d/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
+ Id/linkedworkitems/parent/MyProjectId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
linkedworkitems_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
linkedworkitems_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_post_request_data_item_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_post_request_data_item_relationships_work_item_data.py
index 4a3db30a..bdf23de0 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_post_request_data_item_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_list_post_request_data_item_relationships_work_item_data.py
@@ -21,39 +21,41 @@
class LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
LinkedworkitemsListPostRequestDataItemRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
linkedworkitems_list_post_request_data_item_relationships_work_item_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
linkedworkitems_list_post_request_data_item_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response.py
index e726d446..7462e743 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response.py
@@ -30,7 +30,8 @@ class LinkedworkitemsSingleGetResponse:
data (Union[Unset, LinkedworkitemsSingleGetResponseData]):
included (Union[Unset, List['LinkedworkitemsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, LinkedworkitemsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data.py
index c7e76697..2c128eca 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data.py
@@ -38,8 +38,8 @@ class LinkedworkitemsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, LinkedworkitemsSingleGetResponseDataAttributes]):
relationships (Union[Unset, LinkedworkitemsSingleGetResponseDataRelationships]):
- meta (Union[Unset, LinkedworkitemsSingleGetResponseDataMeta]):
links (Union[Unset, LinkedworkitemsSingleGetResponseDataLinks]):
+ meta (Union[Unset, LinkedworkitemsSingleGetResponseDataMeta]):
"""
type: Union[Unset, LinkedworkitemsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class LinkedworkitemsSingleGetResponseData:
relationships: Union[
Unset, "LinkedworkitemsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "LinkedworkitemsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "LinkedworkitemsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "LinkedworkitemsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, LinkedworkitemsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = LinkedworkitemsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, LinkedworkitemsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -169,14 +162,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = LinkedworkitemsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, LinkedworkitemsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = LinkedworkitemsSingleGetResponseDataMeta.from_dict(_meta)
+
linkedworkitems_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
linkedworkitems_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item.py
index 0c6cabe2..73ef1bf5 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class LinkedworkitemsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, LinkedworkitemsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "LinkedworkitemsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
linkedworkitems_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
linkedworkitems_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item_source.py
index b9b45b5b..f2c26b6e 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class LinkedworkitemsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, LinkedworkitemsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"LinkedworkitemsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class LinkedworkitemsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
linkedworkitems_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_relationships_work_item_data.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_relationships_work_item_data.py
index c5ee558d..6b08ef6c 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_relationships_work_item_data.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_data_relationships_work_item_data.py
@@ -20,45 +20,49 @@
class LinkedworkitemsSingleGetResponseDataRelationshipsWorkItemData:
"""
Attributes:
- type (Union[Unset, LinkedworkitemsSingleGetResponseDataRelationshipsWorkItemDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, LinkedworkitemsSingleGetResponseDataRelationshipsWorkItemDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
LinkedworkitemsSingleGetResponseDataRelationshipsWorkItemDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
linkedworkitems_single_get_response_data_relationships_work_item_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
linkedworkitems_single_get_response_data_relationships_work_item_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_included_item.py
index ff29e1a3..be6f57f0 100644
--- a/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/linkedworkitems_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class LinkedworkitemsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/merge_document_request_body.py b/polarion_rest_api_client/open_api_client/models/merge_document_request_body.py
new file mode 100644
index 00000000..2c890bed
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/merge_document_request_body.py
@@ -0,0 +1,73 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="MergeDocumentRequestBody")
+
+
+@_attrs_define
+class MergeDocumentRequestBody:
+ """
+ Attributes:
+ create_baseline (Union[Unset, bool]): Specifies whether the Baseline should be created. Example: True.
+ user_filter (Union[Unset, str]): Specifies the query to filter the source Work Items for the merge. Example:
+ status:open.
+ """
+
+ create_baseline: Union[Unset, bool] = UNSET
+ user_filter: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ create_baseline = self.create_baseline
+
+ user_filter = self.user_filter
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if create_baseline is not UNSET:
+ field_dict["createBaseline"] = create_baseline
+ if user_filter is not UNSET:
+ field_dict["userFilter"] = user_filter
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ create_baseline = d.pop("createBaseline", UNSET)
+
+ user_filter = d.pop("userFilter", UNSET)
+
+ merge_document_request_body_obj = cls(
+ create_baseline=create_baseline,
+ user_filter=user_filter,
+ )
+
+ merge_document_request_body_obj.additional_properties = d
+ return merge_document_request_body_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/move_work_item_to_document_request_body.py b/polarion_rest_api_client/open_api_client/models/move_work_item_to_document_request_body.py
index cb9fe00e..89fa356a 100644
--- a/polarion_rest_api_client/open_api_client/models/move_work_item_to_document_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/move_work_item_to_document_request_body.py
@@ -15,50 +15,50 @@
class MoveWorkItemToDocumentRequestBody:
"""
Attributes:
- target_document (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
- previous_part (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
next_part (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
+ previous_part (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId/workitem_MyWorkItemId.
+ target_document (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
"""
- target_document: Union[Unset, str] = UNSET
- previous_part: Union[Unset, str] = UNSET
next_part: Union[Unset, str] = UNSET
+ previous_part: Union[Unset, str] = UNSET
+ target_document: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- target_document = self.target_document
+ next_part = self.next_part
previous_part = self.previous_part
- next_part = self.next_part
+ target_document = self.target_document
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if target_document is not UNSET:
- field_dict["targetDocument"] = target_document
- if previous_part is not UNSET:
- field_dict["previousPart"] = previous_part
if next_part is not UNSET:
field_dict["nextPart"] = next_part
+ if previous_part is not UNSET:
+ field_dict["previousPart"] = previous_part
+ if target_document is not UNSET:
+ field_dict["targetDocument"] = target_document
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- target_document = d.pop("targetDocument", UNSET)
+ next_part = d.pop("nextPart", UNSET)
previous_part = d.pop("previousPart", UNSET)
- next_part = d.pop("nextPart", UNSET)
+ target_document = d.pop("targetDocument", UNSET)
move_work_item_to_document_request_body_obj = cls(
- target_document=target_document,
- previous_part=previous_part,
next_part=next_part,
+ previous_part=previous_part,
+ target_document=target_document,
)
move_work_item_to_document_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_request_data_item.py
index c928b762..b02eddd6 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_request_data_item.py
@@ -25,15 +25,15 @@ class PageAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, PageAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, PageAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[Unset, PageAttachmentsListPostRequestDataItemType] = UNSET
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "PageAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -43,21 +43,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -75,8 +75,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = PageAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, PageAttachmentsListPostRequestDataItemAttributes
@@ -90,10 +88,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ lid = d.pop("lid", UNSET)
+
page_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
page_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_response_data_item_links.py
index 7f3712b2..c75d0d54 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class PageAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
page_attachments_list_post_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
page_attachments_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response.py
index 88c2172b..9b3c499d 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class PageAttachmentsSingleGetResponse:
data (Union[Unset, PageAttachmentsSingleGetResponseData]):
included (Union[Unset, List['PageAttachmentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, PageAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data.py
index 69e8f0a6..bc3f64c2 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data.py
@@ -38,8 +38,8 @@ class PageAttachmentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, PageAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, PageAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, PageAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, PageAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, PageAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, PageAttachmentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class PageAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "PageAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "PageAttachmentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "PageAttachmentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "PageAttachmentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, PageAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = PageAttachmentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, PageAttachmentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -169,14 +162,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = PageAttachmentsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, PageAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = PageAttachmentsSingleGetResponseDataMeta.from_dict(_meta)
+
page_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
page_attachments_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_links.py
index b220ba21..82bc7ccc 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class PageAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/spaces/MySpaceId/pages/MyRichPageId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
page_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
page_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item.py
index e26a51e7..04430a75 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class PageAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, PageAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "PageAttachmentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
page_attachments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
page_attachments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item_source.py
index 154e29b9..117b6dc5 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class PageAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, PageAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"PageAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class PageAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
page_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_author_data.py
index 4e1d1053..a2c719e6 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_author_data.py
@@ -20,44 +20,48 @@
class PageAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, PageAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PageAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PageAttachmentsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
page_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
page_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_project_data.py
index c5dfffce..082b0435 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_data_relationships_project_data.py
@@ -20,44 +20,48 @@
class PageAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, PageAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PageAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PageAttachmentsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
page_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
page_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_included_item.py
index f4d64e3e..7e451178 100644
--- a/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/page_attachments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class PageAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response.py
index c0d87a49..659ec888 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response.py
@@ -29,7 +29,8 @@ class PagesSingleGetResponse:
Attributes:
data (Union[Unset, PagesSingleGetResponseData]):
included (Union[Unset, List['PagesSingleGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, PagesSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data.py
index fd2e0d70..d1ef4ffc 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data.py
@@ -38,8 +38,8 @@ class PagesSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, PagesSingleGetResponseDataAttributes]):
relationships (Union[Unset, PagesSingleGetResponseDataRelationships]):
- meta (Union[Unset, PagesSingleGetResponseDataMeta]):
links (Union[Unset, PagesSingleGetResponseDataLinks]):
+ meta (Union[Unset, PagesSingleGetResponseDataMeta]):
"""
type: Union[Unset, PagesSingleGetResponseDataType] = UNSET
@@ -49,8 +49,8 @@ class PagesSingleGetResponseData:
relationships: Union[Unset, "PagesSingleGetResponseDataRelationships"] = (
UNSET
)
- meta: Union[Unset, "PagesSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "PagesSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "PagesSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -145,13 +145,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, PagesSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = PagesSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, PagesSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -159,14 +152,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = PagesSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, PagesSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = PagesSingleGetResponseDataMeta.from_dict(_meta)
+
pages_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
pages_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item.py
index 4ca5058f..a03fb68c 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class PagesSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, PagesSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[Unset, "PagesSingleGetResponseDataMetaErrorsItemSource"] = (
UNSET
)
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -85,11 +81,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
pages_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
pages_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item_source.py
index 41675a9c..2464d67c 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class PagesSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, PagesSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "PagesSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class PagesSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, PagesSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
pages_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_attachments_data_item.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_attachments_data_item.py
index 977c68b8..bb8fa1c7 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_attachments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_attachments_data_item.py
@@ -20,44 +20,48 @@
class PagesSingleGetResponseDataRelationshipsAttachmentsDataItem:
"""
Attributes:
- type (Union[Unset, PagesSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyRichPageId/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PagesSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsAttachmentsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
pages_single_get_response_data_relationships_attachments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
pages_single_get_response_data_relationships_attachments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_author_data.py
index cb4c91e3..6f1911a7 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class PagesSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, PagesSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PagesSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsAuthorDataType
@@ -65,14 +69,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = PagesSingleGetResponseDataRelationshipsAuthorDataType(_type)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
pages_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
pages_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_project_data.py
index a7766082..b5b0331b 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_project_data.py
@@ -18,44 +18,48 @@
class PagesSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, PagesSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PagesSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsProjectDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
pages_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
pages_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_updated_by_data.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_updated_by_data.py
index 69cb2951..2fd60473 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_updated_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_data_relationships_updated_by_data.py
@@ -18,44 +18,48 @@
class PagesSingleGetResponseDataRelationshipsUpdatedByData:
"""
Attributes:
- type (Union[Unset, PagesSingleGetResponseDataRelationshipsUpdatedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PagesSingleGetResponseDataRelationshipsUpdatedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsUpdatedByDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PagesSingleGetResponseDataRelationshipsUpdatedByDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
pages_single_get_response_data_relationships_updated_by_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
pages_single_get_response_data_relationships_updated_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_included_item.py
index 3e96c3c8..97ee2c9f 100644
--- a/polarion_rest_api_client/open_api_client/models/pages_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/pages_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class PagesSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/pagination.py b/polarion_rest_api_client/open_api_client/models/pagination.py
index 0878212b..b4eed49b 100644
--- a/polarion_rest_api_client/open_api_client/models/pagination.py
+++ b/polarion_rest_api_client/open_api_client/models/pagination.py
@@ -15,50 +15,50 @@
class Pagination:
"""
Attributes:
- page_size (Union[Unset, int]):
- page_number (Union[Unset, int]):
calculated_offset (Union[Unset, int]):
+ page_number (Union[Unset, int]):
+ page_size (Union[Unset, int]):
"""
- page_size: Union[Unset, int] = UNSET
- page_number: Union[Unset, int] = UNSET
calculated_offset: Union[Unset, int] = UNSET
+ page_number: Union[Unset, int] = UNSET
+ page_size: Union[Unset, int] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- page_size = self.page_size
+ calculated_offset = self.calculated_offset
page_number = self.page_number
- calculated_offset = self.calculated_offset
+ page_size = self.page_size
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if page_size is not UNSET:
- field_dict["pageSize"] = page_size
- if page_number is not UNSET:
- field_dict["pageNumber"] = page_number
if calculated_offset is not UNSET:
field_dict["calculatedOffset"] = calculated_offset
+ if page_number is not UNSET:
+ field_dict["pageNumber"] = page_number
+ if page_size is not UNSET:
+ field_dict["pageSize"] = page_size
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- page_size = d.pop("pageSize", UNSET)
+ calculated_offset = d.pop("calculatedOffset", UNSET)
page_number = d.pop("pageNumber", UNSET)
- calculated_offset = d.pop("calculatedOffset", UNSET)
+ page_size = d.pop("pageSize", UNSET)
pagination_obj = cls(
- page_size=page_size,
- page_number=page_number,
calculated_offset=calculated_offset,
+ page_number=page_number,
+ page_size=page_size,
)
pagination_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/patch_test_record_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/patch_test_record_attachments_request_body.py
new file mode 100644
index 00000000..a91112f3
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/patch_test_record_attachments_request_body.py
@@ -0,0 +1,125 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+import json
+from io import BytesIO
+from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, File, FileJsonType, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecord_attachments_single_patch_request import (
+ TestrecordAttachmentsSinglePatchRequest,
+ )
+
+
+T = TypeVar("T", bound="PatchTestRecordAttachmentsRequestBody")
+
+
+@_attrs_define
+class PatchTestRecordAttachmentsRequestBody:
+ """
+ Attributes:
+ resource (TestrecordAttachmentsSinglePatchRequest):
+ content (Union[Unset, File]): attachments content
+ """
+
+ resource: "TestrecordAttachmentsSinglePatchRequest"
+ content: Union[Unset, File] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ resource = self.resource.to_dict()
+
+ content: Union[Unset, FileJsonType] = UNSET
+ if not isinstance(self.content, Unset):
+ content = self.content.to_tuple()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update(
+ {
+ "resource": resource,
+ }
+ )
+ if content is not UNSET:
+ field_dict["content"] = content
+
+ return field_dict
+
+ def to_multipart(self) -> List[Tuple[str, Any]]:
+ field_list: List[Tuple[str, Any]] = []
+ resource = (
+ None,
+ json.dumps(self.resource.to_dict()).encode(),
+ "text/plain",
+ )
+
+ field_list.append(("resource", resource))
+ content: Union[Unset, FileJsonType] = UNSET
+ if not isinstance(self.content, Unset):
+ content = self.content.to_tuple()
+
+ if content is not UNSET:
+ field_list.append(("content", content))
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(
+ {
+ key: (None, str(value).encode(), "text/plain")
+ for key, value in self.additional_properties.items()
+ }
+ )
+
+ field_list += list(field_dict.items())
+
+ return field_list
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecord_attachments_single_patch_request import (
+ TestrecordAttachmentsSinglePatchRequest,
+ )
+
+ d = src_dict.copy()
+ resource = TestrecordAttachmentsSinglePatchRequest.from_dict(
+ d.pop("resource")
+ )
+
+ _content = d.pop("content", UNSET)
+ content: Union[Unset, File]
+ if isinstance(_content, Unset):
+ content = UNSET
+ else:
+ content = File(payload=BytesIO(_content))
+
+ patch_test_record_attachments_request_body_obj = cls(
+ resource=resource,
+ content=content,
+ )
+
+ patch_test_record_attachments_request_body_obj.additional_properties = (
+ d
+ )
+ return patch_test_record_attachments_request_body_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/patch_test_step_result_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/patch_test_step_result_attachments_request_body.py
new file mode 100644
index 00000000..cb744742
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/patch_test_step_result_attachments_request_body.py
@@ -0,0 +1,125 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+import json
+from io import BytesIO
+from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, File, FileJsonType, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststepresult_attachments_single_patch_request import (
+ TeststepresultAttachmentsSinglePatchRequest,
+ )
+
+
+T = TypeVar("T", bound="PatchTestStepResultAttachmentsRequestBody")
+
+
+@_attrs_define
+class PatchTestStepResultAttachmentsRequestBody:
+ """
+ Attributes:
+ resource (TeststepresultAttachmentsSinglePatchRequest):
+ content (Union[Unset, File]): attachments content
+ """
+
+ resource: "TeststepresultAttachmentsSinglePatchRequest"
+ content: Union[Unset, File] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ resource = self.resource.to_dict()
+
+ content: Union[Unset, FileJsonType] = UNSET
+ if not isinstance(self.content, Unset):
+ content = self.content.to_tuple()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update(
+ {
+ "resource": resource,
+ }
+ )
+ if content is not UNSET:
+ field_dict["content"] = content
+
+ return field_dict
+
+ def to_multipart(self) -> List[Tuple[str, Any]]:
+ field_list: List[Tuple[str, Any]] = []
+ resource = (
+ None,
+ json.dumps(self.resource.to_dict()).encode(),
+ "text/plain",
+ )
+
+ field_list.append(("resource", resource))
+ content: Union[Unset, FileJsonType] = UNSET
+ if not isinstance(self.content, Unset):
+ content = self.content.to_tuple()
+
+ if content is not UNSET:
+ field_list.append(("content", content))
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(
+ {
+ key: (None, str(value).encode(), "text/plain")
+ for key, value in self.additional_properties.items()
+ }
+ )
+
+ field_list += list(field_dict.items())
+
+ return field_list
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststepresult_attachments_single_patch_request import (
+ TeststepresultAttachmentsSinglePatchRequest,
+ )
+
+ d = src_dict.copy()
+ resource = TeststepresultAttachmentsSinglePatchRequest.from_dict(
+ d.pop("resource")
+ )
+
+ _content = d.pop("content", UNSET)
+ content: Union[Unset, File]
+ if isinstance(_content, Unset):
+ content = UNSET
+ else:
+ content = File(payload=BytesIO(_content))
+
+ patch_test_step_result_attachments_request_body_obj = cls(
+ resource=resource,
+ content=content,
+ )
+
+ patch_test_step_result_attachments_request_body_obj.additional_properties = (
+ d
+ )
+ return patch_test_step_result_attachments_request_body_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response.py
index 61268c92..8351bc0e 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response.py
@@ -28,27 +28,24 @@
class PlansListGetResponse:
"""
Attributes:
- meta (Union[Unset, PlansListGetResponseMeta]):
data (Union[Unset, List['PlansListGetResponseDataItem']]):
included (Union[Unset, List['PlansListGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, PlansListGetResponseLinks]):
+ meta (Union[Unset, PlansListGetResponseMeta]):
"""
- meta: Union[Unset, "PlansListGetResponseMeta"] = UNSET
data: Union[Unset, List["PlansListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["PlansListGetResponseIncludedItem"]] = UNSET
links: Union[Unset, "PlansListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "PlansListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -67,17 +64,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -97,13 +98,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, PlansListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = PlansListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -127,11 +121,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = PlansListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, PlansListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = PlansListGetResponseMeta.from_dict(_meta)
+
plans_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
plans_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item.py
index f0f8f6c6..7e791ace 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class PlansListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, PlansListGetResponseDataItemAttributes]):
relationships (Union[Unset, PlansListGetResponseDataItemRelationships]):
- meta (Union[Unset, PlansListGetResponseDataItemMeta]):
links (Union[Unset, PlansListGetResponseDataItemLinks]):
+ meta (Union[Unset, PlansListGetResponseDataItemMeta]):
"""
type: Union[Unset, PlansListGetResponseDataItemType] = UNSET
@@ -49,8 +49,8 @@ class PlansListGetResponseDataItem:
relationships: Union[
Unset, "PlansListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "PlansListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "PlansListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "PlansListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -147,13 +147,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, PlansListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = PlansListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, PlansListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -161,14 +154,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = PlansListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, PlansListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = PlansListGetResponseDataItemMeta.from_dict(_meta)
+
plans_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
plans_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_links.py
index 6ed5e051..1b256ff5 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class PlansListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans/MyPlanId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/plan?id=MyPlanId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans/MyPlanId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
plans_list_get_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
plans_list_get_response_data_item_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item.py
index 90c54b86..319db741 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class PlansListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, PlansListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "PlansListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
plans_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
plans_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item_source.py
index ce0a481c..2a05939a 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class PlansListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, PlansListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "PlansListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class PlansListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, PlansListGetResponseDataItemMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
plans_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_author_data.py
index 587c930f..f7d7979f 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_author_data.py
@@ -18,44 +18,48 @@
class PlansListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsAuthorDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_parent_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_parent_data.py
index 17253264..12cc3bad 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_parent_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_parent_data.py
@@ -18,44 +18,48 @@
class PlansListGetResponseDataItemRelationshipsParentData:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsParentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsParentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsParentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsParentDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_parent_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_list_get_response_data_item_relationships_parent_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_data.py
index 6d8f3222..e152a404 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_data.py
@@ -18,44 +18,48 @@
class PlansListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsProjectDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_span_data_item.py
index 29b6e13f..5b9a1feb 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_project_span_data_item.py
@@ -20,44 +20,48 @@
class PlansListGetResponseDataItemRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsProjectSpanDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_list_get_response_data_item_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_template_data.py
index 5e135d2e..688c940f 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_template_data.py
@@ -18,44 +18,48 @@
class PlansListGetResponseDataItemRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsTemplateDataType
@@ -67,15 +71,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_template_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_work_items_data_item.py
index ce42170b..1ef2aa36 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_data_item_relationships_work_items_data_item.py
@@ -20,44 +20,48 @@
class PlansListGetResponseDataItemRelationshipsWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, PlansListGetResponseDataItemRelationshipsWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansListGetResponseDataItemRelationshipsWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListGetResponseDataItemRelationshipsWorkItemsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_list_get_response_data_item_relationships_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_list_get_response_data_item_relationships_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_included_item.py
index fa206f3d..6c16711f 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class PlansListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_links.py
index 8542f2f6..d3208553 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_get_response_links.py
@@ -15,83 +15,83 @@
class PlansListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=6.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/plans.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
-
portal = self.portal
+ prev = self.prev
+
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
if portal is not UNSET:
field_dict["portal"] = portal
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
-
portal = d.pop("portal", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
+
plans_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
portal=portal,
+ prev=prev,
+ self_=self_,
)
plans_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_parent_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_parent_data.py
index 1264a840..c469b223 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_parent_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_parent_data.py
@@ -18,38 +18,40 @@
class PlansListPostRequestDataItemRelationshipsParentData:
"""
Attributes:
- type (Union[Unset, PlansListPostRequestDataItemRelationshipsParentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
+ type (Union[Unset, PlansListPostRequestDataItemRelationshipsParentDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsParentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsParentDataType
@@ -61,11 +63,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
plans_list_post_request_data_item_relationships_parent_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_list_post_request_data_item_relationships_parent_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_project_span_data_item.py
index 067f1e8d..998f4455 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_project_span_data_item.py
@@ -20,38 +20,40 @@
class PlansListPostRequestDataItemRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, PlansListPostRequestDataItemRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, PlansListPostRequestDataItemRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsProjectSpanDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
plans_list_post_request_data_item_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_list_post_request_data_item_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_template_data.py
index c3c114a2..d3fa9b4a 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_template_data.py
@@ -18,38 +18,40 @@
class PlansListPostRequestDataItemRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, PlansListPostRequestDataItemRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
+ type (Union[Unset, PlansListPostRequestDataItemRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsTemplateDataType
@@ -61,12 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
plans_list_post_request_data_item_relationships_template_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_work_items_data_item.py
index 1de7c854..fa316c18 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_post_request_data_item_relationships_work_items_data_item.py
@@ -20,38 +20,40 @@
class PlansListPostRequestDataItemRelationshipsWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, PlansListPostRequestDataItemRelationshipsWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, PlansListPostRequestDataItemRelationshipsWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansListPostRequestDataItemRelationshipsWorkItemsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
plans_list_post_request_data_item_relationships_work_items_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_list_post_request_data_item_relationships_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/plans_list_post_response_data_item_links.py
index cf546691..4840eef5 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class PlansListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans/MyPlanId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/plan?id=MyPlanId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans/MyPlanId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
plans_list_post_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
plans_list_post_response_data_item_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response.py
index 643ccac9..690420b5 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response.py
@@ -29,7 +29,8 @@ class PlansSingleGetResponse:
Attributes:
data (Union[Unset, PlansSingleGetResponseData]):
included (Union[Unset, List['PlansSingleGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, PlansSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data.py
index 35e406c4..f803f1c8 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data.py
@@ -38,8 +38,8 @@ class PlansSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, PlansSingleGetResponseDataAttributes]):
relationships (Union[Unset, PlansSingleGetResponseDataRelationships]):
- meta (Union[Unset, PlansSingleGetResponseDataMeta]):
links (Union[Unset, PlansSingleGetResponseDataLinks]):
+ meta (Union[Unset, PlansSingleGetResponseDataMeta]):
"""
type: Union[Unset, PlansSingleGetResponseDataType] = UNSET
@@ -49,8 +49,8 @@ class PlansSingleGetResponseData:
relationships: Union[Unset, "PlansSingleGetResponseDataRelationships"] = (
UNSET
)
- meta: Union[Unset, "PlansSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "PlansSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "PlansSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -145,13 +145,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, PlansSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = PlansSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, PlansSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -159,14 +152,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = PlansSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, PlansSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = PlansSingleGetResponseDataMeta.from_dict(_meta)
+
plans_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
plans_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_links.py
index f9635888..b8c685b0 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class PlansSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/plans/MyPlanId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/plan?id=MyPlanId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/plans/MyPlanId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
plans_single_get_response_data_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
plans_single_get_response_data_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item.py
index 7c5383cb..0bd61a7b 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class PlansSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, PlansSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[Unset, "PlansSingleGetResponseDataMetaErrorsItemSource"] = (
UNSET
)
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -85,11 +81,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
plans_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
plans_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item_source.py
index dac469c3..080ced4e 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class PlansSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, PlansSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "PlansSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class PlansSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, PlansSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
plans_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_author_data.py
index 912f76eb..ea06249c 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class PlansSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsAuthorDataType
@@ -65,14 +69,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = PlansSingleGetResponseDataRelationshipsAuthorDataType(_type)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_parent_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_parent_data.py
index 414a6820..95a24fec 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_parent_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_parent_data.py
@@ -18,44 +18,48 @@
class PlansSingleGetResponseDataRelationshipsParentData:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsParentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsParentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsParentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsParentDataType
@@ -65,14 +69,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = PlansSingleGetResponseDataRelationshipsParentDataType(_type)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_parent_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_parent_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_data.py
index 9a9c7017..3c1a0eeb 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_data.py
@@ -18,44 +18,48 @@
class PlansSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsProjectDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_span_data_item.py
index aadc7e23..18aaeddc 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_project_span_data_item.py
@@ -20,44 +20,48 @@
class PlansSingleGetResponseDataRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsProjectSpanDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_template_data.py
index 03b79d6d..3ba7c3bc 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_template_data.py
@@ -18,44 +18,48 @@
class PlansSingleGetResponseDataRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsTemplateDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_template_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_template_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_work_items_data_item.py
index e23cd21d..ead2c139 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_data_relationships_work_items_data_item.py
@@ -20,44 +20,48 @@
class PlansSingleGetResponseDataRelationshipsWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, PlansSingleGetResponseDataRelationshipsWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, PlansSingleGetResponseDataRelationshipsWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsWorkItemsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSingleGetResponseDataRelationshipsWorkItemsDataItemType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
plans_single_get_response_data_relationships_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
plans_single_get_response_data_relationships_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_included_item.py
index 314f73a3..e6fe357a 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class PlansSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_parent_data.py b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_parent_data.py
index d87e824c..8b4a49e6 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_parent_data.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_parent_data.py
@@ -18,38 +18,40 @@
class PlansSinglePatchRequestDataRelationshipsParentData:
"""
Attributes:
- type (Union[Unset, PlansSinglePatchRequestDataRelationshipsParentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
+ type (Union[Unset, PlansSinglePatchRequestDataRelationshipsParentDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSinglePatchRequestDataRelationshipsParentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, PlansSinglePatchRequestDataRelationshipsParentDataType
@@ -61,11 +63,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
plans_single_patch_request_data_relationships_parent_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_single_patch_request_data_relationships_parent_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_project_span_data_item.py
index 97ef720d..3239e785 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_project_span_data_item.py
@@ -20,38 +20,40 @@
class PlansSinglePatchRequestDataRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, PlansSinglePatchRequestDataRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, PlansSinglePatchRequestDataRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSinglePatchRequestDataRelationshipsProjectSpanDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
plans_single_patch_request_data_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_single_patch_request_data_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_work_items_data_item.py
index f3cdcfae..b2d2b5d2 100644
--- a/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/plans_single_patch_request_data_relationships_work_items_data_item.py
@@ -20,38 +20,40 @@
class PlansSinglePatchRequestDataRelationshipsWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, PlansSinglePatchRequestDataRelationshipsWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, PlansSinglePatchRequestDataRelationshipsWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, PlansSinglePatchRequestDataRelationshipsWorkItemsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
plans_single_patch_request_data_relationships_work_items_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
plans_single_patch_request_data_relationships_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/post_document_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_document_attachments_request_body.py
index c2ca5694..3db184f8 100644
--- a/polarion_rest_api_client/open_api_client/models/post_document_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_document_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostDocumentAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, DocumentAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, DocumentAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "DocumentAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "DocumentAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,13 +93,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _resource = d.pop("resource", UNSET)
- resource: Union[Unset, DocumentAttachmentsListPostRequest]
- if isinstance(_resource, Unset):
- resource = UNSET
- else:
- resource = DocumentAttachmentsListPostRequest.from_dict(_resource)
-
files = []
_files = d.pop("files", UNSET)
for files_item_data in _files or []:
@@ -106,9 +100,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
files.append(files_item)
+ _resource = d.pop("resource", UNSET)
+ resource: Union[Unset, DocumentAttachmentsListPostRequest]
+ if isinstance(_resource, Unset):
+ resource = UNSET
+ else:
+ resource = DocumentAttachmentsListPostRequest.from_dict(_resource)
+
post_document_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_document_attachments_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/post_icons_request_body.py b/polarion_rest_api_client/open_api_client/models/post_icons_request_body.py
index 430c53c5..97d77537 100644
--- a/polarion_rest_api_client/open_api_client/models/post_icons_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_icons_request_body.py
@@ -21,21 +21,17 @@
class PostIconsRequestBody:
"""
Attributes:
- resource (Union[Unset, IconsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, IconsListPostRequest]):
"""
- resource: Union[Unset, "IconsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "IconsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -44,18 +40,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -66,10 +71,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -88,13 +89,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
from ..models.icons_list_post_request import IconsListPostRequest
d = src_dict.copy()
- _resource = d.pop("resource", UNSET)
- resource: Union[Unset, IconsListPostRequest]
- if isinstance(_resource, Unset):
- resource = UNSET
- else:
- resource = IconsListPostRequest.from_dict(_resource)
-
files = []
_files = d.pop("files", UNSET)
for files_item_data in _files or []:
@@ -102,9 +96,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
files.append(files_item)
+ _resource = d.pop("resource", UNSET)
+ resource: Union[Unset, IconsListPostRequest]
+ if isinstance(_resource, Unset):
+ resource = UNSET
+ else:
+ resource = IconsListPostRequest.from_dict(_resource)
+
post_icons_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_icons_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/post_page_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_page_attachments_request_body.py
index 515a3cee..f078ee08 100644
--- a/polarion_rest_api_client/open_api_client/models/post_page_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_page_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostPageAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, PageAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, PageAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "PageAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "PageAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,13 +93,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _resource = d.pop("resource", UNSET)
- resource: Union[Unset, PageAttachmentsListPostRequest]
- if isinstance(_resource, Unset):
- resource = UNSET
- else:
- resource = PageAttachmentsListPostRequest.from_dict(_resource)
-
files = []
_files = d.pop("files", UNSET)
for files_item_data in _files or []:
@@ -106,9 +100,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
files.append(files_item)
+ _resource = d.pop("resource", UNSET)
+ resource: Union[Unset, PageAttachmentsListPostRequest]
+ if isinstance(_resource, Unset):
+ resource = UNSET
+ else:
+ resource = PageAttachmentsListPostRequest.from_dict(_resource)
+
post_page_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_page_attachments_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/post_test_record_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_test_record_attachments_request_body.py
index 5db8cebc..3552f965 100644
--- a/polarion_rest_api_client/open_api_client/models/post_test_record_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_test_record_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostTestRecordAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, TestrecordAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, TestrecordAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "TestrecordAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "TestrecordAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,6 +93,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
+ files = []
+ _files = d.pop("files", UNSET)
+ for files_item_data in _files or []:
+ files_item = File(payload=BytesIO(files_item_data))
+
+ files.append(files_item)
+
_resource = d.pop("resource", UNSET)
resource: Union[Unset, TestrecordAttachmentsListPostRequest]
if isinstance(_resource, Unset):
@@ -101,16 +109,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_resource
)
- files = []
- _files = d.pop("files", UNSET)
- for files_item_data in _files or []:
- files_item = File(payload=BytesIO(files_item_data))
-
- files.append(files_item)
-
post_test_record_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_test_record_attachments_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/post_test_run_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_test_run_attachments_request_body.py
index d0e0ab46..13a4eccc 100644
--- a/polarion_rest_api_client/open_api_client/models/post_test_run_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_test_run_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostTestRunAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, TestrunAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, TestrunAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "TestrunAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "TestrunAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,13 +93,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _resource = d.pop("resource", UNSET)
- resource: Union[Unset, TestrunAttachmentsListPostRequest]
- if isinstance(_resource, Unset):
- resource = UNSET
- else:
- resource = TestrunAttachmentsListPostRequest.from_dict(_resource)
-
files = []
_files = d.pop("files", UNSET)
for files_item_data in _files or []:
@@ -106,9 +100,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
files.append(files_item)
+ _resource = d.pop("resource", UNSET)
+ resource: Union[Unset, TestrunAttachmentsListPostRequest]
+ if isinstance(_resource, Unset):
+ resource = UNSET
+ else:
+ resource = TestrunAttachmentsListPostRequest.from_dict(_resource)
+
post_test_run_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_test_run_attachments_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/post_test_step_result_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_test_step_result_attachments_request_body.py
index 3a3fa166..6e24e235 100644
--- a/polarion_rest_api_client/open_api_client/models/post_test_step_result_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_test_step_result_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostTestStepResultAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, TeststepresultAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, TeststepresultAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "TeststepresultAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "TeststepresultAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,6 +93,13 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
+ files = []
+ _files = d.pop("files", UNSET)
+ for files_item_data in _files or []:
+ files_item = File(payload=BytesIO(files_item_data))
+
+ files.append(files_item)
+
_resource = d.pop("resource", UNSET)
resource: Union[Unset, TeststepresultAttachmentsListPostRequest]
if isinstance(_resource, Unset):
@@ -101,16 +109,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_resource
)
- files = []
- _files = d.pop("files", UNSET)
- for files_item_data in _files or []:
- files_item = File(payload=BytesIO(files_item_data))
-
- files.append(files_item)
-
post_test_step_result_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_test_step_result_attachments_request_body_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/post_work_item_attachments_request_body.py b/polarion_rest_api_client/open_api_client/models/post_work_item_attachments_request_body.py
index ec53642a..af233866 100644
--- a/polarion_rest_api_client/open_api_client/models/post_work_item_attachments_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/post_work_item_attachments_request_body.py
@@ -23,21 +23,17 @@
class PostWorkItemAttachmentsRequestBody:
"""
Attributes:
- resource (Union[Unset, WorkitemAttachmentsListPostRequest]):
files (Union[Unset, List[File]]):
+ resource (Union[Unset, WorkitemAttachmentsListPostRequest]):
"""
- resource: Union[Unset, "WorkitemAttachmentsListPostRequest"] = UNSET
files: Union[Unset, List[File]] = UNSET
+ resource: Union[Unset, "WorkitemAttachmentsListPostRequest"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- resource: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.resource, Unset):
- resource = self.resource.to_dict()
-
files: Union[Unset, List[FileJsonType]] = UNSET
if not isinstance(self.files, Unset):
files = []
@@ -46,18 +42,27 @@ def to_dict(self) -> Dict[str, Any]:
files.append(files_item)
+ resource: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.resource, Unset):
+ resource = self.resource.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if resource is not UNSET:
- field_dict["resource"] = resource
if files is not UNSET:
field_dict["files"] = files
+ if resource is not UNSET:
+ field_dict["resource"] = resource
return field_dict
def to_multipart(self) -> List[Tuple[str, Any]]:
field_list: List[Tuple[str, Any]] = []
+ for cont in self.files or []:
+ files_item = cont.to_tuple()
+
+ field_list.append(("files", files_item))
+
resource: Union[Unset, Tuple[None, bytes, str]] = UNSET
if not isinstance(self.resource, Unset):
resource = (
@@ -68,10 +73,6 @@ def to_multipart(self) -> List[Tuple[str, Any]]:
if resource is not UNSET:
field_list.append(("resource", resource))
- for cont in self.files or []:
- files_item = cont.to_tuple()
-
- field_list.append(("files", files_item))
field_dict: Dict[str, Any] = {}
field_dict.update(
@@ -92,13 +93,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _resource = d.pop("resource", UNSET)
- resource: Union[Unset, WorkitemAttachmentsListPostRequest]
- if isinstance(_resource, Unset):
- resource = UNSET
- else:
- resource = WorkitemAttachmentsListPostRequest.from_dict(_resource)
-
files = []
_files = d.pop("files", UNSET)
for files_item_data in _files or []:
@@ -106,9 +100,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
files.append(files_item)
+ _resource = d.pop("resource", UNSET)
+ resource: Union[Unset, WorkitemAttachmentsListPostRequest]
+ if isinstance(_resource, Unset):
+ resource = UNSET
+ else:
+ resource = WorkitemAttachmentsListPostRequest.from_dict(_resource)
+
post_work_item_attachments_request_body_obj = cls(
- resource=resource,
files=files,
+ resource=resource,
)
post_work_item_attachments_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response.py
index bd600bff..9cffadbe 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response.py
@@ -30,27 +30,24 @@
class ProjectsListGetResponse:
"""
Attributes:
- meta (Union[Unset, ProjectsListGetResponseMeta]):
data (Union[Unset, List['ProjectsListGetResponseDataItem']]):
included (Union[Unset, List['ProjectsListGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, ProjectsListGetResponseLinks]):
+ meta (Union[Unset, ProjectsListGetResponseMeta]):
"""
- meta: Union[Unset, "ProjectsListGetResponseMeta"] = UNSET
data: Union[Unset, List["ProjectsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["ProjectsListGetResponseIncludedItem"]] = UNSET
links: Union[Unset, "ProjectsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "ProjectsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -69,17 +66,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -99,13 +100,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ProjectsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ProjectsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -131,11 +125,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = ProjectsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ProjectsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ProjectsListGetResponseMeta.from_dict(_meta)
+
projects_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
projects_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item.py
index 195f4ce9..3945245e 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class ProjectsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, ProjectsListGetResponseDataItemAttributes]):
relationships (Union[Unset, ProjectsListGetResponseDataItemRelationships]):
- meta (Union[Unset, ProjectsListGetResponseDataItemMeta]):
links (Union[Unset, ProjectsListGetResponseDataItemLinks]):
+ meta (Union[Unset, ProjectsListGetResponseDataItemMeta]):
"""
type: Union[Unset, ProjectsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class ProjectsListGetResponseDataItem:
relationships: Union[
Unset, "ProjectsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "ProjectsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "ProjectsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "ProjectsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ProjectsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ProjectsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, ProjectsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = ProjectsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ProjectsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ProjectsListGetResponseDataItemMeta.from_dict(_meta)
+
projects_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
projects_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item.py
index 66dbf156..f7a2cab3 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class ProjectsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, ProjectsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "ProjectsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
projects_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
projects_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item_source.py
index ef09ea30..6f2393cf 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class ProjectsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, ProjectsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "ProjectsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class ProjectsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, ProjectsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
projects_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_relationships_lead_data.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_relationships_lead_data.py
index c76900cd..512b6e89 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_relationships_lead_data.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_data_item_relationships_lead_data.py
@@ -18,44 +18,48 @@
class ProjectsListGetResponseDataItemRelationshipsLeadData:
"""
Attributes:
- type (Union[Unset, ProjectsListGetResponseDataItemRelationshipsLeadDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, ProjectsListGetResponseDataItemRelationshipsLeadDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, ProjectsListGetResponseDataItemRelationshipsLeadDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, ProjectsListGetResponseDataItemRelationshipsLeadDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
projects_list_get_response_data_item_relationships_lead_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
projects_list_get_response_data_item_relationships_lead_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_included_item.py
index 9e70643d..fbaf4d9c 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class ProjectsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_links.py
index 7d145b29..afae97ca 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_list_get_response_links.py
@@ -15,73 +15,73 @@
class ProjectsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
projects_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
projects_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response.py
index 1f342380..c0355245 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response.py
@@ -29,8 +29,9 @@ class ProjectsSingleGetResponse:
Attributes:
data (Union[Unset, ProjectsSingleGetResponseData]):
included (Union[Unset, List['ProjectsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, ProjectsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data.py
index 6940f50e..3b1018be 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data.py
@@ -38,8 +38,8 @@ class ProjectsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, ProjectsSingleGetResponseDataAttributes]):
relationships (Union[Unset, ProjectsSingleGetResponseDataRelationships]):
- meta (Union[Unset, ProjectsSingleGetResponseDataMeta]):
links (Union[Unset, ProjectsSingleGetResponseDataLinks]):
+ meta (Union[Unset, ProjectsSingleGetResponseDataMeta]):
"""
type: Union[Unset, ProjectsSingleGetResponseDataType] = UNSET
@@ -49,8 +49,8 @@ class ProjectsSingleGetResponseData:
relationships: Union[
Unset, "ProjectsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "ProjectsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "ProjectsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "ProjectsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -147,13 +147,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ProjectsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ProjectsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, ProjectsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -161,14 +154,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = ProjectsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ProjectsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ProjectsSingleGetResponseDataMeta.from_dict(_meta)
+
projects_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
projects_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item.py
index 4202cbca..857134c3 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class ProjectsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, ProjectsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "ProjectsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
projects_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
projects_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item_source.py
index f0f19290..21873320 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class ProjectsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, ProjectsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "ProjectsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class ProjectsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, ProjectsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
projects_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_relationships_lead_data.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_relationships_lead_data.py
index 7bf941dd..bb52bf81 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_relationships_lead_data.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_data_relationships_lead_data.py
@@ -18,44 +18,48 @@
class ProjectsSingleGetResponseDataRelationshipsLeadData:
"""
Attributes:
- type (Union[Unset, ProjectsSingleGetResponseDataRelationshipsLeadDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, ProjectsSingleGetResponseDataRelationshipsLeadDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, ProjectsSingleGetResponseDataRelationshipsLeadDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, ProjectsSingleGetResponseDataRelationshipsLeadDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
projects_single_get_response_data_relationships_lead_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
projects_single_get_response_data_relationships_lead_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_included_item.py
index 592440c3..4ad6bef1 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class ProjectsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/projects_single_patch_request_data_relationships_lead_data.py b/polarion_rest_api_client/open_api_client/models/projects_single_patch_request_data_relationships_lead_data.py
index 073b20c5..90f23e5d 100644
--- a/polarion_rest_api_client/open_api_client/models/projects_single_patch_request_data_relationships_lead_data.py
+++ b/polarion_rest_api_client/open_api_client/models/projects_single_patch_request_data_relationships_lead_data.py
@@ -18,38 +18,40 @@
class ProjectsSinglePatchRequestDataRelationshipsLeadData:
"""
Attributes:
- type (Union[Unset, ProjectsSinglePatchRequestDataRelationshipsLeadDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, ProjectsSinglePatchRequestDataRelationshipsLeadDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, ProjectsSinglePatchRequestDataRelationshipsLeadDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, ProjectsSinglePatchRequestDataRelationshipsLeadDataType
@@ -61,11 +63,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
projects_single_patch_request_data_relationships_lead_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
projects_single_patch_request_data_relationships_lead_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response.py
index d1f8c550..364e5a97 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response.py
@@ -30,29 +30,26 @@
class ProjecttemplatesListGetResponse:
"""
Attributes:
- meta (Union[Unset, ProjecttemplatesListGetResponseMeta]):
data (Union[Unset, List['ProjecttemplatesListGetResponseDataItem']]):
included (Union[Unset, List['ProjecttemplatesListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, ProjecttemplatesListGetResponseLinks]):
+ meta (Union[Unset, ProjecttemplatesListGetResponseMeta]):
"""
- meta: Union[Unset, "ProjecttemplatesListGetResponseMeta"] = UNSET
data: Union[Unset, List["ProjecttemplatesListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["ProjecttemplatesListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "ProjecttemplatesListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "ProjecttemplatesListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ProjecttemplatesListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ProjecttemplatesListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = ProjecttemplatesListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ProjecttemplatesListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ProjecttemplatesListGetResponseMeta.from_dict(_meta)
+
projecttemplates_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
projecttemplates_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item.py
index 8c1dc89d..1cb2b1c7 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item.py
@@ -34,8 +34,8 @@ class ProjecttemplatesListGetResponseDataItem:
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, ProjecttemplatesListGetResponseDataItemAttributes]):
- meta (Union[Unset, ProjecttemplatesListGetResponseDataItemMeta]):
links (Union[Unset, ProjecttemplatesListGetResponseDataItemLinks]):
+ meta (Union[Unset, ProjecttemplatesListGetResponseDataItemMeta]):
"""
type: Union[Unset, ProjecttemplatesListGetResponseDataItemType] = UNSET
@@ -44,8 +44,8 @@ class ProjecttemplatesListGetResponseDataItem:
attributes: Union[
Unset, "ProjecttemplatesListGetResponseDataItemAttributes"
] = UNSET
- meta: Union[Unset, "ProjecttemplatesListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "ProjecttemplatesListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "ProjecttemplatesListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -63,14 +63,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -82,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -126,13 +126,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, ProjecttemplatesListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = ProjecttemplatesListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, ProjecttemplatesListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -142,13 +135,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, ProjecttemplatesListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = ProjecttemplatesListGetResponseDataItemMeta.from_dict(_meta)
+
projecttemplates_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
projecttemplates_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_attributes_parameters.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_attributes_parameters.py
index 62190cbc..9ded6597 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_attributes_parameters.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_attributes_parameters.py
@@ -22,7 +22,6 @@ class ProjecttemplatesListGetResponseDataItemAttributesParameters:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item.py
index 7df7f31a..81d9b621 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class ProjecttemplatesListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, ProjecttemplatesListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "ProjecttemplatesListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
projecttemplates_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item_source.py
index a944615a..a42df86e 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class ProjecttemplatesListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, ProjecttemplatesListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"ProjecttemplatesListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class ProjecttemplatesListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
projecttemplates_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_included_item.py
index 9434e982..8f00f3ee 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class ProjecttemplatesListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_links.py
index 6d60ebf4..9b1b010c 100644
--- a/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/projecttemplates_list_get_response_links.py
@@ -15,73 +15,73 @@
class ProjecttemplatesListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projecttemplates?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
projecttemplates_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
projecttemplates_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/relationship_data_body.py b/polarion_rest_api_client/open_api_client/models/relationship_data_body.py
index 9890b29c..a9afd71f 100644
--- a/polarion_rest_api_client/open_api_client/models/relationship_data_body.py
+++ b/polarion_rest_api_client/open_api_client/models/relationship_data_body.py
@@ -16,36 +16,38 @@
class RelationshipDataBody:
"""
Attributes:
- type (Union[Unset, RelationshipDataBodyType]):
id (Union[Unset, str]): Example: MyProjectId/MyResourceId.
+ type (Union[Unset, RelationshipDataBodyType]):
"""
- type: Union[Unset, RelationshipDataBodyType] = UNSET
id: Union[Unset, str] = UNSET
+ type: Union[Unset, RelationshipDataBodyType] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[Unset, RelationshipDataBodyType]
if isinstance(_type, Unset):
@@ -53,11 +55,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = RelationshipDataBodyType(_type)
- id = d.pop("id", UNSET)
-
relationship_data_body_obj = cls(
- type=type,
id=id,
+ type=type,
)
relationship_data_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response.py
index da67154f..a37e0751 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response.py
@@ -30,29 +30,26 @@
class RevisionsListGetResponse:
"""
Attributes:
- meta (Union[Unset, RevisionsListGetResponseMeta]):
data (Union[Unset, List['RevisionsListGetResponseDataItem']]):
included (Union[Unset, List['RevisionsListGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, RevisionsListGetResponseLinks]):
+ meta (Union[Unset, RevisionsListGetResponseMeta]):
"""
- meta: Union[Unset, "RevisionsListGetResponseMeta"] = UNSET
data: Union[Unset, List["RevisionsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["RevisionsListGetResponseIncludedItem"]] = (
UNSET
)
links: Union[Unset, "RevisionsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "RevisionsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, RevisionsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = RevisionsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = RevisionsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, RevisionsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = RevisionsListGetResponseMeta.from_dict(_meta)
+
revisions_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
revisions_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item.py
index 5fbae966..a1f84029 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class RevisionsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, RevisionsListGetResponseDataItemAttributes]):
relationships (Union[Unset, RevisionsListGetResponseDataItemRelationships]):
- meta (Union[Unset, RevisionsListGetResponseDataItemMeta]):
links (Union[Unset, RevisionsListGetResponseDataItemLinks]):
+ meta (Union[Unset, RevisionsListGetResponseDataItemMeta]):
"""
type: Union[Unset, RevisionsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class RevisionsListGetResponseDataItem:
relationships: Union[
Unset, "RevisionsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "RevisionsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "RevisionsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "RevisionsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, RevisionsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = RevisionsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, RevisionsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = RevisionsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, RevisionsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = RevisionsListGetResponseDataItemMeta.from_dict(_meta)
+
revisions_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
revisions_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item.py
index 034a6ffb..a78e3696 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class RevisionsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, RevisionsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "RevisionsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
revisions_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
revisions_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item_source.py
index 51de9fc0..befe921d 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class RevisionsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, RevisionsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "RevisionsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class RevisionsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, RevisionsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -81,8 +81,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
revisions_list_get_response_data_item_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_relationships_author_data.py
index 96406d54..3d911aa4 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_data_item_relationships_author_data.py
@@ -20,44 +20,48 @@
class RevisionsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, RevisionsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, RevisionsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, RevisionsListGetResponseDataItemRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, RevisionsListGetResponseDataItemRelationshipsAuthorDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
revisions_list_get_response_data_item_relationships_author_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_included_item.py
index 09729020..714c4539 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class RevisionsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_links.py
index e778e52b..1c43195c 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_list_get_response_links.py
@@ -15,73 +15,73 @@
class RevisionsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/revisions/default?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
revisions_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
revisions_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response.py
index 2a5633ce..c351634f 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response.py
@@ -29,8 +29,9 @@ class RevisionsSingleGetResponse:
Attributes:
data (Union[Unset, RevisionsSingleGetResponseData]):
included (Union[Unset, List['RevisionsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, RevisionsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data.py
index c09e3718..27e74cca 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data.py
@@ -38,8 +38,8 @@ class RevisionsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, RevisionsSingleGetResponseDataAttributes]):
relationships (Union[Unset, RevisionsSingleGetResponseDataRelationships]):
- meta (Union[Unset, RevisionsSingleGetResponseDataMeta]):
links (Union[Unset, RevisionsSingleGetResponseDataLinks]):
+ meta (Union[Unset, RevisionsSingleGetResponseDataMeta]):
"""
type: Union[Unset, RevisionsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class RevisionsSingleGetResponseData:
relationships: Union[
Unset, "RevisionsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "RevisionsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "RevisionsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "RevisionsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, RevisionsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = RevisionsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, RevisionsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = RevisionsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, RevisionsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = RevisionsSingleGetResponseDataMeta.from_dict(_meta)
+
revisions_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
revisions_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item.py
index 161d0a37..893dabb8 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class RevisionsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, RevisionsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "RevisionsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
revisions_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
revisions_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item_source.py
index 2a3c63c2..4b9d553f 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class RevisionsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, RevisionsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "RevisionsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class RevisionsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, RevisionsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
revisions_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_relationships_author_data.py
index f24701cc..2adcc722 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class RevisionsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, RevisionsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, RevisionsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, RevisionsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, RevisionsSingleGetResponseDataRelationshipsAuthorDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
revisions_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
revisions_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_included_item.py
index ce2e4175..4dcbae64 100644
--- a/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/revisions_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class RevisionsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/set_license_request_body.py b/polarion_rest_api_client/open_api_client/models/set_license_request_body.py
index 82d09a4b..0515b90f 100644
--- a/polarion_rest_api_client/open_api_client/models/set_license_request_body.py
+++ b/polarion_rest_api_client/open_api_client/models/set_license_request_body.py
@@ -18,42 +18,46 @@
class SetLicenseRequestBody:
"""
Attributes:
- license_ (Union[Unset, SetLicenseRequestBodyLicense]): User's license type
- group (Union[Unset, str]): License group Example: Department.
concurrent (Union[Unset, bool]): Is concurrent user Example: True.
+ group (Union[Unset, str]): License group Example: Department.
+ license_ (Union[Unset, SetLicenseRequestBodyLicense]): User's license type
"""
- license_: Union[Unset, SetLicenseRequestBodyLicense] = UNSET
- group: Union[Unset, str] = UNSET
concurrent: Union[Unset, bool] = UNSET
+ group: Union[Unset, str] = UNSET
+ license_: Union[Unset, SetLicenseRequestBodyLicense] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- license_: Union[Unset, str] = UNSET
- if not isinstance(self.license_, Unset):
- license_ = self.license_.value
+ concurrent = self.concurrent
group = self.group
- concurrent = self.concurrent
+ license_: Union[Unset, str] = UNSET
+ if not isinstance(self.license_, Unset):
+ license_ = self.license_.value
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if license_ is not UNSET:
- field_dict["license"] = license_
- if group is not UNSET:
- field_dict["group"] = group
if concurrent is not UNSET:
field_dict["concurrent"] = concurrent
+ if group is not UNSET:
+ field_dict["group"] = group
+ if license_ is not UNSET:
+ field_dict["license"] = license_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ concurrent = d.pop("concurrent", UNSET)
+
+ group = d.pop("group", UNSET)
+
_license_ = d.pop("license", UNSET)
license_: Union[Unset, SetLicenseRequestBodyLicense]
if isinstance(_license_, Unset):
@@ -61,14 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
license_ = SetLicenseRequestBodyLicense(_license_)
- group = d.pop("group", UNSET)
-
- concurrent = d.pop("concurrent", UNSET)
-
set_license_request_body_obj = cls(
- license_=license_,
- group=group,
concurrent=concurrent,
+ group=group,
+ license_=license_,
)
set_license_request_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/sparse_fields.py b/polarion_rest_api_client/open_api_client/models/sparse_fields.py
index cdb0c7d7..817d63a9 100644
--- a/polarion_rest_api_client/open_api_client/models/sparse_fields.py
+++ b/polarion_rest_api_client/open_api_client/models/sparse_fields.py
@@ -16,81 +16,81 @@ class SparseFields:
"""
Attributes:
categories (Union[Unset, str]): Requested fields Example: @all.
- documents (Union[Unset, str]): Requested fields Example: @all.
document_attachments (Union[Unset, str]): Requested fields Example: @all.
document_comments (Union[Unset, str]): Requested fields Example: @all.
document_parts (Union[Unset, str]): Requested fields Example: @all.
+ documents (Union[Unset, str]): Requested fields Example: @all.
enumerations (Union[Unset, str]): Requested fields Example: @all.
+ externallylinkedworkitems (Union[Unset, str]): Requested fields Example: @all.
+ featureselections (Union[Unset, str]): Requested fields Example: @all.
globalroles (Union[Unset, str]): Requested fields Example: @all.
icons (Union[Unset, str]): Requested fields Example: @all.
jobs (Union[Unset, str]): Requested fields Example: @all.
- linkedworkitems (Union[Unset, str]): Requested fields Example: @all.
- externallylinkedworkitems (Union[Unset, str]): Requested fields Example: @all.
linkedoslcresources (Union[Unset, str]): Requested fields Example: @all.
- pages (Union[Unset, str]): Requested fields Example: @all.
+ linkedworkitems (Union[Unset, str]): Requested fields Example: @all.
page_attachments (Union[Unset, str]): Requested fields Example: @all.
+ pages (Union[Unset, str]): Requested fields Example: @all.
plans (Union[Unset, str]): Requested fields Example: @all.
projectroles (Union[Unset, str]): Requested fields Example: @all.
projects (Union[Unset, str]): Requested fields Example: @all.
projecttemplates (Union[Unset, str]): Requested fields Example: @all.
- testparameters (Union[Unset, str]): Requested fields Example: @all.
+ revisions (Union[Unset, str]): Requested fields Example: @all.
testparameter_definitions (Union[Unset, str]): Requested fields Example: @all.
+ testparameters (Union[Unset, str]): Requested fields Example: @all.
+ testrecord_attachments (Union[Unset, str]): Requested fields Example: @all.
testrecords (Union[Unset, str]): Requested fields Example: @all.
- teststep_results (Union[Unset, str]): Requested fields Example: @all.
- testruns (Union[Unset, str]): Requested fields Example: @all.
testrun_attachments (Union[Unset, str]): Requested fields Example: @all.
- teststepresult_attachments (Union[Unset, str]): Requested fields Example: @all.
testrun_comments (Union[Unset, str]): Requested fields Example: @all.
+ testruns (Union[Unset, str]): Requested fields Example: @all.
+ teststep_results (Union[Unset, str]): Requested fields Example: @all.
+ teststepresult_attachments (Union[Unset, str]): Requested fields Example: @all.
+ teststeps (Union[Unset, str]): Requested fields Example: @all.
usergroups (Union[Unset, str]): Requested fields Example: @all.
users (Union[Unset, str]): Requested fields Example: @all.
- workitems (Union[Unset, str]): Requested fields Example: @all.
- workitem_attachments (Union[Unset, str]): Requested fields Example: @all.
workitem_approvals (Union[Unset, str]): Requested fields Example: @all.
+ workitem_attachments (Union[Unset, str]): Requested fields Example: @all.
workitem_comments (Union[Unset, str]): Requested fields Example: @all.
- featureselections (Union[Unset, str]): Requested fields Example: @all.
- teststeps (Union[Unset, str]): Requested fields Example: @all.
+ workitems (Union[Unset, str]): Requested fields Example: @all.
workrecords (Union[Unset, str]): Requested fields Example: @all.
- revisions (Union[Unset, str]): Requested fields Example: @all.
- testrecord_attachments (Union[Unset, str]): Requested fields Example: @all.
"""
categories: Union[Unset, str] = UNSET
- documents: Union[Unset, str] = UNSET
document_attachments: Union[Unset, str] = UNSET
document_comments: Union[Unset, str] = UNSET
document_parts: Union[Unset, str] = UNSET
+ documents: Union[Unset, str] = UNSET
enumerations: Union[Unset, str] = UNSET
+ externallylinkedworkitems: Union[Unset, str] = UNSET
+ featureselections: Union[Unset, str] = UNSET
globalroles: Union[Unset, str] = UNSET
icons: Union[Unset, str] = UNSET
jobs: Union[Unset, str] = UNSET
- linkedworkitems: Union[Unset, str] = UNSET
- externallylinkedworkitems: Union[Unset, str] = UNSET
linkedoslcresources: Union[Unset, str] = UNSET
- pages: Union[Unset, str] = UNSET
+ linkedworkitems: Union[Unset, str] = UNSET
page_attachments: Union[Unset, str] = UNSET
+ pages: Union[Unset, str] = UNSET
plans: Union[Unset, str] = UNSET
projectroles: Union[Unset, str] = UNSET
projects: Union[Unset, str] = UNSET
projecttemplates: Union[Unset, str] = UNSET
- testparameters: Union[Unset, str] = UNSET
+ revisions: Union[Unset, str] = UNSET
testparameter_definitions: Union[Unset, str] = UNSET
+ testparameters: Union[Unset, str] = UNSET
+ testrecord_attachments: Union[Unset, str] = UNSET
testrecords: Union[Unset, str] = UNSET
- teststep_results: Union[Unset, str] = UNSET
- testruns: Union[Unset, str] = UNSET
testrun_attachments: Union[Unset, str] = UNSET
- teststepresult_attachments: Union[Unset, str] = UNSET
testrun_comments: Union[Unset, str] = UNSET
+ testruns: Union[Unset, str] = UNSET
+ teststep_results: Union[Unset, str] = UNSET
+ teststepresult_attachments: Union[Unset, str] = UNSET
+ teststeps: Union[Unset, str] = UNSET
usergroups: Union[Unset, str] = UNSET
users: Union[Unset, str] = UNSET
- workitems: Union[Unset, str] = UNSET
- workitem_attachments: Union[Unset, str] = UNSET
workitem_approvals: Union[Unset, str] = UNSET
+ workitem_attachments: Union[Unset, str] = UNSET
workitem_comments: Union[Unset, str] = UNSET
- featureselections: Union[Unset, str] = UNSET
- teststeps: Union[Unset, str] = UNSET
+ workitems: Union[Unset, str] = UNSET
workrecords: Union[Unset, str] = UNSET
- revisions: Union[Unset, str] = UNSET
- testrecord_attachments: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -98,32 +98,34 @@ class SparseFields:
def to_dict(self) -> Dict[str, Any]:
categories = self.categories
- documents = self.documents
-
document_attachments = self.document_attachments
document_comments = self.document_comments
document_parts = self.document_parts
+ documents = self.documents
+
enumerations = self.enumerations
+ externallylinkedworkitems = self.externallylinkedworkitems
+
+ featureselections = self.featureselections
+
globalroles = self.globalroles
icons = self.icons
jobs = self.jobs
- linkedworkitems = self.linkedworkitems
-
- externallylinkedworkitems = self.externallylinkedworkitems
-
linkedoslcresources = self.linkedoslcresources
- pages = self.pages
+ linkedworkitems = self.linkedworkitems
page_attachments = self.page_attachments
+ pages = self.pages
+
plans = self.plans
projectroles = self.projectroles
@@ -132,75 +134,75 @@ def to_dict(self) -> Dict[str, Any]:
projecttemplates = self.projecttemplates
- testparameters = self.testparameters
+ revisions = self.revisions
testparameter_definitions = self.testparameter_definitions
+ testparameters = self.testparameters
+
+ testrecord_attachments = self.testrecord_attachments
+
testrecords = self.testrecords
- teststep_results = self.teststep_results
+ testrun_attachments = self.testrun_attachments
+
+ testrun_comments = self.testrun_comments
testruns = self.testruns
- testrun_attachments = self.testrun_attachments
+ teststep_results = self.teststep_results
teststepresult_attachments = self.teststepresult_attachments
- testrun_comments = self.testrun_comments
+ teststeps = self.teststeps
usergroups = self.usergroups
users = self.users
- workitems = self.workitems
+ workitem_approvals = self.workitem_approvals
workitem_attachments = self.workitem_attachments
- workitem_approvals = self.workitem_approvals
-
workitem_comments = self.workitem_comments
- featureselections = self.featureselections
-
- teststeps = self.teststeps
+ workitems = self.workitems
workrecords = self.workrecords
- revisions = self.revisions
-
- testrecord_attachments = self.testrecord_attachments
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if categories is not UNSET:
field_dict["categories"] = categories
- if documents is not UNSET:
- field_dict["documents"] = documents
if document_attachments is not UNSET:
field_dict["document_attachments"] = document_attachments
if document_comments is not UNSET:
field_dict["document_comments"] = document_comments
if document_parts is not UNSET:
field_dict["document_parts"] = document_parts
+ if documents is not UNSET:
+ field_dict["documents"] = documents
if enumerations is not UNSET:
field_dict["enumerations"] = enumerations
+ if externallylinkedworkitems is not UNSET:
+ field_dict["externallylinkedworkitems"] = externallylinkedworkitems
+ if featureselections is not UNSET:
+ field_dict["featureselections"] = featureselections
if globalroles is not UNSET:
field_dict["globalroles"] = globalroles
if icons is not UNSET:
field_dict["icons"] = icons
if jobs is not UNSET:
field_dict["jobs"] = jobs
- if linkedworkitems is not UNSET:
- field_dict["linkedworkitems"] = linkedworkitems
- if externallylinkedworkitems is not UNSET:
- field_dict["externallylinkedworkitems"] = externallylinkedworkitems
if linkedoslcresources is not UNSET:
field_dict["linkedoslcresources"] = linkedoslcresources
- if pages is not UNSET:
- field_dict["pages"] = pages
+ if linkedworkitems is not UNSET:
+ field_dict["linkedworkitems"] = linkedworkitems
if page_attachments is not UNSET:
field_dict["page_attachments"] = page_attachments
+ if pages is not UNSET:
+ field_dict["pages"] = pages
if plans is not UNSET:
field_dict["plans"] = plans
if projectroles is not UNSET:
@@ -209,46 +211,44 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["projects"] = projects
if projecttemplates is not UNSET:
field_dict["projecttemplates"] = projecttemplates
- if testparameters is not UNSET:
- field_dict["testparameters"] = testparameters
+ if revisions is not UNSET:
+ field_dict["revisions"] = revisions
if testparameter_definitions is not UNSET:
field_dict["testparameter_definitions"] = testparameter_definitions
+ if testparameters is not UNSET:
+ field_dict["testparameters"] = testparameters
+ if testrecord_attachments is not UNSET:
+ field_dict["testrecord_attachments"] = testrecord_attachments
if testrecords is not UNSET:
field_dict["testrecords"] = testrecords
- if teststep_results is not UNSET:
- field_dict["teststep_results"] = teststep_results
- if testruns is not UNSET:
- field_dict["testruns"] = testruns
if testrun_attachments is not UNSET:
field_dict["testrun_attachments"] = testrun_attachments
+ if testrun_comments is not UNSET:
+ field_dict["testrun_comments"] = testrun_comments
+ if testruns is not UNSET:
+ field_dict["testruns"] = testruns
+ if teststep_results is not UNSET:
+ field_dict["teststep_results"] = teststep_results
if teststepresult_attachments is not UNSET:
field_dict["teststepresult_attachments"] = (
teststepresult_attachments
)
- if testrun_comments is not UNSET:
- field_dict["testrun_comments"] = testrun_comments
+ if teststeps is not UNSET:
+ field_dict["teststeps"] = teststeps
if usergroups is not UNSET:
field_dict["usergroups"] = usergroups
if users is not UNSET:
field_dict["users"] = users
- if workitems is not UNSET:
- field_dict["workitems"] = workitems
- if workitem_attachments is not UNSET:
- field_dict["workitem_attachments"] = workitem_attachments
if workitem_approvals is not UNSET:
field_dict["workitem_approvals"] = workitem_approvals
+ if workitem_attachments is not UNSET:
+ field_dict["workitem_attachments"] = workitem_attachments
if workitem_comments is not UNSET:
field_dict["workitem_comments"] = workitem_comments
- if featureselections is not UNSET:
- field_dict["featureselections"] = featureselections
- if teststeps is not UNSET:
- field_dict["teststeps"] = teststeps
+ if workitems is not UNSET:
+ field_dict["workitems"] = workitems
if workrecords is not UNSET:
field_dict["workrecords"] = workrecords
- if revisions is not UNSET:
- field_dict["revisions"] = revisions
- if testrecord_attachments is not UNSET:
- field_dict["testrecord_attachments"] = testrecord_attachments
return field_dict
@@ -257,32 +257,34 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
categories = d.pop("categories", UNSET)
- documents = d.pop("documents", UNSET)
-
document_attachments = d.pop("document_attachments", UNSET)
document_comments = d.pop("document_comments", UNSET)
document_parts = d.pop("document_parts", UNSET)
+ documents = d.pop("documents", UNSET)
+
enumerations = d.pop("enumerations", UNSET)
+ externallylinkedworkitems = d.pop("externallylinkedworkitems", UNSET)
+
+ featureselections = d.pop("featureselections", UNSET)
+
globalroles = d.pop("globalroles", UNSET)
icons = d.pop("icons", UNSET)
jobs = d.pop("jobs", UNSET)
- linkedworkitems = d.pop("linkedworkitems", UNSET)
-
- externallylinkedworkitems = d.pop("externallylinkedworkitems", UNSET)
-
linkedoslcresources = d.pop("linkedoslcresources", UNSET)
- pages = d.pop("pages", UNSET)
+ linkedworkitems = d.pop("linkedworkitems", UNSET)
page_attachments = d.pop("page_attachments", UNSET)
+ pages = d.pop("pages", UNSET)
+
plans = d.pop("plans", UNSET)
projectroles = d.pop("projectroles", UNSET)
@@ -291,82 +293,80 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
projecttemplates = d.pop("projecttemplates", UNSET)
- testparameters = d.pop("testparameters", UNSET)
+ revisions = d.pop("revisions", UNSET)
testparameter_definitions = d.pop("testparameter_definitions", UNSET)
+ testparameters = d.pop("testparameters", UNSET)
+
+ testrecord_attachments = d.pop("testrecord_attachments", UNSET)
+
testrecords = d.pop("testrecords", UNSET)
- teststep_results = d.pop("teststep_results", UNSET)
+ testrun_attachments = d.pop("testrun_attachments", UNSET)
+
+ testrun_comments = d.pop("testrun_comments", UNSET)
testruns = d.pop("testruns", UNSET)
- testrun_attachments = d.pop("testrun_attachments", UNSET)
+ teststep_results = d.pop("teststep_results", UNSET)
teststepresult_attachments = d.pop("teststepresult_attachments", UNSET)
- testrun_comments = d.pop("testrun_comments", UNSET)
+ teststeps = d.pop("teststeps", UNSET)
usergroups = d.pop("usergroups", UNSET)
users = d.pop("users", UNSET)
- workitems = d.pop("workitems", UNSET)
+ workitem_approvals = d.pop("workitem_approvals", UNSET)
workitem_attachments = d.pop("workitem_attachments", UNSET)
- workitem_approvals = d.pop("workitem_approvals", UNSET)
-
workitem_comments = d.pop("workitem_comments", UNSET)
- featureselections = d.pop("featureselections", UNSET)
-
- teststeps = d.pop("teststeps", UNSET)
+ workitems = d.pop("workitems", UNSET)
workrecords = d.pop("workrecords", UNSET)
- revisions = d.pop("revisions", UNSET)
-
- testrecord_attachments = d.pop("testrecord_attachments", UNSET)
-
sparse_fields_obj = cls(
categories=categories,
- documents=documents,
document_attachments=document_attachments,
document_comments=document_comments,
document_parts=document_parts,
+ documents=documents,
enumerations=enumerations,
+ externallylinkedworkitems=externallylinkedworkitems,
+ featureselections=featureselections,
globalroles=globalroles,
icons=icons,
jobs=jobs,
- linkedworkitems=linkedworkitems,
- externallylinkedworkitems=externallylinkedworkitems,
linkedoslcresources=linkedoslcresources,
- pages=pages,
+ linkedworkitems=linkedworkitems,
page_attachments=page_attachments,
+ pages=pages,
plans=plans,
projectroles=projectroles,
projects=projects,
projecttemplates=projecttemplates,
- testparameters=testparameters,
+ revisions=revisions,
testparameter_definitions=testparameter_definitions,
+ testparameters=testparameters,
+ testrecord_attachments=testrecord_attachments,
testrecords=testrecords,
- teststep_results=teststep_results,
- testruns=testruns,
testrun_attachments=testrun_attachments,
- teststepresult_attachments=teststepresult_attachments,
testrun_comments=testrun_comments,
+ testruns=testruns,
+ teststep_results=teststep_results,
+ teststepresult_attachments=teststepresult_attachments,
+ teststeps=teststeps,
usergroups=usergroups,
users=users,
- workitems=workitems,
- workitem_attachments=workitem_attachments,
workitem_approvals=workitem_approvals,
+ workitem_attachments=workitem_attachments,
workitem_comments=workitem_comments,
- featureselections=featureselections,
- teststeps=teststeps,
+ workitems=workitems,
workrecords=workrecords,
- revisions=revisions,
- testrecord_attachments=testrecord_attachments,
)
sparse_fields_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request.py
new file mode 100644
index 00000000..b27abcea
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request.py
@@ -0,0 +1,91 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testparameter_definitions_list_delete_request_data_item import (
+ TestparameterDefinitionsListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestparameterDefinitionsListDeleteRequest")
+
+
+@_attrs_define
+class TestparameterDefinitionsListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestparameterDefinitionsListDeleteRequestDataItem']]):
+ """
+
+ data: Union[
+ Unset, List["TestparameterDefinitionsListDeleteRequestDataItem"]
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testparameter_definitions_list_delete_request_data_item import (
+ TestparameterDefinitionsListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = (
+ TestparameterDefinitionsListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+ )
+
+ data.append(data_item)
+
+ testparameter_definitions_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ testparameter_definitions_list_delete_request_obj.additional_properties = (
+ d
+ )
+ return testparameter_definitions_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item.py
new file mode 100644
index 00000000..0d274ce4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item.py
@@ -0,0 +1,88 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testparameter_definitions_list_delete_request_data_item_type import (
+ TestparameterDefinitionsListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestparameterDefinitionsListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TestparameterDefinitionsListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestparameterDefinitionsListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestParamDefinition.
+ """
+
+ type: Union[
+ Unset, TestparameterDefinitionsListDeleteRequestDataItemType
+ ] = UNSET
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, TestparameterDefinitionsListDeleteRequestDataItemType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestparameterDefinitionsListDeleteRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ testparameter_definitions_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ testparameter_definitions_list_delete_request_data_item_obj.additional_properties = (
+ d
+ )
+ return testparameter_definitions_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..624f1624
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestparameterDefinitionsListDeleteRequestDataItemType(str, Enum):
+ TESTPARAMETER_DEFINITIONS = "testparameter_definitions"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response.py
index 18cc057b..03e9f4e7 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response.py
@@ -30,15 +30,15 @@
class TestparameterDefinitionsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestparameterDefinitionsListGetResponseMeta]):
data (Union[Unset, List['TestparameterDefinitionsListGetResponseDataItem']]):
included (Union[Unset, List['TestparameterDefinitionsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestparameterDefinitionsListGetResponseLinks]):
+ meta (Union[Unset, TestparameterDefinitionsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestparameterDefinitionsListGetResponseMeta"] = UNSET
data: Union[
Unset, List["TestparameterDefinitionsListGetResponseDataItem"]
] = UNSET
@@ -46,15 +46,12 @@ class TestparameterDefinitionsListGetResponse:
Unset, List["TestparameterDefinitionsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TestparameterDefinitionsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestparameterDefinitionsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparameterDefinitionsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestparameterDefinitionsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -141,11 +135,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparameterDefinitionsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestparameterDefinitionsListGetResponseMeta.from_dict(_meta)
+
testparameter_definitions_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testparameter_definitions_list_get_response_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item.py
index 3f2e8ffc..963d231a 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item.py
@@ -34,8 +34,8 @@ class TestparameterDefinitionsListGetResponseDataItem:
id (Union[Unset, str]): Example: MyProjectId/MyTestParamDefinition.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestparameterDefinitionsListGetResponseDataItemAttributes]):
- meta (Union[Unset, TestparameterDefinitionsListGetResponseDataItemMeta]):
links (Union[Unset, TestparameterDefinitionsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestparameterDefinitionsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestparameterDefinitionsListGetResponseDataItemType] = (
@@ -46,12 +46,12 @@ class TestparameterDefinitionsListGetResponseDataItem:
attributes: Union[
Unset, "TestparameterDefinitionsListGetResponseDataItemAttributes"
] = UNSET
- meta: Union[
- Unset, "TestparameterDefinitionsListGetResponseDataItemMeta"
- ] = UNSET
links: Union[
Unset, "TestparameterDefinitionsListGetResponseDataItemLinks"
] = UNSET
+ meta: Union[
+ Unset, "TestparameterDefinitionsListGetResponseDataItemMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -69,14 +69,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -88,10 +88,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -130,17 +130,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparameterDefinitionsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = (
- TestparameterDefinitionsListGetResponseDataItemMeta.from_dict(
- _meta
- )
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, TestparameterDefinitionsListGetResponseDataItemLinks
@@ -154,13 +143,24 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparameterDefinitionsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = (
+ TestparameterDefinitionsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+ )
+
testparameter_definitions_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
testparameter_definitions_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item.py
index 38551199..f418d601 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item.py
@@ -23,46 +23,46 @@
class TestparameterDefinitionsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testparameter_definitions_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testparameter_definitions_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item_source.py
index ef95698b..cc8ed869 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_data_item_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class TestparameterDefinitionsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testparameter_definitions_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_included_item.py
index 52310159..37b239d9 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestparameterDefinitionsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_links.py
index 3a6728ab..bf28b081 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestparameterDefinitionsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testparameterdefinitions?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testparameter_definitions_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testparameter_definitions_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response.py
index c905cf92..811c1974 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response.py
@@ -30,7 +30,8 @@ class TestparameterDefinitionsSingleGetResponse:
data (Union[Unset, TestparameterDefinitionsSingleGetResponseData]):
included (Union[Unset, List['TestparameterDefinitionsSingleGetResponseIncludedItem']]): Related entities might
be returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestparameterDefinitionsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data.py
index 2408c402..aa3cbc76 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data.py
@@ -34,8 +34,8 @@ class TestparameterDefinitionsSingleGetResponseData:
id (Union[Unset, str]): Example: MyProjectId/MyTestParamDefinition.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestparameterDefinitionsSingleGetResponseDataAttributes]):
- meta (Union[Unset, TestparameterDefinitionsSingleGetResponseDataMeta]):
links (Union[Unset, TestparameterDefinitionsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestparameterDefinitionsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestparameterDefinitionsSingleGetResponseDataType] = (
@@ -46,12 +46,12 @@ class TestparameterDefinitionsSingleGetResponseData:
attributes: Union[
Unset, "TestparameterDefinitionsSingleGetResponseDataAttributes"
] = UNSET
- meta: Union[Unset, "TestparameterDefinitionsSingleGetResponseDataMeta"] = (
- UNSET
- )
links: Union[
Unset, "TestparameterDefinitionsSingleGetResponseDataLinks"
] = UNSET
+ meta: Union[Unset, "TestparameterDefinitionsSingleGetResponseDataMeta"] = (
+ UNSET
+ )
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -69,14 +69,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -88,10 +88,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -130,15 +130,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparameterDefinitionsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestparameterDefinitionsSingleGetResponseDataMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestparameterDefinitionsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -150,13 +141,22 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparameterDefinitionsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestparameterDefinitionsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+
testparameter_definitions_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
testparameter_definitions_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item.py
index 52316cbd..9e3f3d09 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item.py
@@ -23,46 +23,46 @@
class TestparameterDefinitionsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testparameter_definitions_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testparameter_definitions_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item_source.py
index b5c4ba65..5242fbb4 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_data_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class TestparameterDefinitionsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testparameter_definitions_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_included_item.py
index f4d029f5..b8ebe343 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameter_definitions_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestparameterDefinitionsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request.py
new file mode 100644
index 00000000..e12a85df
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testparameters_list_delete_request_data_item import (
+ TestparametersListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestparametersListDeleteRequest")
+
+
+@_attrs_define
+class TestparametersListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestparametersListDeleteRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestparametersListDeleteRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testparameters_list_delete_request_data_item import (
+ TestparametersListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestparametersListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testparameters_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ testparameters_list_delete_request_obj.additional_properties = d
+ return testparameters_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item.py
new file mode 100644
index 00000000..9838df4a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testparameters_list_delete_request_data_item_type import (
+ TestparametersListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestparametersListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TestparametersListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestparametersListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyTestParameter.
+ """
+
+ type: Union[Unset, TestparametersListDeleteRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestparametersListDeleteRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestparametersListDeleteRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ testparameters_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ testparameters_list_delete_request_data_item_obj.additional_properties = (
+ d
+ )
+ return testparameters_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..def2406c
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestparametersListDeleteRequestDataItemType(str, Enum):
+ TESTPARAMETERS = "testparameters"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response.py
index cc7132af..c243029d 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response.py
@@ -30,29 +30,26 @@
class TestparametersListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestparametersListGetResponseMeta]):
data (Union[Unset, List['TestparametersListGetResponseDataItem']]):
included (Union[Unset, List['TestparametersListGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, TestparametersListGetResponseLinks]):
+ meta (Union[Unset, TestparametersListGetResponseMeta]):
"""
- meta: Union[Unset, "TestparametersListGetResponseMeta"] = UNSET
data: Union[Unset, List["TestparametersListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["TestparametersListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TestparametersListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestparametersListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparametersListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestparametersListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestparametersListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparametersListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestparametersListGetResponseMeta.from_dict(_meta)
+
testparameters_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testparameters_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item.py
index c3a3a731..a75d8e95 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TestparametersListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestparametersListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestparametersListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestparametersListGetResponseDataItemMeta]):
links (Union[Unset, TestparametersListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestparametersListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestparametersListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class TestparametersListGetResponseDataItem:
relationships: Union[
Unset, "TestparametersListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestparametersListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TestparametersListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TestparametersListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparametersListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestparametersListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestparametersListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparametersListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestparametersListGetResponseDataItemMeta.from_dict(_meta)
+
testparameters_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testparameters_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item.py
index b639bc7a..c9245390 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestparametersListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestparametersListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestparametersListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testparameters_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testparameters_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item_source.py
index c08e4e62..8bca5255 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestparametersListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestparametersListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestparametersListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestparametersListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testparameters_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_relationships_definition_data.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_relationships_definition_data.py
index 9130f80d..d11201db 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_relationships_definition_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_data_item_relationships_definition_data.py
@@ -21,45 +21,49 @@
class TestparametersListGetResponseDataItemRelationshipsDefinitionData:
"""
Attributes:
- type (Union[Unset, TestparametersListGetResponseDataItemRelationshipsDefinitionDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestParamDefinition.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestparametersListGetResponseDataItemRelationshipsDefinitionDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestparametersListGetResponseDataItemRelationshipsDefinitionDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testparameters_list_get_response_data_item_relationships_definition_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testparameters_list_get_response_data_item_relationships_definition_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_included_item.py
index fa2ca5df..6278729f 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestparametersListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_links.py
index 05fbe1cb..5ee8996a 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestparametersListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/testparameters?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testparameters_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testparameters_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response.py
index 775d7001..aa0b0aac 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response.py
@@ -30,7 +30,8 @@ class TestparametersSingleGetResponse:
data (Union[Unset, TestparametersSingleGetResponseData]):
included (Union[Unset, List['TestparametersSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestparametersSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data.py
index 73a88198..21122275 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data.py
@@ -38,8 +38,8 @@ class TestparametersSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestparametersSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestparametersSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestparametersSingleGetResponseDataMeta]):
links (Union[Unset, TestparametersSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestparametersSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestparametersSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class TestparametersSingleGetResponseData:
relationships: Union[
Unset, "TestparametersSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestparametersSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TestparametersSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TestparametersSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -153,13 +153,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestparametersSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestparametersSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestparametersSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -167,14 +160,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestparametersSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestparametersSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestparametersSingleGetResponseDataMeta.from_dict(_meta)
+
testparameters_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testparameters_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item.py
index b4a8d56c..1f1cdf5a 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestparametersSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestparametersSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestparametersSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testparameters_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testparameters_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item_source.py
index 14267964..118b2b4c 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestparametersSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestparametersSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestparametersSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestparametersSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
testparameters_single_get_response_data_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_relationships_definition_data.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_relationships_definition_data.py
index 49b1b5f2..4bc7e2b3 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_relationships_definition_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_data_relationships_definition_data.py
@@ -20,45 +20,49 @@
class TestparametersSingleGetResponseDataRelationshipsDefinitionData:
"""
Attributes:
- type (Union[Unset, TestparametersSingleGetResponseDataRelationshipsDefinitionDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestParamDefinition.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestparametersSingleGetResponseDataRelationshipsDefinitionDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestparametersSingleGetResponseDataRelationshipsDefinitionDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testparameters_single_get_response_data_relationships_definition_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testparameters_single_get_response_data_relationships_definition_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_included_item.py
index 8af4d8ba..2aaebeff 100644
--- a/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testparameters_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestparametersSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request.py
new file mode 100644
index 00000000..ca46a144
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request.py
@@ -0,0 +1,91 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecord_attachments_list_delete_request_data_item import (
+ TestrecordAttachmentsListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrecordAttachmentsListDeleteRequest")
+
+
+@_attrs_define
+class TestrecordAttachmentsListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrecordAttachmentsListDeleteRequestDataItem']]):
+ """
+
+ data: Union[
+ Unset, List["TestrecordAttachmentsListDeleteRequestDataItem"]
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecord_attachments_list_delete_request_data_item import (
+ TestrecordAttachmentsListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = (
+ TestrecordAttachmentsListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+ )
+
+ data.append(data_item)
+
+ testrecord_attachments_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ testrecord_attachments_list_delete_request_obj.additional_properties = (
+ d
+ )
+ return testrecord_attachments_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item.py
new file mode 100644
index 00000000..d24aeab4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item.py
@@ -0,0 +1,86 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecord_attachments_list_delete_request_data_item_type import (
+ TestrecordAttachmentsListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrecordAttachmentsListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TestrecordAttachmentsListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrecordAttachmentsListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/MyAttachmentId.
+ """
+
+ type: Union[Unset, TestrecordAttachmentsListDeleteRequestDataItemType] = (
+ UNSET
+ )
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrecordAttachmentsListDeleteRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrecordAttachmentsListDeleteRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ testrecord_attachments_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ testrecord_attachments_list_delete_request_data_item_obj.additional_properties = (
+ d
+ )
+ return testrecord_attachments_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..157b032f
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordAttachmentsListDeleteRequestDataItemType(str, Enum):
+ TESTRECORD_ATTACHMENTS = "testrecord_attachments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response.py
index f1040e79..417cc8ac 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response.py
@@ -30,15 +30,15 @@
class TestrecordAttachmentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestrecordAttachmentsListGetResponseMeta]):
data (Union[Unset, List['TestrecordAttachmentsListGetResponseDataItem']]):
included (Union[Unset, List['TestrecordAttachmentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestrecordAttachmentsListGetResponseLinks]):
+ meta (Union[Unset, TestrecordAttachmentsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestrecordAttachmentsListGetResponseMeta"] = UNSET
data: Union[
Unset, List["TestrecordAttachmentsListGetResponseDataItem"]
] = UNSET
@@ -46,15 +46,12 @@ class TestrecordAttachmentsListGetResponse:
Unset, List["TestrecordAttachmentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TestrecordAttachmentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestrecordAttachmentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordAttachmentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordAttachmentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrecordAttachmentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordAttachmentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordAttachmentsListGetResponseMeta.from_dict(_meta)
+
testrecord_attachments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testrecord_attachments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item.py
index 32bfd544..4600207a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item.py
@@ -34,12 +34,12 @@ class TestrecordAttachmentsListGetResponseDataItem:
"""
Attributes:
type (Union[Unset, TestrecordAttachmentsListGetResponseDataItemType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrecordAttachmentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestrecordAttachmentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestrecordAttachmentsListGetResponseDataItemMeta]):
links (Union[Unset, TestrecordAttachmentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestrecordAttachmentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestrecordAttachmentsListGetResponseDataItemType] = (
@@ -53,12 +53,12 @@ class TestrecordAttachmentsListGetResponseDataItem:
relationships: Union[
Unset, "TestrecordAttachmentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestrecordAttachmentsListGetResponseDataItemMeta"] = (
- UNSET
- )
links: Union[
Unset, "TestrecordAttachmentsListGetResponseDataItemLinks"
] = UNSET
+ meta: Union[Unset, "TestrecordAttachmentsListGetResponseDataItemMeta"] = (
+ UNSET
+ )
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -80,14 +80,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -101,10 +101,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -157,15 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordAttachmentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordAttachmentsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrecordAttachmentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -177,14 +168,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordAttachmentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordAttachmentsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
testrecord_attachments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrecord_attachments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_links.py
index 190d2a89..2e524a95 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrecordAttachmentsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrecord_attachments_list_get_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrecord_attachments_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item.py
index 1a78d757..c0413b8f 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item.py
@@ -23,46 +23,46 @@
class TestrecordAttachmentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrecord_attachments_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrecord_attachments_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item_source.py
index 2e99c72c..85cd537d 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class TestrecordAttachmentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrecord_attachments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_author_data.py
index 0d443ec9..e95d57b9 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_author_data.py
@@ -21,45 +21,49 @@
class TestrecordAttachmentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrecordAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordAttachmentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecord_attachments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecord_attachments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_project_data.py
index 08a6768f..5573c3b8 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class TestrecordAttachmentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrecordAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordAttachmentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecord_attachments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecord_attachments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_included_item.py
index 808b985a..1d97551e 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrecordAttachmentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_links.py
index 96841837..fa14cffa 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestrecordAttachmentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
/testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
- testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
+ testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testrecord_attachments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testrecord_attachments_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_request_data_item.py
index 55dcb329..466313f8 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_request_data_item.py
@@ -25,17 +25,17 @@ class TestrecordAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, TestrecordAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, TestrecordAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[Unset, TestrecordAttachmentsListPostRequestDataItemType] = (
UNSET
)
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "TestrecordAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -45,21 +45,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -77,8 +77,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = TestrecordAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, TestrecordAttachmentsListPostRequestDataItemAttributes
@@ -90,10 +88,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
+ lid = d.pop("lid", UNSET)
+
testrecord_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
testrecord_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item.py
index 494faada..70bc87ef 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item.py
@@ -25,7 +25,7 @@ class TestrecordAttachmentsListPostResponseDataItem:
"""
Attributes:
type (Union[Unset, TestrecordAttachmentsListPostResponseDataItemType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/MyAttachmentId.
links (Union[Unset, TestrecordAttachmentsListPostResponseDataItemLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item_links.py
index 433ef7d3..113404b2 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrecordAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrecord_attachments_list_post_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrecord_attachments_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response.py
index 860a14ca..987a703a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class TestrecordAttachmentsSingleGetResponse:
data (Union[Unset, TestrecordAttachmentsSingleGetResponseData]):
included (Union[Unset, List['TestrecordAttachmentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestrecordAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data.py
index b22662f7..f4b6301a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data.py
@@ -34,12 +34,12 @@ class TestrecordAttachmentsSingleGetResponseData:
"""
Attributes:
type (Union[Unset, TestrecordAttachmentsSingleGetResponseDataType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrecordAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestrecordAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestrecordAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, TestrecordAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestrecordAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestrecordAttachmentsSingleGetResponseDataType] = UNSET
@@ -51,10 +51,10 @@ class TestrecordAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "TestrecordAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestrecordAttachmentsSingleGetResponseDataMeta"] = (
+ links: Union[Unset, "TestrecordAttachmentsSingleGetResponseDataLinks"] = (
UNSET
)
- links: Union[Unset, "TestrecordAttachmentsSingleGetResponseDataLinks"] = (
+ meta: Union[Unset, "TestrecordAttachmentsSingleGetResponseDataMeta"] = (
UNSET
)
additional_properties: Dict[str, Any] = _attrs_field(
@@ -78,14 +78,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -99,10 +99,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -157,15 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordAttachmentsSingleGetResponseDataMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrecordAttachmentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -175,14 +166,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordAttachmentsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+
testrecord_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrecord_attachments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_links.py
index 3522ce33..4a8c1e73 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class TestrecordAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrecord_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrecord_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item.py
index b35a0c60..e22428e5 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item.py
@@ -23,45 +23,45 @@
class TestrecordAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -90,11 +86,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrecord_attachments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrecord_attachments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item_source.py
index 45fbeb4d..08eac8df 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestrecordAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrecord_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_author_data.py
index bd7d474a..0cb7afec 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_author_data.py
@@ -21,45 +21,49 @@
class TestrecordAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrecordAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordAttachmentsSingleGetResponseDataRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecord_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecord_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_project_data.py
index b0debc30..1fb0ef92 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_data_relationships_project_data.py
@@ -21,45 +21,49 @@
class TestrecordAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrecordAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordAttachmentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecord_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecord_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_included_item.py
index 6ee36dba..720cef1a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrecordAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_links.py
index a5313b14..e852c80a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_get_response_links.py
@@ -16,7 +16,7 @@ class TestrecordAttachmentsSingleGetResponseLinks:
"""
Attributes:
self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId?revision=1234.
+ /testrecords/MyProjectId/MyTestcaseId/0/attachments/MyAttachmentId.
"""
self_: Union[Unset, str] = UNSET
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request.py
new file mode 100644
index 00000000..81b3e865
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request.py
@@ -0,0 +1,82 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecord_attachments_single_patch_request_data import (
+ TestrecordAttachmentsSinglePatchRequestData,
+ )
+
+
+T = TypeVar("T", bound="TestrecordAttachmentsSinglePatchRequest")
+
+
+@_attrs_define
+class TestrecordAttachmentsSinglePatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, TestrecordAttachmentsSinglePatchRequestData]):
+ """
+
+ data: Union[Unset, "TestrecordAttachmentsSinglePatchRequestData"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecord_attachments_single_patch_request_data import (
+ TestrecordAttachmentsSinglePatchRequestData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, TestrecordAttachmentsSinglePatchRequestData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TestrecordAttachmentsSinglePatchRequestData.from_dict(_data)
+
+ testrecord_attachments_single_patch_request_obj = cls(
+ data=data,
+ )
+
+ testrecord_attachments_single_patch_request_obj.additional_properties = (
+ d
+ )
+ return testrecord_attachments_single_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data.py
new file mode 100644
index 00000000..b13e31ba
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data.py
@@ -0,0 +1,116 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecord_attachments_single_patch_request_data_type import (
+ TestrecordAttachmentsSinglePatchRequestDataType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecord_attachments_single_patch_request_data_attributes import (
+ TestrecordAttachmentsSinglePatchRequestDataAttributes,
+ )
+
+
+T = TypeVar("T", bound="TestrecordAttachmentsSinglePatchRequestData")
+
+
+@_attrs_define
+class TestrecordAttachmentsSinglePatchRequestData:
+ """
+ Attributes:
+ type (Union[Unset, TestrecordAttachmentsSinglePatchRequestDataType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/MyAttachmentId.
+ attributes (Union[Unset, TestrecordAttachmentsSinglePatchRequestDataAttributes]):
+ """
+
+ type: Union[Unset, TestrecordAttachmentsSinglePatchRequestDataType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TestrecordAttachmentsSinglePatchRequestDataAttributes"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecord_attachments_single_patch_request_data_attributes import (
+ TestrecordAttachmentsSinglePatchRequestDataAttributes,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrecordAttachmentsSinglePatchRequestDataType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrecordAttachmentsSinglePatchRequestDataType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[
+ Unset, TestrecordAttachmentsSinglePatchRequestDataAttributes
+ ]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = TestrecordAttachmentsSinglePatchRequestDataAttributes.from_dict(
+ _attributes
+ )
+
+ testrecord_attachments_single_patch_request_data_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ )
+
+ testrecord_attachments_single_patch_request_data_obj.additional_properties = (
+ d
+ )
+ return testrecord_attachments_single_patch_request_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_attributes.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_attributes.py
new file mode 100644
index 00000000..6ddd5f91
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_attributes.py
@@ -0,0 +1,65 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrecordAttachmentsSinglePatchRequestDataAttributes")
+
+
+@_attrs_define
+class TestrecordAttachmentsSinglePatchRequestDataAttributes:
+ """
+ Attributes:
+ title (Union[Unset, str]): Example: Title.
+ """
+
+ title: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ title = self.title
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if title is not UNSET:
+ field_dict["title"] = title
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ title = d.pop("title", UNSET)
+
+ testrecord_attachments_single_patch_request_data_attributes_obj = cls(
+ title=title,
+ )
+
+ testrecord_attachments_single_patch_request_data_attributes_obj.additional_properties = (
+ d
+ )
+ return testrecord_attachments_single_patch_request_data_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_type.py b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_type.py
new file mode 100644
index 00000000..5cda6c0c
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecord_attachments_single_patch_request_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordAttachmentsSinglePatchRequestDataType(str, Enum):
+ TESTRECORD_ATTACHMENTS = "testrecord_attachments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response.py
index 5c9cd1a3..d3f138de 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response.py
@@ -30,29 +30,26 @@
class TestrecordsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestrecordsListGetResponseMeta]):
data (Union[Unset, List['TestrecordsListGetResponseDataItem']]):
included (Union[Unset, List['TestrecordsListGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, TestrecordsListGetResponseLinks]):
+ meta (Union[Unset, TestrecordsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestrecordsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TestrecordsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["TestrecordsListGetResponseIncludedItem"]] = (
UNSET
)
links: Union[Unset, "TestrecordsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestrecordsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrecordsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordsListGetResponseMeta.from_dict(_meta)
+
testrecords_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testrecords_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item.py
index 35d76eb7..d9bcbc0d 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TestrecordsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrecordsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestrecordsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestrecordsListGetResponseDataItemMeta]):
links (Union[Unset, TestrecordsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestrecordsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestrecordsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class TestrecordsListGetResponseDataItem:
relationships: Union[
Unset, "TestrecordsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestrecordsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TestrecordsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TestrecordsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -153,13 +153,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrecordsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -167,14 +160,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrecordsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordsListGetResponseDataItemMeta.from_dict(_meta)
+
testrecords_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrecords_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item.py
index 2bd28d0f..81b7612e 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrecordsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrecordsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrecordsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrecords_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrecords_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item_source.py
index 934781f3..17a569b7 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrecordsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrecordsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TestrecordsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -39,10 +39,10 @@ class TestrecordsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -50,10 +50,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -66,10 +66,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
testrecords_list_get_response_data_item_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_defect_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_defect_data.py
index eab62d30..6a90fee5 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_defect_data.py
@@ -20,44 +20,48 @@
class TestrecordsListGetResponseDataItemRelationshipsDefectData:
"""
Attributes:
- type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsListGetResponseDataItemRelationshipsDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_list_get_response_data_item_relationships_defect_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecords_list_get_response_data_item_relationships_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_executed_by_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_executed_by_data.py
index c44270ef..55339249 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_executed_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_executed_by_data.py
@@ -20,45 +20,49 @@
class TestrecordsListGetResponseDataItemRelationshipsExecutedByData:
"""
Attributes:
- type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsExecutedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsExecutedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordsListGetResponseDataItemRelationshipsExecutedByDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_list_get_response_data_item_relationships_executed_by_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecords_list_get_response_data_item_relationships_executed_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_test_case_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_test_case_data.py
index 379ede01..70e2e2df 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_test_case_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_data_item_relationships_test_case_data.py
@@ -20,44 +20,48 @@
class TestrecordsListGetResponseDataItemRelationshipsTestCaseData:
"""
Attributes:
- type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsTestCaseDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsListGetResponseDataItemRelationshipsTestCaseDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsListGetResponseDataItemRelationshipsTestCaseDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_list_get_response_data_item_relationships_test_case_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecords_list_get_response_data_item_relationships_test_case_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_included_item.py
index 9c599758..549e988e 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrecordsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_links.py
index 59263ae6..190dd665 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestrecordsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/te
- strecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/te
strecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/tes
- trecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/te
- strecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/tes
trecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/te
+ strecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/tes
+ trecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/elibrary/testruns/MyTestRunId/te
+ strecords/MyProjectId/MyTestcaseId?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testrecords_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testrecords_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request.py
new file mode 100644
index 00000000..e7d79115
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item import (
+ TestrecordsListPatchRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrecordsListPatchRequest")
+
+
+@_attrs_define
+class TestrecordsListPatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrecordsListPatchRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestrecordsListPatchRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item import (
+ TestrecordsListPatchRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrecordsListPatchRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testrecords_list_patch_request_obj = cls(
+ data=data,
+ )
+
+ testrecords_list_patch_request_obj.additional_properties = d
+ return testrecords_list_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item.py
new file mode 100644
index 00000000..820a673b
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item.py
@@ -0,0 +1,144 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecords_list_patch_request_data_item_type import (
+ TestrecordsListPatchRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item_attributes import (
+ TestrecordsListPatchRequestDataItemAttributes,
+ )
+ from ..models.testrecords_list_patch_request_data_item_relationships import (
+ TestrecordsListPatchRequestDataItemRelationships,
+ )
+
+
+T = TypeVar("T", bound="TestrecordsListPatchRequestDataItem")
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrecordsListPatchRequestDataItemType]):
+ id (Union[Unset, str]): Example: elibrary/MyTestRunId/MyProjectId/MyTestcaseId/0.
+ attributes (Union[Unset, TestrecordsListPatchRequestDataItemAttributes]):
+ relationships (Union[Unset, TestrecordsListPatchRequestDataItemRelationships]):
+ """
+
+ type: Union[Unset, TestrecordsListPatchRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TestrecordsListPatchRequestDataItemAttributes"
+ ] = UNSET
+ relationships: Union[
+ Unset, "TestrecordsListPatchRequestDataItemRelationships"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ relationships: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.relationships, Unset):
+ relationships = self.relationships.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+ if relationships is not UNSET:
+ field_dict["relationships"] = relationships
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item_attributes import (
+ TestrecordsListPatchRequestDataItemAttributes,
+ )
+ from ..models.testrecords_list_patch_request_data_item_relationships import (
+ TestrecordsListPatchRequestDataItemRelationships,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrecordsListPatchRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrecordsListPatchRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[Unset, TestrecordsListPatchRequestDataItemAttributes]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = (
+ TestrecordsListPatchRequestDataItemAttributes.from_dict(
+ _attributes
+ )
+ )
+
+ _relationships = d.pop("relationships", UNSET)
+ relationships: Union[
+ Unset, TestrecordsListPatchRequestDataItemRelationships
+ ]
+ if isinstance(_relationships, Unset):
+ relationships = UNSET
+ else:
+ relationships = (
+ TestrecordsListPatchRequestDataItemRelationships.from_dict(
+ _relationships
+ )
+ )
+
+ testrecords_list_patch_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ relationships=relationships,
+ )
+
+ testrecords_list_patch_request_data_item_obj.additional_properties = d
+ return testrecords_list_patch_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes.py
new file mode 100644
index 00000000..8ccc5463
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes.py
@@ -0,0 +1,135 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+import datetime
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+from dateutil.parser import isoparse
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item_attributes_comment import (
+ TestrecordsListPatchRequestDataItemAttributesComment,
+ )
+
+
+T = TypeVar("T", bound="TestrecordsListPatchRequestDataItemAttributes")
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemAttributes:
+ """
+ Attributes:
+ comment (Union[Unset, TestrecordsListPatchRequestDataItemAttributesComment]):
+ duration (Union[Unset, float]):
+ executed (Union[Unset, datetime.datetime]): Example: 1970-01-01T00:00:00Z.
+ result (Union[Unset, str]): Example: passed.
+ test_case_revision (Union[Unset, str]): Example: Test Case Revision.
+ """
+
+ comment: Union[
+ Unset, "TestrecordsListPatchRequestDataItemAttributesComment"
+ ] = UNSET
+ duration: Union[Unset, float] = UNSET
+ executed: Union[Unset, datetime.datetime] = UNSET
+ result: Union[Unset, str] = UNSET
+ test_case_revision: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ comment: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.comment, Unset):
+ comment = self.comment.to_dict()
+
+ duration = self.duration
+
+ executed: Union[Unset, str] = UNSET
+ if not isinstance(self.executed, Unset):
+ executed = self.executed.isoformat()
+
+ result = self.result
+
+ test_case_revision = self.test_case_revision
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if comment is not UNSET:
+ field_dict["comment"] = comment
+ if duration is not UNSET:
+ field_dict["duration"] = duration
+ if executed is not UNSET:
+ field_dict["executed"] = executed
+ if result is not UNSET:
+ field_dict["result"] = result
+ if test_case_revision is not UNSET:
+ field_dict["testCaseRevision"] = test_case_revision
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item_attributes_comment import (
+ TestrecordsListPatchRequestDataItemAttributesComment,
+ )
+
+ d = src_dict.copy()
+ _comment = d.pop("comment", UNSET)
+ comment: Union[
+ Unset, TestrecordsListPatchRequestDataItemAttributesComment
+ ]
+ if isinstance(_comment, Unset):
+ comment = UNSET
+ else:
+ comment = (
+ TestrecordsListPatchRequestDataItemAttributesComment.from_dict(
+ _comment
+ )
+ )
+
+ duration = d.pop("duration", UNSET)
+
+ _executed = d.pop("executed", UNSET)
+ executed: Union[Unset, datetime.datetime]
+ if isinstance(_executed, Unset):
+ executed = UNSET
+ else:
+ executed = isoparse(_executed)
+
+ result = d.pop("result", UNSET)
+
+ test_case_revision = d.pop("testCaseRevision", UNSET)
+
+ testrecords_list_patch_request_data_item_attributes_obj = cls(
+ comment=comment,
+ duration=duration,
+ executed=executed,
+ result=result,
+ test_case_revision=test_case_revision,
+ )
+
+ testrecords_list_patch_request_data_item_attributes_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment.py
new file mode 100644
index 00000000..d0a39f5a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment.py
@@ -0,0 +1,90 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecords_list_patch_request_data_item_attributes_comment_type import (
+ TestrecordsListPatchRequestDataItemAttributesCommentType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrecordsListPatchRequestDataItemAttributesComment")
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemAttributesComment:
+ """
+ Attributes:
+ type (Union[Unset, TestrecordsListPatchRequestDataItemAttributesCommentType]):
+ value (Union[Unset, str]): Example: My text value.
+ """
+
+ type: Union[
+ Unset, TestrecordsListPatchRequestDataItemAttributesCommentType
+ ] = UNSET
+ value: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ value = self.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if value is not UNSET:
+ field_dict["value"] = value
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, TestrecordsListPatchRequestDataItemAttributesCommentType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrecordsListPatchRequestDataItemAttributesCommentType(
+ _type
+ )
+
+ value = d.pop("value", UNSET)
+
+ testrecords_list_patch_request_data_item_attributes_comment_obj = cls(
+ type=type,
+ value=value,
+ )
+
+ testrecords_list_patch_request_data_item_attributes_comment_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_attributes_comment_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment_type.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment_type.py
new file mode 100644
index 00000000..29e57c17
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_attributes_comment_type.py
@@ -0,0 +1,12 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordsListPatchRequestDataItemAttributesCommentType(str, Enum):
+ TEXTHTML = "text/html"
+ TEXTPLAIN = "text/plain"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships.py
new file mode 100644
index 00000000..0aa16342
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships.py
@@ -0,0 +1,116 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item_relationships_defect import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefect,
+ )
+ from ..models.testrecords_list_patch_request_data_item_relationships_executed_by import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedBy,
+ )
+
+
+T = TypeVar("T", bound="TestrecordsListPatchRequestDataItemRelationships")
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemRelationships:
+ """
+ Attributes:
+ defect (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsDefect]):
+ executed_by (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsExecutedBy]):
+ """
+
+ defect: Union[
+ Unset, "TestrecordsListPatchRequestDataItemRelationshipsDefect"
+ ] = UNSET
+ executed_by: Union[
+ Unset, "TestrecordsListPatchRequestDataItemRelationshipsExecutedBy"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ defect: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.defect, Unset):
+ defect = self.defect.to_dict()
+
+ executed_by: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.executed_by, Unset):
+ executed_by = self.executed_by.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if defect is not UNSET:
+ field_dict["defect"] = defect
+ if executed_by is not UNSET:
+ field_dict["executedBy"] = executed_by
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item_relationships_defect import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefect,
+ )
+ from ..models.testrecords_list_patch_request_data_item_relationships_executed_by import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedBy,
+ )
+
+ d = src_dict.copy()
+ _defect = d.pop("defect", UNSET)
+ defect: Union[
+ Unset, TestrecordsListPatchRequestDataItemRelationshipsDefect
+ ]
+ if isinstance(_defect, Unset):
+ defect = UNSET
+ else:
+ defect = TestrecordsListPatchRequestDataItemRelationshipsDefect.from_dict(
+ _defect
+ )
+
+ _executed_by = d.pop("executedBy", UNSET)
+ executed_by: Union[
+ Unset, TestrecordsListPatchRequestDataItemRelationshipsExecutedBy
+ ]
+ if isinstance(_executed_by, Unset):
+ executed_by = UNSET
+ else:
+ executed_by = TestrecordsListPatchRequestDataItemRelationshipsExecutedBy.from_dict(
+ _executed_by
+ )
+
+ testrecords_list_patch_request_data_item_relationships_obj = cls(
+ defect=defect,
+ executed_by=executed_by,
+ )
+
+ testrecords_list_patch_request_data_item_relationships_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_relationships_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect.py
new file mode 100644
index 00000000..75c7e205
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item_relationships_defect_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectData,
+ )
+
+
+T = TypeVar(
+ "T", bound="TestrecordsListPatchRequestDataItemRelationshipsDefect"
+)
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemRelationshipsDefect:
+ """
+ Attributes:
+ data (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsDefectData]):
+ """
+
+ data: Union[
+ Unset, "TestrecordsListPatchRequestDataItemRelationshipsDefectData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item_relationships_defect_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[
+ Unset, TestrecordsListPatchRequestDataItemRelationshipsDefectData
+ ]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TestrecordsListPatchRequestDataItemRelationshipsDefectData.from_dict(
+ _data
+ )
+
+ testrecords_list_patch_request_data_item_relationships_defect_obj = (
+ cls(
+ data=data,
+ )
+ )
+
+ testrecords_list_patch_request_data_item_relationships_defect_obj.additional_properties = (
+ d
+ )
+ return (
+ testrecords_list_patch_request_data_item_relationships_defect_obj
+ )
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data.py
new file mode 100644
index 00000000..b3f93839
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data.py
@@ -0,0 +1,95 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecords_list_patch_request_data_item_relationships_defect_data_type import (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TestrecordsListPatchRequestDataItemRelationshipsDefectData"
+)
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemRelationshipsDefectData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsDefectDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, TestrecordsListPatchRequestDataItemRelationshipsDefectDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrecordsListPatchRequestDataItemRelationshipsDefectDataType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = (
+ TestrecordsListPatchRequestDataItemRelationshipsDefectDataType(
+ _type
+ )
+ )
+
+ testrecords_list_patch_request_data_item_relationships_defect_data_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ testrecords_list_patch_request_data_item_relationships_defect_data_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_relationships_defect_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data_type.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data_type.py
new file mode 100644
index 00000000..97f79213
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_defect_data_type.py
@@ -0,0 +1,13 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordsListPatchRequestDataItemRelationshipsDefectDataType(
+ str, Enum
+):
+ WORKITEMS = "workitems"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by.py
new file mode 100644
index 00000000..aabc9e58
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by.py
@@ -0,0 +1,91 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrecords_list_patch_request_data_item_relationships_executed_by_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByData,
+ )
+
+
+T = TypeVar(
+ "T", bound="TestrecordsListPatchRequestDataItemRelationshipsExecutedBy"
+)
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemRelationshipsExecutedBy:
+ """
+ Attributes:
+ data (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsExecutedByData]):
+ """
+
+ data: Union[
+ Unset, "TestrecordsListPatchRequestDataItemRelationshipsExecutedByData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrecords_list_patch_request_data_item_relationships_executed_by_data import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[
+ Unset,
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByData,
+ ]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TestrecordsListPatchRequestDataItemRelationshipsExecutedByData.from_dict(
+ _data
+ )
+
+ testrecords_list_patch_request_data_item_relationships_executed_by_obj = cls(
+ data=data,
+ )
+
+ testrecords_list_patch_request_data_item_relationships_executed_by_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_relationships_executed_by_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data.py
new file mode 100644
index 00000000..558267eb
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrecords_list_patch_request_data_item_relationships_executed_by_data_type import (
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TestrecordsListPatchRequestDataItemRelationshipsExecutedByData"
+)
+
+
+@_attrs_define
+class TestrecordsListPatchRequestDataItemRelationshipsExecutedByData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset,
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType,
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType(
+ _type
+ )
+
+ testrecords_list_patch_request_data_item_relationships_executed_by_data_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ testrecords_list_patch_request_data_item_relationships_executed_by_data_obj.additional_properties = (
+ d
+ )
+ return testrecords_list_patch_request_data_item_relationships_executed_by_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data_type.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data_type.py
new file mode 100644
index 00000000..154c3019
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_relationships_executed_by_data_type.py
@@ -0,0 +1,13 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordsListPatchRequestDataItemRelationshipsExecutedByDataType(
+ str, Enum
+):
+ USERS = "users"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_type.py
new file mode 100644
index 00000000..b3e555f7
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_patch_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrecordsListPatchRequestDataItemType(str, Enum):
+ TESTRECORDS = "testrecords"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_defect_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_defect_data.py
index 3936f351..5aacc9f1 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_defect_data.py
@@ -20,38 +20,40 @@
class TestrecordsListPostRequestDataItemRelationshipsDefectData:
"""
Attributes:
- type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsListPostRequestDataItemRelationshipsDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
testrecords_list_post_request_data_item_relationships_defect_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrecords_list_post_request_data_item_relationships_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_executed_by_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_executed_by_data.py
index 218652aa..df44dfca 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_executed_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_executed_by_data.py
@@ -20,39 +20,41 @@
class TestrecordsListPostRequestDataItemRelationshipsExecutedByData:
"""
Attributes:
- type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsExecutedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsExecutedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrecordsListPostRequestDataItemRelationshipsExecutedByDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testrecords_list_post_request_data_item_relationships_executed_by_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrecords_list_post_request_data_item_relationships_executed_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_test_case_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_test_case_data.py
index d77e32b7..70412716 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_test_case_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_list_post_request_data_item_relationships_test_case_data.py
@@ -20,38 +20,40 @@
class TestrecordsListPostRequestDataItemRelationshipsTestCaseData:
"""
Attributes:
- type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsTestCaseDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrecordsListPostRequestDataItemRelationshipsTestCaseDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsListPostRequestDataItemRelationshipsTestCaseDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testrecords_list_post_request_data_item_relationships_test_case_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrecords_list_post_request_data_item_relationships_test_case_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response.py
index 905156ef..810082d5 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response.py
@@ -29,8 +29,9 @@ class TestrecordsSingleGetResponse:
Attributes:
data (Union[Unset, TestrecordsSingleGetResponseData]):
included (Union[Unset, List['TestrecordsSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, TestrecordsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data.py
index 0067ac1d..3098149c 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data.py
@@ -38,8 +38,8 @@ class TestrecordsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrecordsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestrecordsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestrecordsSingleGetResponseDataMeta]):
links (Union[Unset, TestrecordsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestrecordsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestrecordsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class TestrecordsSingleGetResponseData:
relationships: Union[
Unset, "TestrecordsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestrecordsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TestrecordsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TestrecordsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrecordsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrecordsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrecordsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrecordsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrecordsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrecordsSingleGetResponseDataMeta.from_dict(_meta)
+
testrecords_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrecords_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item.py
index 859e27f4..acc52ddf 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrecordsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrecordsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrecordsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrecords_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrecords_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item_source.py
index 918f0a8a..3fb7c4af 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class TestrecordsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrecordsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TestrecordsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class TestrecordsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, TestrecordsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrecords_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_defect_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_defect_data.py
index 4b09b79a..d694b68a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_defect_data.py
@@ -20,44 +20,48 @@
class TestrecordsSingleGetResponseDataRelationshipsDefectData:
"""
Attributes:
- type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsSingleGetResponseDataRelationshipsDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrecordsSingleGetResponseDataRelationshipsDefectDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_single_get_response_data_relationships_defect_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_executed_by_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_executed_by_data.py
index efb1efe3..ed5a2411 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_executed_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_executed_by_data.py
@@ -20,44 +20,48 @@
class TestrecordsSingleGetResponseDataRelationshipsExecutedByData:
"""
Attributes:
- type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsExecutedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsExecutedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsSingleGetResponseDataRelationshipsExecutedByDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_single_get_response_data_relationships_executed_by_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecords_single_get_response_data_relationships_executed_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_test_case_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_test_case_data.py
index bdb36df1..018b1c20 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_test_case_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_data_relationships_test_case_data.py
@@ -20,44 +20,48 @@
class TestrecordsSingleGetResponseDataRelationshipsTestCaseData:
"""
Attributes:
- type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsTestCaseDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrecordsSingleGetResponseDataRelationshipsTestCaseDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsSingleGetResponseDataRelationshipsTestCaseDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrecords_single_get_response_data_relationships_test_case_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrecords_single_get_response_data_relationships_test_case_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_included_item.py
index b7360bb2..d81a24ce 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrecordsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_defect_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_defect_data.py
index 535e2018..73379128 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_defect_data.py
@@ -20,38 +20,40 @@
class TestrecordsSinglePatchRequestDataRelationshipsDefectData:
"""
Attributes:
- type (Union[Unset, TestrecordsSinglePatchRequestDataRelationshipsDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrecordsSinglePatchRequestDataRelationshipsDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsSinglePatchRequestDataRelationshipsDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrecordsSinglePatchRequestDataRelationshipsDefectDataType
@@ -65,12 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
testrecords_single_patch_request_data_relationships_defect_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_executed_by_data.py b/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_executed_by_data.py
index bb060369..40597bf1 100644
--- a/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_executed_by_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrecords_single_patch_request_data_relationships_executed_by_data.py
@@ -20,38 +20,40 @@
class TestrecordsSinglePatchRequestDataRelationshipsExecutedByData:
"""
Attributes:
- type (Union[Unset, TestrecordsSinglePatchRequestDataRelationshipsExecutedByDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, TestrecordsSinglePatchRequestDataRelationshipsExecutedByDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrecordsSinglePatchRequestDataRelationshipsExecutedByDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testrecords_single_patch_request_data_relationships_executed_by_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrecords_single_patch_request_data_relationships_executed_by_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request.py
new file mode 100644
index 00000000..daad106c
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request.py
@@ -0,0 +1,87 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrun_attachments_list_delete_request_data_item import (
+ TestrunAttachmentsListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrunAttachmentsListDeleteRequest")
+
+
+@_attrs_define
+class TestrunAttachmentsListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrunAttachmentsListDeleteRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestrunAttachmentsListDeleteRequestDataItem"]] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrun_attachments_list_delete_request_data_item import (
+ TestrunAttachmentsListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrunAttachmentsListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testrun_attachments_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ testrun_attachments_list_delete_request_obj.additional_properties = d
+ return testrun_attachments_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item.py
new file mode 100644
index 00000000..1aef6135
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item.py
@@ -0,0 +1,84 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrun_attachments_list_delete_request_data_item_type import (
+ TestrunAttachmentsListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrunAttachmentsListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TestrunAttachmentsListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrunAttachmentsListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyAttachmentId.
+ """
+
+ type: Union[Unset, TestrunAttachmentsListDeleteRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrunAttachmentsListDeleteRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunAttachmentsListDeleteRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ testrun_attachments_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ testrun_attachments_list_delete_request_data_item_obj.additional_properties = (
+ d
+ )
+ return testrun_attachments_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..e87d3e73
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunAttachmentsListDeleteRequestDataItemType(str, Enum):
+ TESTRUN_ATTACHMENTS = "testrun_attachments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response.py
index aae13eb4..a6d0b7b2 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response.py
@@ -30,15 +30,15 @@
class TestrunAttachmentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestrunAttachmentsListGetResponseMeta]):
data (Union[Unset, List['TestrunAttachmentsListGetResponseDataItem']]):
included (Union[Unset, List['TestrunAttachmentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestrunAttachmentsListGetResponseLinks]):
+ meta (Union[Unset, TestrunAttachmentsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestrunAttachmentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TestrunAttachmentsListGetResponseDataItem"]] = (
UNSET
)
@@ -46,15 +46,12 @@ class TestrunAttachmentsListGetResponse:
Unset, List["TestrunAttachmentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TestrunAttachmentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestrunAttachmentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunAttachmentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunAttachmentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunAttachmentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunAttachmentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunAttachmentsListGetResponseMeta.from_dict(_meta)
+
testrun_attachments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testrun_attachments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item.py
index 9e98969c..c02d753d 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TestrunAttachmentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunAttachmentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestrunAttachmentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestrunAttachmentsListGetResponseDataItemMeta]):
links (Union[Unset, TestrunAttachmentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestrunAttachmentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestrunAttachmentsListGetResponseDataItemType] = UNSET
@@ -51,10 +51,10 @@ class TestrunAttachmentsListGetResponseDataItem:
relationships: Union[
Unset, "TestrunAttachmentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestrunAttachmentsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TestrunAttachmentsListGetResponseDataItemLinks"] = (
UNSET
)
+ meta: Union[Unset, "TestrunAttachmentsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -76,14 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -97,10 +97,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,15 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunAttachmentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunAttachmentsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunAttachmentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -173,14 +164,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunAttachmentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunAttachmentsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
testrun_attachments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrun_attachments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_links.py
index 1d50215e..4a744142 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrunAttachmentsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrun_attachments_list_get_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrun_attachments_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item.py
index 4eeb9690..ef556f4a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class TestrunAttachmentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -90,11 +86,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrun_attachments_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrun_attachments_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item_source.py
index d942186a..33568c98 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestrunAttachmentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrun_attachments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_author_data.py
index ab4cd945..a7859238 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_author_data.py
@@ -21,45 +21,49 @@
class TestrunAttachmentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunAttachmentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_attachments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_attachments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_project_data.py
index 3dbb6e21..ef9356ca 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class TestrunAttachmentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunAttachmentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_attachments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_attachments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_included_item.py
index ed7beb6c..05912996 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunAttachmentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_links.py
index a69d5be8..e5b01c26 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestrunAttachmentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testrun_attachments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testrun_attachments_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_request_data_item.py
index 1e77812e..f862f92b 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_request_data_item.py
@@ -25,15 +25,15 @@ class TestrunAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, TestrunAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, TestrunAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[Unset, TestrunAttachmentsListPostRequestDataItemType] = UNSET
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "TestrunAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -43,21 +43,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -75,8 +75,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = TestrunAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, TestrunAttachmentsListPostRequestDataItemAttributes
@@ -90,10 +88,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ lid = d.pop("lid", UNSET)
+
testrun_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
testrun_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_response_data_item_links.py
index 6fc7a34f..2ee86519 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrunAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrun_attachments_list_post_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrun_attachments_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response.py
index 1ccaf19b..746bcc3a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class TestrunAttachmentsSingleGetResponse:
data (Union[Unset, TestrunAttachmentsSingleGetResponseData]):
included (Union[Unset, List['TestrunAttachmentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestrunAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data.py
index 4de0b798..e0b09c7e 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data.py
@@ -38,8 +38,8 @@ class TestrunAttachmentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestrunAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestrunAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, TestrunAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestrunAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestrunAttachmentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class TestrunAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "TestrunAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestrunAttachmentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TestrunAttachmentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TestrunAttachmentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunAttachmentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunAttachmentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunAttachmentsSingleGetResponseDataMeta.from_dict(_meta)
+
testrun_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrun_attachments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_links.py
index 9cb3c8a0..273130a7 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class TestrunAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
testrun_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
testrun_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item.py
index 732b21ec..dc406743 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrunAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrun_attachments_single_get_response_data_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item_source.py
index 81aa516f..0c4c6568 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestrunAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrun_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_author_data.py
index bd47a936..853ff04d 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_author_data.py
@@ -20,45 +20,49 @@
class TestrunAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunAttachmentsSingleGetResponseDataRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_project_data.py
index 39c6f0f5..87f0843b 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_data_relationships_project_data.py
@@ -21,45 +21,49 @@
class TestrunAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunAttachmentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_included_item.py
index 9b7f3401..048b776f 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_attachments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response.py
index cfea3168..58edcd65 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response.py
@@ -30,29 +30,26 @@
class TestrunCommentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestrunCommentsListGetResponseMeta]):
data (Union[Unset, List['TestrunCommentsListGetResponseDataItem']]):
included (Union[Unset, List['TestrunCommentsListGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, TestrunCommentsListGetResponseLinks]):
+ meta (Union[Unset, TestrunCommentsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestrunCommentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TestrunCommentsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["TestrunCommentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TestrunCommentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestrunCommentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunCommentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunCommentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunCommentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunCommentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunCommentsListGetResponseMeta.from_dict(_meta)
+
testrun_comments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testrun_comments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item.py
index 8d020293..1cad2fec 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TestrunCommentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunCommentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestrunCommentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestrunCommentsListGetResponseDataItemMeta]):
links (Union[Unset, TestrunCommentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestrunCommentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestrunCommentsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class TestrunCommentsListGetResponseDataItem:
relationships: Union[
Unset, "TestrunCommentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestrunCommentsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TestrunCommentsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TestrunCommentsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunCommentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunCommentsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunCommentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunCommentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunCommentsListGetResponseDataItemMeta.from_dict(_meta)
+
testrun_comments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrun_comments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item.py
index 51e55c2d..b3067b79 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrunCommentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunCommentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunCommentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrun_comments_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item_source.py
index 642a5d21..a7a1695c 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrunCommentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunCommentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrunCommentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestrunCommentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrun_comments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_author_data.py
index 0f98ef9d..0ce34240 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_author_data.py
@@ -20,45 +20,49 @@
class TestrunCommentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_child_comments_data_item.py
index 64a8260d..427d6d8f 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class TestrunCommentsListGetResponseDataItemRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_list_get_response_data_item_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_list_get_response_data_item_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_parent_comment_data.py
index 03c62dc9..2b56694b 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class TestrunCommentsListGetResponseDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListGetResponseDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_list_get_response_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_list_get_response_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_project_data.py
index d95256fc..5384b116 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_data_item_relationships_project_data.py
@@ -20,45 +20,49 @@
class TestrunCommentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_included_item.py
index a6d538fe..499cbc38 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunCommentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_links.py
index fd3e0181..a80c5f95 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_get_response_links.py
@@ -15,73 +15,73 @@
class TestrunCommentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
testrun_comments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
testrun_comments_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request.py
new file mode 100644
index 00000000..a708b63a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrun_comments_list_patch_request_data_item import (
+ TestrunCommentsListPatchRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrunCommentsListPatchRequest")
+
+
+@_attrs_define
+class TestrunCommentsListPatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrunCommentsListPatchRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestrunCommentsListPatchRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrun_comments_list_patch_request_data_item import (
+ TestrunCommentsListPatchRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrunCommentsListPatchRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testrun_comments_list_patch_request_obj = cls(
+ data=data,
+ )
+
+ testrun_comments_list_patch_request_obj.additional_properties = d
+ return testrun_comments_list_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item.py
new file mode 100644
index 00000000..2865247f
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item.py
@@ -0,0 +1,118 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testrun_comments_list_patch_request_data_item_type import (
+ TestrunCommentsListPatchRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testrun_comments_list_patch_request_data_item_attributes import (
+ TestrunCommentsListPatchRequestDataItemAttributes,
+ )
+
+
+T = TypeVar("T", bound="TestrunCommentsListPatchRequestDataItem")
+
+
+@_attrs_define
+class TestrunCommentsListPatchRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrunCommentsListPatchRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
+ attributes (Union[Unset, TestrunCommentsListPatchRequestDataItemAttributes]):
+ """
+
+ type: Union[Unset, TestrunCommentsListPatchRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TestrunCommentsListPatchRequestDataItemAttributes"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testrun_comments_list_patch_request_data_item_attributes import (
+ TestrunCommentsListPatchRequestDataItemAttributes,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrunCommentsListPatchRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunCommentsListPatchRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[
+ Unset, TestrunCommentsListPatchRequestDataItemAttributes
+ ]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = (
+ TestrunCommentsListPatchRequestDataItemAttributes.from_dict(
+ _attributes
+ )
+ )
+
+ testrun_comments_list_patch_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ )
+
+ testrun_comments_list_patch_request_data_item_obj.additional_properties = (
+ d
+ )
+ return testrun_comments_list_patch_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_attributes.py
new file mode 100644
index 00000000..bcc6c213
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_attributes.py
@@ -0,0 +1,65 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrunCommentsListPatchRequestDataItemAttributes")
+
+
+@_attrs_define
+class TestrunCommentsListPatchRequestDataItemAttributes:
+ """
+ Attributes:
+ resolved (Union[Unset, bool]):
+ """
+
+ resolved: Union[Unset, bool] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ resolved = self.resolved
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if resolved is not UNSET:
+ field_dict["resolved"] = resolved
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ resolved = d.pop("resolved", UNSET)
+
+ testrun_comments_list_patch_request_data_item_attributes_obj = cls(
+ resolved=resolved,
+ )
+
+ testrun_comments_list_patch_request_data_item_attributes_obj.additional_properties = (
+ d
+ )
+ return testrun_comments_list_patch_request_data_item_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_type.py
new file mode 100644
index 00000000..f9fa7a67
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_patch_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunCommentsListPatchRequestDataItemType(str, Enum):
+ TESTRUN_COMMENTS = "testrun_comments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_author_data.py
index 914550e3..b19fa06e 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_author_data.py
@@ -20,39 +20,41 @@
class TestrunCommentsListPostRequestDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, TestrunCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListPostRequestDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testrun_comments_list_post_request_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrun_comments_list_post_request_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_parent_comment_data.py
index 205d7f08..1897cf98 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_list_post_request_data_item_relationships_parent_comment_data.py
@@ -21,39 +21,41 @@
class TestrunCommentsListPostRequestDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
+ type (Union[Unset, TestrunCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsListPostRequestDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testrun_comments_list_post_request_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testrun_comments_list_post_request_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response.py
index f1dc3f23..68810c6b 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response.py
@@ -30,7 +30,8 @@ class TestrunCommentsSingleGetResponse:
data (Union[Unset, TestrunCommentsSingleGetResponseData]):
included (Union[Unset, List['TestrunCommentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TestrunCommentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data.py
index 587610e5..09568714 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data.py
@@ -38,8 +38,8 @@ class TestrunCommentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunCommentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestrunCommentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestrunCommentsSingleGetResponseDataMeta]):
links (Union[Unset, TestrunCommentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestrunCommentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestrunCommentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class TestrunCommentsSingleGetResponseData:
relationships: Union[
Unset, "TestrunCommentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestrunCommentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TestrunCommentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TestrunCommentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunCommentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunCommentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunCommentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -169,14 +162,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunCommentsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunCommentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunCommentsSingleGetResponseDataMeta.from_dict(_meta)
+
testrun_comments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testrun_comments_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item.py
index fba1d8c1..653c3401 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrunCommentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunCommentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunCommentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testrun_comments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testrun_comments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item_source.py
index cbfcfb5e..15491ad3 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TestrunCommentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunCommentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TestrunCommentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TestrunCommentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testrun_comments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_author_data.py
index fe370430..2da4b77a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_author_data.py
@@ -20,44 +20,48 @@
class TestrunCommentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunCommentsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_child_comments_data_item.py
index 640e0bdc..7871657d 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class TestrunCommentsSingleGetResponseDataRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_single_get_response_data_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_single_get_response_data_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_parent_comment_data.py
index 64824159..ef407185 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class TestrunCommentsSingleGetResponseDataRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunCommentsSingleGetResponseDataRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_single_get_response_data_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_single_get_response_data_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_project_data.py
index 2469c9ec..7814d663 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_data_relationships_project_data.py
@@ -20,44 +20,48 @@
class TestrunCommentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunCommentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunCommentsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testrun_comments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testrun_comments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_included_item.py
index 2e1eee54..a0511b3a 100644
--- a/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testrun_comments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunCommentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request.py
new file mode 100644
index 00000000..b77ff2f8
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_delete_request_data_item import (
+ TestrunsListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListDeleteRequest")
+
+
+@_attrs_define
+class TestrunsListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrunsListDeleteRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestrunsListDeleteRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_delete_request_data_item import (
+ TestrunsListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrunsListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testruns_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ testruns_list_delete_request_obj.additional_properties = d
+ return testruns_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item.py
new file mode 100644
index 00000000..39486eb9
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item.py
@@ -0,0 +1,82 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_delete_request_data_item_type import (
+ TestrunsListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TestrunsListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TestrunsListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrunsListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId.
+ """
+
+ type: Union[Unset, TestrunsListDeleteRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrunsListDeleteRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunsListDeleteRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ testruns_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ testruns_list_delete_request_data_item_obj.additional_properties = d
+ return testruns_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..9712ccc1
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListDeleteRequestDataItemType(str, Enum):
+ TESTRUNS = "testruns"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response.py
index d982de2f..9bf0069b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response.py
@@ -30,27 +30,24 @@
class TestrunsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TestrunsListGetResponseMeta]):
data (Union[Unset, List['TestrunsListGetResponseDataItem']]):
included (Union[Unset, List['TestrunsListGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, TestrunsListGetResponseLinks]):
+ meta (Union[Unset, TestrunsListGetResponseMeta]):
"""
- meta: Union[Unset, "TestrunsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TestrunsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["TestrunsListGetResponseIncludedItem"]] = UNSET
links: Union[Unset, "TestrunsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TestrunsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -69,17 +66,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -99,13 +100,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -131,11 +125,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunsListGetResponseMeta.from_dict(_meta)
+
testruns_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
testruns_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item.py
index 819e619d..7ea64f93 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TestrunsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TestrunsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TestrunsListGetResponseDataItemMeta]):
links (Union[Unset, TestrunsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TestrunsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TestrunsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class TestrunsListGetResponseDataItem:
relationships: Union[
Unset, "TestrunsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TestrunsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TestrunsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TestrunsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunsListGetResponseDataItemMeta.from_dict(_meta)
+
testruns_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testruns_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_attributes.py
index 8a3f5b67..597facab 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_attributes.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_attributes.py
@@ -31,7 +31,7 @@ class TestrunsListGetResponseDataItemAttributes:
group_id (Union[Unset, str]): Example: Group ID.
home_page_content (Union[Unset, TestrunsListGetResponseDataItemAttributesHomePageContent]):
id (Union[Unset, str]): Example: ID.
- id_prefix (Union[Unset, str]): Example: ID Prefix.
+ id_prefix (Union[Unset, str]): Example: MyTestRunIdPrefix.
is_template (Union[Unset, bool]):
keep_in_history (Union[Unset, bool]):
query (Union[Unset, str]): Example: Query.
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_links.py
index ce689b6c..d719fe9b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrunsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/testrun?id=MyTestRunId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
testruns_list_get_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
testruns_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item.py
index bbb2d00d..7fb6b40f 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrunsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testruns_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testruns_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item_source.py
index 46c9e32e..0f34935a 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class TestrunsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TestrunsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class TestrunsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, TestrunsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testruns_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_author_data.py
index 3d759071..0f994954 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_author_data.py
@@ -20,44 +20,48 @@
class TestrunsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsAuthorDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_author_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_document_data.py
index cefc9576..3070b16b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_document_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_document_data.py
@@ -20,44 +20,48 @@
class TestrunsListGetResponseDataItemRelationshipsDocumentData:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsDocumentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsDocumentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsDocumentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsDocumentDataType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_document_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_list_get_response_data_item_relationships_document_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_data.py
index ce1a1b30..751c5799 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_data.py
@@ -20,44 +20,48 @@
class TestrunsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsProjectDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_project_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_span_data_item.py
index e3976175..eee6f353 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_project_span_data_item.py
@@ -21,45 +21,49 @@
class TestrunsListGetResponseDataItemRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsListGetResponseDataItemRelationshipsProjectSpanDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_list_get_response_data_item_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_summary_defect_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_summary_defect_data.py
index 047279e5..6ad0b525 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_summary_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_summary_defect_data.py
@@ -20,45 +20,49 @@
class TestrunsListGetResponseDataItemRelationshipsSummaryDefectData:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsSummaryDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsSummaryDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsListGetResponseDataItemRelationshipsSummaryDefectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_summary_defect_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_list_get_response_data_item_relationships_summary_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_template_data.py
index 7cc062f4..63e1a684 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_data_item_relationships_template_data.py
@@ -20,44 +20,48 @@
class TestrunsListGetResponseDataItemRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListGetResponseDataItemRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListGetResponseDataItemRelationshipsTemplateDataType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_list_get_response_data_item_relationships_template_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_list_get_response_data_item_relationships_template_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_included_item.py
index f23219c9..7cae35f0 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_links.py
index 9b0d23a4..0fa3f59b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_get_response_links.py
@@ -15,83 +15,83 @@
class TestrunsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=6.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/testruns.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
-
portal = self.portal
+ prev = self.prev
+
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
if portal is not UNSET:
field_dict["portal"] = portal
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
-
portal = d.pop("portal", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
+
testruns_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
portal=portal,
+ prev=prev,
+ self_=self_,
)
testruns_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request.py
new file mode 100644
index 00000000..35816fec
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item import (
+ TestrunsListPatchRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListPatchRequest")
+
+
+@_attrs_define
+class TestrunsListPatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrunsListPatchRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TestrunsListPatchRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item import (
+ TestrunsListPatchRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrunsListPatchRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testruns_list_patch_request_obj = cls(
+ data=data,
+ )
+
+ testruns_list_patch_request_obj.additional_properties = d
+ return testruns_list_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item.py
new file mode 100644
index 00000000..a765bcf9
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item.py
@@ -0,0 +1,142 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_patch_request_data_item_type import (
+ TestrunsListPatchRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_attributes import (
+ TestrunsListPatchRequestDataItemAttributes,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships import (
+ TestrunsListPatchRequestDataItemRelationships,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListPatchRequestDataItem")
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TestrunsListPatchRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId.
+ attributes (Union[Unset, TestrunsListPatchRequestDataItemAttributes]):
+ relationships (Union[Unset, TestrunsListPatchRequestDataItemRelationships]):
+ """
+
+ type: Union[Unset, TestrunsListPatchRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[Unset, "TestrunsListPatchRequestDataItemAttributes"] = (
+ UNSET
+ )
+ relationships: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationships"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ relationships: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.relationships, Unset):
+ relationships = self.relationships.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+ if relationships is not UNSET:
+ field_dict["relationships"] = relationships
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_attributes import (
+ TestrunsListPatchRequestDataItemAttributes,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships import (
+ TestrunsListPatchRequestDataItemRelationships,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TestrunsListPatchRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunsListPatchRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[Unset, TestrunsListPatchRequestDataItemAttributes]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = TestrunsListPatchRequestDataItemAttributes.from_dict(
+ _attributes
+ )
+
+ _relationships = d.pop("relationships", UNSET)
+ relationships: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationships
+ ]
+ if isinstance(_relationships, Unset):
+ relationships = UNSET
+ else:
+ relationships = (
+ TestrunsListPatchRequestDataItemRelationships.from_dict(
+ _relationships
+ )
+ )
+
+ testruns_list_patch_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ relationships=relationships,
+ )
+
+ testruns_list_patch_request_data_item_obj.additional_properties = d
+ return testruns_list_patch_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes.py
new file mode 100644
index 00000000..03cef3df
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes.py
@@ -0,0 +1,206 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+import datetime
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+from dateutil.parser import isoparse
+
+from ..models.testruns_list_patch_request_data_item_attributes_select_test_cases_by import (
+ TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_attributes_home_page_content import (
+ TestrunsListPatchRequestDataItemAttributesHomePageContent,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListPatchRequestDataItemAttributes")
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemAttributes:
+ """
+ Attributes:
+ finished_on (Union[Unset, datetime.datetime]): Example: 1970-01-01T00:00:00Z.
+ group_id (Union[Unset, str]): Example: Group ID.
+ home_page_content (Union[Unset, TestrunsListPatchRequestDataItemAttributesHomePageContent]):
+ id_prefix (Union[Unset, str]): Example: MyTestRunIdPrefix.
+ keep_in_history (Union[Unset, bool]):
+ query (Union[Unset, str]): Example: Query.
+ select_test_cases_by (Union[Unset, TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy]): Example:
+ manualSelection.
+ status (Union[Unset, str]): Example: open.
+ title (Union[Unset, str]): Example: Title.
+ type (Union[Unset, str]): Example: manual.
+ use_report_from_template (Union[Unset, bool]):
+ """
+
+ finished_on: Union[Unset, datetime.datetime] = UNSET
+ group_id: Union[Unset, str] = UNSET
+ home_page_content: Union[
+ Unset, "TestrunsListPatchRequestDataItemAttributesHomePageContent"
+ ] = UNSET
+ id_prefix: Union[Unset, str] = UNSET
+ keep_in_history: Union[Unset, bool] = UNSET
+ query: Union[Unset, str] = UNSET
+ select_test_cases_by: Union[
+ Unset, TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy
+ ] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
+ type: Union[Unset, str] = UNSET
+ use_report_from_template: Union[Unset, bool] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ finished_on: Union[Unset, str] = UNSET
+ if not isinstance(self.finished_on, Unset):
+ finished_on = self.finished_on.isoformat()
+
+ group_id = self.group_id
+
+ home_page_content: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.home_page_content, Unset):
+ home_page_content = self.home_page_content.to_dict()
+
+ id_prefix = self.id_prefix
+
+ keep_in_history = self.keep_in_history
+
+ query = self.query
+
+ select_test_cases_by: Union[Unset, str] = UNSET
+ if not isinstance(self.select_test_cases_by, Unset):
+ select_test_cases_by = self.select_test_cases_by.value
+
+ status = self.status
+
+ title = self.title
+
+ type = self.type
+
+ use_report_from_template = self.use_report_from_template
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if finished_on is not UNSET:
+ field_dict["finishedOn"] = finished_on
+ if group_id is not UNSET:
+ field_dict["groupId"] = group_id
+ if home_page_content is not UNSET:
+ field_dict["homePageContent"] = home_page_content
+ if id_prefix is not UNSET:
+ field_dict["idPrefix"] = id_prefix
+ if keep_in_history is not UNSET:
+ field_dict["keepInHistory"] = keep_in_history
+ if query is not UNSET:
+ field_dict["query"] = query
+ if select_test_cases_by is not UNSET:
+ field_dict["selectTestCasesBy"] = select_test_cases_by
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
+ if type is not UNSET:
+ field_dict["type"] = type
+ if use_report_from_template is not UNSET:
+ field_dict["useReportFromTemplate"] = use_report_from_template
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_attributes_home_page_content import (
+ TestrunsListPatchRequestDataItemAttributesHomePageContent,
+ )
+
+ d = src_dict.copy()
+ _finished_on = d.pop("finishedOn", UNSET)
+ finished_on: Union[Unset, datetime.datetime]
+ if isinstance(_finished_on, Unset):
+ finished_on = UNSET
+ else:
+ finished_on = isoparse(_finished_on)
+
+ group_id = d.pop("groupId", UNSET)
+
+ _home_page_content = d.pop("homePageContent", UNSET)
+ home_page_content: Union[
+ Unset, TestrunsListPatchRequestDataItemAttributesHomePageContent
+ ]
+ if isinstance(_home_page_content, Unset):
+ home_page_content = UNSET
+ else:
+ home_page_content = TestrunsListPatchRequestDataItemAttributesHomePageContent.from_dict(
+ _home_page_content
+ )
+
+ id_prefix = d.pop("idPrefix", UNSET)
+
+ keep_in_history = d.pop("keepInHistory", UNSET)
+
+ query = d.pop("query", UNSET)
+
+ _select_test_cases_by = d.pop("selectTestCasesBy", UNSET)
+ select_test_cases_by: Union[
+ Unset, TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy
+ ]
+ if isinstance(_select_test_cases_by, Unset):
+ select_test_cases_by = UNSET
+ else:
+ select_test_cases_by = (
+ TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy(
+ _select_test_cases_by
+ )
+ )
+
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
+ type = d.pop("type", UNSET)
+
+ use_report_from_template = d.pop("useReportFromTemplate", UNSET)
+
+ testruns_list_patch_request_data_item_attributes_obj = cls(
+ finished_on=finished_on,
+ group_id=group_id,
+ home_page_content=home_page_content,
+ id_prefix=id_prefix,
+ keep_in_history=keep_in_history,
+ query=query,
+ select_test_cases_by=select_test_cases_by,
+ status=status,
+ title=title,
+ type=type,
+ use_report_from_template=use_report_from_template,
+ )
+
+ testruns_list_patch_request_data_item_attributes_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content.py
new file mode 100644
index 00000000..05cb2f26
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content.py
@@ -0,0 +1,95 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_patch_request_data_item_attributes_home_page_content_type import (
+ TestrunsListPatchRequestDataItemAttributesHomePageContentType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TestrunsListPatchRequestDataItemAttributesHomePageContent"
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemAttributesHomePageContent:
+ """
+ Attributes:
+ type (Union[Unset, TestrunsListPatchRequestDataItemAttributesHomePageContentType]):
+ value (Union[Unset, str]): Example: My text value.
+ """
+
+ type: Union[
+ Unset, TestrunsListPatchRequestDataItemAttributesHomePageContentType
+ ] = UNSET
+ value: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ value = self.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if value is not UNSET:
+ field_dict["value"] = value
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemAttributesHomePageContentType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = (
+ TestrunsListPatchRequestDataItemAttributesHomePageContentType(
+ _type
+ )
+ )
+
+ value = d.pop("value", UNSET)
+
+ testruns_list_patch_request_data_item_attributes_home_page_content_obj = cls(
+ type=type,
+ value=value,
+ )
+
+ testruns_list_patch_request_data_item_attributes_home_page_content_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_attributes_home_page_content_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content_type.py
new file mode 100644
index 00000000..1ccf39e8
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_home_page_content_type.py
@@ -0,0 +1,12 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemAttributesHomePageContentType(str, Enum):
+ TEXTHTML = "text/html"
+ TEXTPLAIN = "text/plain"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_select_test_cases_by.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_select_test_cases_by.py
new file mode 100644
index 00000000..c9938ece
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_attributes_select_test_cases_by.py
@@ -0,0 +1,16 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemAttributesSelectTestCasesBy(str, Enum):
+ AUTOMATEDPROCESS = "automatedProcess"
+ DYNAMICLIVEDOC = "dynamicLiveDoc"
+ DYNAMICQUERYRESULT = "dynamicQueryResult"
+ MANUALSELECTION = "manualSelection"
+ STATICLIVEDOC = "staticLiveDoc"
+ STATICQUERYRESULT = "staticQueryResult"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships.py
new file mode 100644
index 00000000..fa51bd04
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships.py
@@ -0,0 +1,144 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_relationships_document import (
+ TestrunsListPatchRequestDataItemRelationshipsDocument,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships_project_span import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpan,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships_summary_defect import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefect,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListPatchRequestDataItemRelationships")
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationships:
+ """
+ Attributes:
+ document (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsDocument]):
+ project_span (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsProjectSpan]):
+ summary_defect (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsSummaryDefect]):
+ """
+
+ document: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationshipsDocument"
+ ] = UNSET
+ project_span: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationshipsProjectSpan"
+ ] = UNSET
+ summary_defect: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationshipsSummaryDefect"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ document: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.document, Unset):
+ document = self.document.to_dict()
+
+ project_span: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.project_span, Unset):
+ project_span = self.project_span.to_dict()
+
+ summary_defect: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.summary_defect, Unset):
+ summary_defect = self.summary_defect.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if document is not UNSET:
+ field_dict["document"] = document
+ if project_span is not UNSET:
+ field_dict["projectSpan"] = project_span
+ if summary_defect is not UNSET:
+ field_dict["summaryDefect"] = summary_defect
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_relationships_document import (
+ TestrunsListPatchRequestDataItemRelationshipsDocument,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships_project_span import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpan,
+ )
+ from ..models.testruns_list_patch_request_data_item_relationships_summary_defect import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefect,
+ )
+
+ d = src_dict.copy()
+ _document = d.pop("document", UNSET)
+ document: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationshipsDocument
+ ]
+ if isinstance(_document, Unset):
+ document = UNSET
+ else:
+ document = TestrunsListPatchRequestDataItemRelationshipsDocument.from_dict(
+ _document
+ )
+
+ _project_span = d.pop("projectSpan", UNSET)
+ project_span: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationshipsProjectSpan
+ ]
+ if isinstance(_project_span, Unset):
+ project_span = UNSET
+ else:
+ project_span = TestrunsListPatchRequestDataItemRelationshipsProjectSpan.from_dict(
+ _project_span
+ )
+
+ _summary_defect = d.pop("summaryDefect", UNSET)
+ summary_defect: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationshipsSummaryDefect
+ ]
+ if isinstance(_summary_defect, Unset):
+ summary_defect = UNSET
+ else:
+ summary_defect = TestrunsListPatchRequestDataItemRelationshipsSummaryDefect.from_dict(
+ _summary_defect
+ )
+
+ testruns_list_patch_request_data_item_relationships_obj = cls(
+ document=document,
+ project_span=project_span,
+ summary_defect=summary_defect,
+ )
+
+ testruns_list_patch_request_data_item_relationships_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document.py
new file mode 100644
index 00000000..a54469a6
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document.py
@@ -0,0 +1,88 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_relationships_document_data import (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentData,
+ )
+
+
+T = TypeVar("T", bound="TestrunsListPatchRequestDataItemRelationshipsDocument")
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsDocument:
+ """
+ Attributes:
+ data (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsDocumentData]):
+ """
+
+ data: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationshipsDocumentData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_relationships_document_data import (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationshipsDocumentData
+ ]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TestrunsListPatchRequestDataItemRelationshipsDocumentData.from_dict(
+ _data
+ )
+
+ testruns_list_patch_request_data_item_relationships_document_obj = cls(
+ data=data,
+ )
+
+ testruns_list_patch_request_data_item_relationships_document_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_document_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data.py
new file mode 100644
index 00000000..1ca62b0a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data.py
@@ -0,0 +1,104 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_patch_request_data_item_relationships_document_data_type import (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TestrunsListPatchRequestDataItemRelationshipsDocumentData"
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsDocumentData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsDocumentDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
+ type: Union[
+ Unset, TestrunsListPatchRequestDataItemRelationshipsDocumentDataType
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsDocumentDataType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = (
+ TestrunsListPatchRequestDataItemRelationshipsDocumentDataType(
+ _type
+ )
+ )
+
+ testruns_list_patch_request_data_item_relationships_document_data_obj = cls(
+ id=id,
+ revision=revision,
+ type=type,
+ )
+
+ testruns_list_patch_request_data_item_relationships_document_data_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_document_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data_type.py
new file mode 100644
index 00000000..b2d43d97
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_document_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemRelationshipsDocumentDataType(str, Enum):
+ DOCUMENTS = "documents"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span.py
new file mode 100644
index 00000000..f1be6aa2
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_relationships_project_span_data_item import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem,
+ )
+
+
+T = TypeVar(
+ "T", bound="TestrunsListPatchRequestDataItemRelationshipsProjectSpan"
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsProjectSpan:
+ """
+ Attributes:
+ data (Union[Unset, List['TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem']]):
+ """
+
+ data: Union[
+ Unset,
+ List[
+ "TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem"
+ ],
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_relationships_project_span_data_item import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ testruns_list_patch_request_data_item_relationships_project_span_obj = cls(
+ data=data,
+ )
+
+ testruns_list_patch_request_data_item_relationships_project_span_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_project_span_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item.py
new file mode 100644
index 00000000..b5d673d3
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item.py
@@ -0,0 +1,95 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_patch_request_data_item_relationships_project_span_data_item_type import (
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T",
+ bound="TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem",
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItem:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType,
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType(
+ _type
+ )
+
+ testruns_list_patch_request_data_item_relationships_project_span_data_item_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ testruns_list_patch_request_data_item_relationships_project_span_data_item_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_project_span_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item_type.py
new file mode 100644
index 00000000..2bc77e4b
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_project_span_data_item_type.py
@@ -0,0 +1,13 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemRelationshipsProjectSpanDataItemType(
+ str, Enum
+):
+ PROJECTS = "projects"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect.py
new file mode 100644
index 00000000..5d8ae2f7
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect.py
@@ -0,0 +1,91 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.testruns_list_patch_request_data_item_relationships_summary_defect_data import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData,
+ )
+
+
+T = TypeVar(
+ "T", bound="TestrunsListPatchRequestDataItemRelationshipsSummaryDefect"
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsSummaryDefect:
+ """
+ Attributes:
+ data (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData]):
+ """
+
+ data: Union[
+ Unset, "TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.testruns_list_patch_request_data_item_relationships_summary_defect_data import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData,
+ ]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData.from_dict(
+ _data
+ )
+
+ testruns_list_patch_request_data_item_relationships_summary_defect_obj = cls(
+ data=data,
+ )
+
+ testruns_list_patch_request_data_item_relationships_summary_defect_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_summary_defect_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data.py
new file mode 100644
index 00000000..afd954c4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.testruns_list_patch_request_data_item_relationships_summary_defect_data_type import (
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData"
+)
+
+
+@_attrs_define
+class TestrunsListPatchRequestDataItemRelationshipsSummaryDefectData:
+ """
+ Attributes:
+ id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType]):
+ """
+
+ id: Union[Unset, str] = UNSET
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType,
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if id is not UNSET:
+ field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset,
+ TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType,
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType(
+ _type
+ )
+
+ testruns_list_patch_request_data_item_relationships_summary_defect_data_obj = cls(
+ id=id,
+ type=type,
+ )
+
+ testruns_list_patch_request_data_item_relationships_summary_defect_data_obj.additional_properties = (
+ d
+ )
+ return testruns_list_patch_request_data_item_relationships_summary_defect_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data_type.py
new file mode 100644
index 00000000..5fad6880
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_relationships_summary_defect_data_type.py
@@ -0,0 +1,13 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemRelationshipsSummaryDefectDataType(
+ str, Enum
+):
+ WORKITEMS = "workitems"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_type.py
new file mode 100644
index 00000000..bc8ddf84
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_patch_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TestrunsListPatchRequestDataItemType(str, Enum):
+ TESTRUNS = "testruns"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_attributes.py
index 989cfc70..b4fd1f7e 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_attributes.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_attributes.py
@@ -30,7 +30,7 @@ class TestrunsListPostRequestDataItemAttributes:
group_id (Union[Unset, str]): Example: Group ID.
home_page_content (Union[Unset, TestrunsListPostRequestDataItemAttributesHomePageContent]):
id (Union[Unset, str]): Example: ID.
- id_prefix (Union[Unset, str]): Example: ID Prefix.
+ id_prefix (Union[Unset, str]): Example: MyTestRunIdPrefix.
is_template (Union[Unset, bool]):
keep_in_history (Union[Unset, bool]):
query (Union[Unset, str]): Example: Query.
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_document_data.py
index ef22460e..67c5929b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_document_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_document_data.py
@@ -20,38 +20,48 @@
class TestrunsListPostRequestDataItemRelationshipsDocumentData:
"""
Attributes:
- type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsDocumentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsDocumentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListPostRequestDataItemRelationshipsDocumentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListPostRequestDataItemRelationshipsDocumentDataType
@@ -65,11 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
testruns_list_post_request_data_item_relationships_document_data_obj = cls(
- type=type,
id=id,
+ revision=revision,
+ type=type,
)
testruns_list_post_request_data_item_relationships_document_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_project_span_data_item.py
index 03fd3513..81c22487 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_project_span_data_item.py
@@ -21,39 +21,41 @@
class TestrunsListPostRequestDataItemRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsListPostRequestDataItemRelationshipsProjectSpanDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testruns_list_post_request_data_item_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
testruns_list_post_request_data_item_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_summary_defect_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_summary_defect_data.py
index badeb7f6..79b07808 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_summary_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_summary_defect_data.py
@@ -20,39 +20,41 @@
class TestrunsListPostRequestDataItemRelationshipsSummaryDefectData:
"""
Attributes:
- type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsSummaryDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsSummaryDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsListPostRequestDataItemRelationshipsSummaryDefectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testruns_list_post_request_data_item_relationships_summary_defect_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testruns_list_post_request_data_item_relationships_summary_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_template_data.py
index 6fe15cc4..4e9330d6 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_request_data_item_relationships_template_data.py
@@ -20,38 +20,40 @@
class TestrunsListPostRequestDataItemRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId.
+ type (Union[Unset, TestrunsListPostRequestDataItemRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsListPostRequestDataItemRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsListPostRequestDataItemRelationshipsTemplateDataType
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
testruns_list_post_request_data_item_relationships_template_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testruns_list_post_request_data_item_relationships_template_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/testruns_list_post_response_data_item_links.py
index 373d1a90..e97ce73a 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class TestrunsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/testrun?id=MyTestRunId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
testruns_list_post_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
testruns_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response.py
index 6aa39e05..bd86a12b 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response.py
@@ -29,8 +29,9 @@ class TestrunsSingleGetResponse:
Attributes:
data (Union[Unset, TestrunsSingleGetResponseData]):
included (Union[Unset, List['TestrunsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, TestrunsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data.py
index ac1923be..a606ed00 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data.py
@@ -38,8 +38,8 @@ class TestrunsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TestrunsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TestrunsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TestrunsSingleGetResponseDataMeta]):
links (Union[Unset, TestrunsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TestrunsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TestrunsSingleGetResponseDataType] = UNSET
@@ -49,8 +49,8 @@ class TestrunsSingleGetResponseData:
relationships: Union[
Unset, "TestrunsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TestrunsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TestrunsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TestrunsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -147,13 +147,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TestrunsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TestrunsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TestrunsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -161,14 +154,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TestrunsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TestrunsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TestrunsSingleGetResponseDataMeta.from_dict(_meta)
+
testruns_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
testruns_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_attributes.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_attributes.py
index 5cc6098b..e4182f72 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_attributes.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_attributes.py
@@ -31,7 +31,7 @@ class TestrunsSingleGetResponseDataAttributes:
group_id (Union[Unset, str]): Example: Group ID.
home_page_content (Union[Unset, TestrunsSingleGetResponseDataAttributesHomePageContent]):
id (Union[Unset, str]): Example: ID.
- id_prefix (Union[Unset, str]): Example: ID Prefix.
+ id_prefix (Union[Unset, str]): Example: MyTestRunIdPrefix.
is_template (Union[Unset, bool]):
keep_in_history (Union[Unset, bool]):
query (Union[Unset, str]): Example: Query.
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_links.py
index 0a47b77f..63274af3 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class TestrunsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/testrun?id=MyTestRunId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/testruns/MyTestRunId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
testruns_single_get_response_data_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
testruns_single_get_response_data_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item.py
index db4981f5..36a67744 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TestrunsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TestrunsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TestrunsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
testruns_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
testruns_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item_source.py
index 93fd4331..fbad280f 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class TestrunsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TestrunsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TestrunsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class TestrunsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, TestrunsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
testruns_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_author_data.py
index 6478bace..1dbaa82d 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class TestrunsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsAuthorDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_document_data.py
index da1c018f..19a78e60 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_document_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_document_data.py
@@ -20,44 +20,48 @@
class TestrunsSingleGetResponseDataRelationshipsDocumentData:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsDocumentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsDocumentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsDocumentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsDocumentDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_document_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_data.py
index 4745280f..62600e69 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_data.py
@@ -18,44 +18,48 @@
class TestrunsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsProjectDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_span_data_item.py
index 1b2343f5..94bf2ab4 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_project_span_data_item.py
@@ -20,45 +20,49 @@
class TestrunsSingleGetResponseDataRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsSingleGetResponseDataRelationshipsProjectSpanDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_single_get_response_data_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_summary_defect_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_summary_defect_data.py
index f2c2aed1..7379f82d 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_summary_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_summary_defect_data.py
@@ -20,44 +20,48 @@
class TestrunsSingleGetResponseDataRelationshipsSummaryDefectData:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsSummaryDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsSummaryDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsSummaryDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_summary_defect_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
testruns_single_get_response_data_relationships_summary_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_template_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_template_data.py
index e04acc84..1c31c3b4 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_template_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_data_relationships_template_data.py
@@ -20,44 +20,48 @@
class TestrunsSingleGetResponseDataRelationshipsTemplateData:
"""
Attributes:
- type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsTemplateDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyTestRunId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSingleGetResponseDataRelationshipsTemplateDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsTemplateDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsSingleGetResponseDataRelationshipsTemplateDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
testruns_single_get_response_data_relationships_template_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_included_item.py
index 3c6290dd..bd390bc9 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TestrunsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_attributes.py b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_attributes.py
index 776e3701..80adba77 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_attributes.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_attributes.py
@@ -29,7 +29,7 @@ class TestrunsSinglePatchRequestDataAttributes:
finished_on (Union[Unset, datetime.datetime]): Example: 1970-01-01T00:00:00Z.
group_id (Union[Unset, str]): Example: Group ID.
home_page_content (Union[Unset, TestrunsSinglePatchRequestDataAttributesHomePageContent]):
- id_prefix (Union[Unset, str]): Example: ID Prefix.
+ id_prefix (Union[Unset, str]): Example: MyTestRunIdPrefix.
keep_in_history (Union[Unset, bool]):
query (Union[Unset, str]): Example: Query.
select_test_cases_by (Union[Unset, TestrunsSinglePatchRequestDataAttributesSelectTestCasesBy]): Example:
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_document_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_document_data.py
index 4b95562b..13bd7f69 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_document_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_document_data.py
@@ -20,38 +20,48 @@
class TestrunsSinglePatchRequestDataRelationshipsDocumentData:
"""
Attributes:
- type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsDocumentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsDocumentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSinglePatchRequestDataRelationshipsDocumentDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
+ revision = self.revision
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if revision is not UNSET:
+ field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, TestrunsSinglePatchRequestDataRelationshipsDocumentDataType
@@ -63,12 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testruns_single_patch_request_data_relationships_document_data_obj = (
cls(
- type=type,
id=id,
+ revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_project_span_data_item.py b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_project_span_data_item.py
index 46de443b..a18ca152 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_project_span_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_project_span_data_item.py
@@ -20,39 +20,41 @@
class TestrunsSinglePatchRequestDataRelationshipsProjectSpanDataItem:
"""
Attributes:
- type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsProjectSpanDataItemType]):
id (Union[Unset, str]): Example: MyProjectId.
+ type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsProjectSpanDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
TestrunsSinglePatchRequestDataRelationshipsProjectSpanDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testruns_single_patch_request_data_relationships_project_span_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
testruns_single_patch_request_data_relationships_project_span_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_summary_defect_data.py b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_summary_defect_data.py
index 4d6f33b2..efcb419c 100644
--- a/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_summary_defect_data.py
+++ b/polarion_rest_api_client/open_api_client/models/testruns_single_patch_request_data_relationships_summary_defect_data.py
@@ -20,38 +20,40 @@
class TestrunsSinglePatchRequestDataRelationshipsSummaryDefectData:
"""
Attributes:
- type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsSummaryDefectDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId.
+ type (Union[Unset, TestrunsSinglePatchRequestDataRelationshipsSummaryDefectDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, TestrunsSinglePatchRequestDataRelationshipsSummaryDefectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
testruns_single_patch_request_data_relationships_summary_defect_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
testruns_single_patch_request_data_relationships_summary_defect_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response.py
index 90bd57de..57e415cf 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response.py
@@ -30,29 +30,26 @@
class TeststepResultsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TeststepResultsListGetResponseMeta]):
data (Union[Unset, List['TeststepResultsListGetResponseDataItem']]):
included (Union[Unset, List['TeststepResultsListGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, TeststepResultsListGetResponseLinks]):
+ meta (Union[Unset, TeststepResultsListGetResponseMeta]):
"""
- meta: Union[Unset, "TeststepResultsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TeststepResultsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["TeststepResultsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "TeststepResultsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TeststepResultsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepResultsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepResultsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TeststepResultsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepResultsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepResultsListGetResponseMeta.from_dict(_meta)
+
teststep_results_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
teststep_results_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item.py
index 141b96f9..d099ff9d 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class TeststepResultsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepResultsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TeststepResultsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TeststepResultsListGetResponseDataItemMeta]):
links (Union[Unset, TeststepResultsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TeststepResultsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TeststepResultsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class TeststepResultsListGetResponseDataItem:
relationships: Union[
Unset, "TeststepResultsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "TeststepResultsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TeststepResultsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TeststepResultsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepResultsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepResultsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TeststepResultsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepResultsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepResultsListGetResponseDataItemMeta.from_dict(_meta)
+
teststep_results_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
teststep_results_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item.py
index 8d22afa2..3ccec769 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TeststepResultsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepResultsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TeststepResultsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststep_results_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item_source.py
index 7b383a4b..d54a246f 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TeststepResultsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepResultsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TeststepResultsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TeststepResultsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
teststep_results_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_relationships_test_step_data.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_relationships_test_step_data.py
index f9c4ea42..66f55640 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_relationships_test_step_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_data_item_relationships_test_step_data.py
@@ -21,45 +21,49 @@
class TeststepResultsListGetResponseDataItemRelationshipsTestStepData:
"""
Attributes:
- type (Union[Unset, TeststepResultsListGetResponseDataItemRelationshipsTestStepDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepResultsListGetResponseDataItemRelationshipsTestStepDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepResultsListGetResponseDataItemRelationshipsTestStepDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststep_results_list_get_response_data_item_relationships_test_step_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststep_results_list_get_response_data_item_relationships_test_step_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_included_item.py
index 93509277..dbe01fbd 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TeststepResultsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_links.py
index b4312c2e..c9b56d52 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_get_response_links.py
@@ -15,73 +15,73 @@
class TeststepResultsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
/testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
- testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
+ testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
teststep_results_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
teststep_results_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request.py
new file mode 100644
index 00000000..f1c40063
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request.py
@@ -0,0 +1,85 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_list_patch_request_data_item import (
+ TeststepResultsListPatchRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsListPatchRequest")
+
+
+@_attrs_define
+class TeststepResultsListPatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TeststepResultsListPatchRequestDataItem']]):
+ """
+
+ data: Union[Unset, List["TeststepResultsListPatchRequestDataItem"]] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_list_patch_request_data_item import (
+ TeststepResultsListPatchRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = TeststepResultsListPatchRequestDataItem.from_dict(
+ data_item_data
+ )
+
+ data.append(data_item)
+
+ teststep_results_list_patch_request_obj = cls(
+ data=data,
+ )
+
+ teststep_results_list_patch_request_obj.additional_properties = d
+ return teststep_results_list_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item.py
new file mode 100644
index 00000000..80147650
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item.py
@@ -0,0 +1,118 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststep_results_list_patch_request_data_item_type import (
+ TeststepResultsListPatchRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_list_patch_request_data_item_attributes import (
+ TeststepResultsListPatchRequestDataItemAttributes,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsListPatchRequestDataItem")
+
+
+@_attrs_define
+class TeststepResultsListPatchRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TeststepResultsListPatchRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1.
+ attributes (Union[Unset, TeststepResultsListPatchRequestDataItemAttributes]):
+ """
+
+ type: Union[Unset, TeststepResultsListPatchRequestDataItemType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TeststepResultsListPatchRequestDataItemAttributes"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_list_patch_request_data_item_attributes import (
+ TeststepResultsListPatchRequestDataItemAttributes,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TeststepResultsListPatchRequestDataItemType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TeststepResultsListPatchRequestDataItemType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[
+ Unset, TeststepResultsListPatchRequestDataItemAttributes
+ ]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = (
+ TeststepResultsListPatchRequestDataItemAttributes.from_dict(
+ _attributes
+ )
+ )
+
+ teststep_results_list_patch_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ )
+
+ teststep_results_list_patch_request_data_item_obj.additional_properties = (
+ d
+ )
+ return teststep_results_list_patch_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes.py
new file mode 100644
index 00000000..4d2884b8
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes.py
@@ -0,0 +1,97 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_list_patch_request_data_item_attributes_comment import (
+ TeststepResultsListPatchRequestDataItemAttributesComment,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsListPatchRequestDataItemAttributes")
+
+
+@_attrs_define
+class TeststepResultsListPatchRequestDataItemAttributes:
+ """
+ Attributes:
+ comment (Union[Unset, TeststepResultsListPatchRequestDataItemAttributesComment]):
+ result (Union[Unset, str]): Example: passed.
+ """
+
+ comment: Union[
+ Unset, "TeststepResultsListPatchRequestDataItemAttributesComment"
+ ] = UNSET
+ result: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ comment: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.comment, Unset):
+ comment = self.comment.to_dict()
+
+ result = self.result
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if comment is not UNSET:
+ field_dict["comment"] = comment
+ if result is not UNSET:
+ field_dict["result"] = result
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_list_patch_request_data_item_attributes_comment import (
+ TeststepResultsListPatchRequestDataItemAttributesComment,
+ )
+
+ d = src_dict.copy()
+ _comment = d.pop("comment", UNSET)
+ comment: Union[
+ Unset, TeststepResultsListPatchRequestDataItemAttributesComment
+ ]
+ if isinstance(_comment, Unset):
+ comment = UNSET
+ else:
+ comment = TeststepResultsListPatchRequestDataItemAttributesComment.from_dict(
+ _comment
+ )
+
+ result = d.pop("result", UNSET)
+
+ teststep_results_list_patch_request_data_item_attributes_obj = cls(
+ comment=comment,
+ result=result,
+ )
+
+ teststep_results_list_patch_request_data_item_attributes_obj.additional_properties = (
+ d
+ )
+ return teststep_results_list_patch_request_data_item_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment.py
new file mode 100644
index 00000000..af869240
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment.py
@@ -0,0 +1,94 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststep_results_list_patch_request_data_item_attributes_comment_type import (
+ TeststepResultsListPatchRequestDataItemAttributesCommentType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TeststepResultsListPatchRequestDataItemAttributesComment"
+)
+
+
+@_attrs_define
+class TeststepResultsListPatchRequestDataItemAttributesComment:
+ """
+ Attributes:
+ type (Union[Unset, TeststepResultsListPatchRequestDataItemAttributesCommentType]):
+ value (Union[Unset, str]): Example: My text value.
+ """
+
+ type: Union[
+ Unset, TeststepResultsListPatchRequestDataItemAttributesCommentType
+ ] = UNSET
+ value: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ value = self.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if value is not UNSET:
+ field_dict["value"] = value
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, TeststepResultsListPatchRequestDataItemAttributesCommentType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = (
+ TeststepResultsListPatchRequestDataItemAttributesCommentType(
+ _type
+ )
+ )
+
+ value = d.pop("value", UNSET)
+
+ teststep_results_list_patch_request_data_item_attributes_comment_obj = cls(
+ type=type,
+ value=value,
+ )
+
+ teststep_results_list_patch_request_data_item_attributes_comment_obj.additional_properties = (
+ d
+ )
+ return teststep_results_list_patch_request_data_item_attributes_comment_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment_type.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment_type.py
new file mode 100644
index 00000000..5b2a2b13
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_attributes_comment_type.py
@@ -0,0 +1,12 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepResultsListPatchRequestDataItemAttributesCommentType(str, Enum):
+ TEXTHTML = "text/html"
+ TEXTPLAIN = "text/plain"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_type.py
new file mode 100644
index 00000000..23620b6d
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_list_patch_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepResultsListPatchRequestDataItemType(str, Enum):
+ TESTSTEP_RESULTS = "teststep_results"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response.py
index 0b91b4c4..7a28f704 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response.py
@@ -30,7 +30,8 @@ class TeststepResultsSingleGetResponse:
data (Union[Unset, TeststepResultsSingleGetResponseData]):
included (Union[Unset, List['TeststepResultsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TeststepResultsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data.py
index 806b71d4..a2cce49a 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data.py
@@ -38,8 +38,8 @@ class TeststepResultsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepResultsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TeststepResultsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TeststepResultsSingleGetResponseDataMeta]):
links (Union[Unset, TeststepResultsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TeststepResultsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TeststepResultsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class TeststepResultsSingleGetResponseData:
relationships: Union[
Unset, "TeststepResultsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "TeststepResultsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TeststepResultsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TeststepResultsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepResultsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepResultsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TeststepResultsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -169,14 +162,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TeststepResultsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepResultsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepResultsSingleGetResponseDataMeta.from_dict(_meta)
+
teststep_results_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
teststep_results_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item.py
index 6cc701db..f0d05566 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TeststepResultsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepResultsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TeststepResultsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststep_results_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
teststep_results_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item_source.py
index 58deff3b..29a60bba 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class TeststepResultsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepResultsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TeststepResultsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class TeststepResultsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
teststep_results_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_relationships_test_step_data.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_relationships_test_step_data.py
index 0da39fad..9179bf3c 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_relationships_test_step_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_data_relationships_test_step_data.py
@@ -20,45 +20,49 @@
class TeststepResultsSingleGetResponseDataRelationshipsTestStepData:
"""
Attributes:
- type (Union[Unset, TeststepResultsSingleGetResponseDataRelationshipsTestStepDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepResultsSingleGetResponseDataRelationshipsTestStepDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepResultsSingleGetResponseDataRelationshipsTestStepDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststep_results_single_get_response_data_relationships_test_step_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststep_results_single_get_response_data_relationships_test_step_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_included_item.py
index 13d3eed8..ca6abd95 100644
--- a/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TeststepResultsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request.py
new file mode 100644
index 00000000..371951af
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request.py
@@ -0,0 +1,80 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_single_patch_request_data import (
+ TeststepResultsSinglePatchRequestData,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsSinglePatchRequest")
+
+
+@_attrs_define
+class TeststepResultsSinglePatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, TeststepResultsSinglePatchRequestData]):
+ """
+
+ data: Union[Unset, "TeststepResultsSinglePatchRequestData"] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_single_patch_request_data import (
+ TeststepResultsSinglePatchRequestData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, TeststepResultsSinglePatchRequestData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TeststepResultsSinglePatchRequestData.from_dict(_data)
+
+ teststep_results_single_patch_request_obj = cls(
+ data=data,
+ )
+
+ teststep_results_single_patch_request_obj.additional_properties = d
+ return teststep_results_single_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data.py
new file mode 100644
index 00000000..19b790e4
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data.py
@@ -0,0 +1,118 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststep_results_single_patch_request_data_type import (
+ TeststepResultsSinglePatchRequestDataType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_single_patch_request_data_attributes import (
+ TeststepResultsSinglePatchRequestDataAttributes,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsSinglePatchRequestData")
+
+
+@_attrs_define
+class TeststepResultsSinglePatchRequestData:
+ """
+ Attributes:
+ type (Union[Unset, TeststepResultsSinglePatchRequestDataType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1.
+ attributes (Union[Unset, TeststepResultsSinglePatchRequestDataAttributes]):
+ """
+
+ type: Union[Unset, TeststepResultsSinglePatchRequestDataType] = UNSET
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TeststepResultsSinglePatchRequestDataAttributes"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_single_patch_request_data_attributes import (
+ TeststepResultsSinglePatchRequestDataAttributes,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TeststepResultsSinglePatchRequestDataType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TeststepResultsSinglePatchRequestDataType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[
+ Unset, TeststepResultsSinglePatchRequestDataAttributes
+ ]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = (
+ TeststepResultsSinglePatchRequestDataAttributes.from_dict(
+ _attributes
+ )
+ )
+
+ teststep_results_single_patch_request_data_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ )
+
+ teststep_results_single_patch_request_data_obj.additional_properties = (
+ d
+ )
+ return teststep_results_single_patch_request_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes.py
new file mode 100644
index 00000000..595a276e
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes.py
@@ -0,0 +1,97 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststep_results_single_patch_request_data_attributes_comment import (
+ TeststepResultsSinglePatchRequestDataAttributesComment,
+ )
+
+
+T = TypeVar("T", bound="TeststepResultsSinglePatchRequestDataAttributes")
+
+
+@_attrs_define
+class TeststepResultsSinglePatchRequestDataAttributes:
+ """
+ Attributes:
+ comment (Union[Unset, TeststepResultsSinglePatchRequestDataAttributesComment]):
+ result (Union[Unset, str]): Example: passed.
+ """
+
+ comment: Union[
+ Unset, "TeststepResultsSinglePatchRequestDataAttributesComment"
+ ] = UNSET
+ result: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ comment: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.comment, Unset):
+ comment = self.comment.to_dict()
+
+ result = self.result
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if comment is not UNSET:
+ field_dict["comment"] = comment
+ if result is not UNSET:
+ field_dict["result"] = result
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststep_results_single_patch_request_data_attributes_comment import (
+ TeststepResultsSinglePatchRequestDataAttributesComment,
+ )
+
+ d = src_dict.copy()
+ _comment = d.pop("comment", UNSET)
+ comment: Union[
+ Unset, TeststepResultsSinglePatchRequestDataAttributesComment
+ ]
+ if isinstance(_comment, Unset):
+ comment = UNSET
+ else:
+ comment = TeststepResultsSinglePatchRequestDataAttributesComment.from_dict(
+ _comment
+ )
+
+ result = d.pop("result", UNSET)
+
+ teststep_results_single_patch_request_data_attributes_obj = cls(
+ comment=comment,
+ result=result,
+ )
+
+ teststep_results_single_patch_request_data_attributes_obj.additional_properties = (
+ d
+ )
+ return teststep_results_single_patch_request_data_attributes_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment.py
new file mode 100644
index 00000000..1d3cfa73
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment.py
@@ -0,0 +1,96 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststep_results_single_patch_request_data_attributes_comment_type import (
+ TeststepResultsSinglePatchRequestDataAttributesCommentType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TeststepResultsSinglePatchRequestDataAttributesComment"
+)
+
+
+@_attrs_define
+class TeststepResultsSinglePatchRequestDataAttributesComment:
+ """
+ Attributes:
+ type (Union[Unset, TeststepResultsSinglePatchRequestDataAttributesCommentType]):
+ value (Union[Unset, str]): Example: My text value.
+ """
+
+ type: Union[
+ Unset, TeststepResultsSinglePatchRequestDataAttributesCommentType
+ ] = UNSET
+ value: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ value = self.value
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if value is not UNSET:
+ field_dict["value"] = value
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, TeststepResultsSinglePatchRequestDataAttributesCommentType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TeststepResultsSinglePatchRequestDataAttributesCommentType(
+ _type
+ )
+
+ value = d.pop("value", UNSET)
+
+ teststep_results_single_patch_request_data_attributes_comment_obj = (
+ cls(
+ type=type,
+ value=value,
+ )
+ )
+
+ teststep_results_single_patch_request_data_attributes_comment_obj.additional_properties = (
+ d
+ )
+ return (
+ teststep_results_single_patch_request_data_attributes_comment_obj
+ )
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment_type.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment_type.py
new file mode 100644
index 00000000..0935eb7d
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_attributes_comment_type.py
@@ -0,0 +1,12 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepResultsSinglePatchRequestDataAttributesCommentType(str, Enum):
+ TEXTHTML = "text/html"
+ TEXTPLAIN = "text/plain"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_type.py b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_type.py
new file mode 100644
index 00000000..4bc5cf9a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststep_results_single_patch_request_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepResultsSinglePatchRequestDataType(str, Enum):
+ TESTSTEP_RESULTS = "teststep_results"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request.py
new file mode 100644
index 00000000..52ee3231
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request.py
@@ -0,0 +1,91 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststepresult_attachments_list_delete_request_data_item import (
+ TeststepresultAttachmentsListDeleteRequestDataItem,
+ )
+
+
+T = TypeVar("T", bound="TeststepresultAttachmentsListDeleteRequest")
+
+
+@_attrs_define
+class TeststepresultAttachmentsListDeleteRequest:
+ """
+ Attributes:
+ data (Union[Unset, List['TeststepresultAttachmentsListDeleteRequestDataItem']]):
+ """
+
+ data: Union[
+ Unset, List["TeststepresultAttachmentsListDeleteRequestDataItem"]
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, List[Dict[str, Any]]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = []
+ for data_item_data in self.data:
+ data_item = data_item_data.to_dict()
+ data.append(data_item)
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststepresult_attachments_list_delete_request_data_item import (
+ TeststepresultAttachmentsListDeleteRequestDataItem,
+ )
+
+ d = src_dict.copy()
+ data = []
+ _data = d.pop("data", UNSET)
+ for data_item_data in _data or []:
+ data_item = (
+ TeststepresultAttachmentsListDeleteRequestDataItem.from_dict(
+ data_item_data
+ )
+ )
+
+ data.append(data_item)
+
+ teststepresult_attachments_list_delete_request_obj = cls(
+ data=data,
+ )
+
+ teststepresult_attachments_list_delete_request_obj.additional_properties = (
+ d
+ )
+ return teststepresult_attachments_list_delete_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item.py
new file mode 100644
index 00000000..ba5284ab
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item.py
@@ -0,0 +1,90 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststepresult_attachments_list_delete_request_data_item_type import (
+ TeststepresultAttachmentsListDeleteRequestDataItemType,
+)
+from ..types import UNSET, Unset
+
+T = TypeVar("T", bound="TeststepresultAttachmentsListDeleteRequestDataItem")
+
+
+@_attrs_define
+class TeststepresultAttachmentsListDeleteRequestDataItem:
+ """
+ Attributes:
+ type (Union[Unset, TeststepresultAttachmentsListDeleteRequestDataItemType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
+ """
+
+ type: Union[
+ Unset, TeststepresultAttachmentsListDeleteRequestDataItemType
+ ] = UNSET
+ id: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[
+ Unset, TeststepresultAttachmentsListDeleteRequestDataItemType
+ ]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TeststepresultAttachmentsListDeleteRequestDataItemType(
+ _type
+ )
+
+ id = d.pop("id", UNSET)
+
+ teststepresult_attachments_list_delete_request_data_item_obj = cls(
+ type=type,
+ id=id,
+ )
+
+ teststepresult_attachments_list_delete_request_data_item_obj.additional_properties = (
+ d
+ )
+ return teststepresult_attachments_list_delete_request_data_item_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item_type.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item_type.py
new file mode 100644
index 00000000..8f562ef1
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_delete_request_data_item_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepresultAttachmentsListDeleteRequestDataItemType(str, Enum):
+ TESTSTEPRESULT_ATTACHMENTS = "teststepresult_attachments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response.py
index 56cd1c5e..c21be74f 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response.py
@@ -30,15 +30,15 @@
class TeststepresultAttachmentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TeststepresultAttachmentsListGetResponseMeta]):
data (Union[Unset, List['TeststepresultAttachmentsListGetResponseDataItem']]):
included (Union[Unset, List['TeststepresultAttachmentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TeststepresultAttachmentsListGetResponseLinks]):
+ meta (Union[Unset, TeststepresultAttachmentsListGetResponseMeta]):
"""
- meta: Union[Unset, "TeststepresultAttachmentsListGetResponseMeta"] = UNSET
data: Union[
Unset, List["TeststepresultAttachmentsListGetResponseDataItem"]
] = UNSET
@@ -48,15 +48,12 @@ class TeststepresultAttachmentsListGetResponse:
links: Union[Unset, "TeststepresultAttachmentsListGetResponseLinks"] = (
UNSET
)
+ meta: Union[Unset, "TeststepresultAttachmentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -75,17 +72,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -105,15 +106,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepresultAttachmentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepresultAttachmentsListGetResponseMeta.from_dict(
- _meta
- )
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -145,11 +137,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepresultAttachmentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepresultAttachmentsListGetResponseMeta.from_dict(
+ _meta
+ )
+
teststepresult_attachments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
teststepresult_attachments_list_get_response_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item.py
index 760b0bde..fdc6a39a 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item.py
@@ -34,12 +34,12 @@ class TeststepresultAttachmentsListGetResponseDataItem:
"""
Attributes:
type (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemMeta]):
links (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemMeta]):
"""
type: Union[
@@ -53,12 +53,12 @@ class TeststepresultAttachmentsListGetResponseDataItem:
relationships: Union[
Unset, "TeststepresultAttachmentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[
- Unset, "TeststepresultAttachmentsListGetResponseDataItemMeta"
- ] = UNSET
links: Union[
Unset, "TeststepresultAttachmentsListGetResponseDataItemLinks"
] = UNSET
+ meta: Union[
+ Unset, "TeststepresultAttachmentsListGetResponseDataItemMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -80,14 +80,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -101,10 +101,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -160,6 +160,17 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
+ _links = d.pop("links", UNSET)
+ links: Union[
+ Unset, TeststepresultAttachmentsListGetResponseDataItemLinks
+ ]
+ if isinstance(_links, Unset):
+ links = UNSET
+ else:
+ links = TeststepresultAttachmentsListGetResponseDataItemLinks.from_dict(
+ _links
+ )
+
_meta = d.pop("meta", UNSET)
meta: Union[
Unset, TeststepresultAttachmentsListGetResponseDataItemMeta
@@ -173,25 +184,14 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _links = d.pop("links", UNSET)
- links: Union[
- Unset, TeststepresultAttachmentsListGetResponseDataItemLinks
- ]
- if isinstance(_links, Unset):
- links = UNSET
- else:
- links = TeststepresultAttachmentsListGetResponseDataItemLinks.from_dict(
- _links
- )
-
teststepresult_attachments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
teststepresult_attachments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_links.py
index 7b058d2b..ede19cf2 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class TeststepresultAttachmentsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
teststepresult_attachments_list_get_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
teststepresult_attachments_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item.py
index de58e29a..4912297d 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item.py
@@ -23,46 +23,46 @@
class TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststepresult_attachments_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
teststepresult_attachments_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item_source.py
index 3966c3ef..b8c1c39e 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class TeststepresultAttachmentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
teststepresult_attachments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_author_data.py
index 0690f3ea..c4a2024d 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_author_data.py
@@ -21,45 +21,49 @@
class TeststepresultAttachmentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepresultAttachmentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststepresult_attachments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststepresult_attachments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_project_data.py
index 11528cb3..0bf1d6a9 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class TeststepresultAttachmentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepresultAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepresultAttachmentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststepresult_attachments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststepresult_attachments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_included_item.py
index 7aa209bc..02f0215b 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TeststepresultAttachmentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_links.py
index a4e41964..25651e40 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_get_response_links.py
@@ -15,73 +15,73 @@
class TeststepresultAttachmentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
- testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId/
+ testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
teststepresult_attachments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
teststepresult_attachments_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_request_data_item.py
index d5fa3737..716753b1 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_request_data_item.py
@@ -25,17 +25,17 @@ class TeststepresultAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, TeststepresultAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, TeststepresultAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[
Unset, TeststepresultAttachmentsListPostRequestDataItemType
] = UNSET
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "TeststepresultAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -45,21 +45,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -79,8 +79,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = TeststepresultAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, TeststepresultAttachmentsListPostRequestDataItemAttributes
@@ -92,10 +90,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
+ lid = d.pop("lid", UNSET)
+
teststepresult_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
teststepresult_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item.py
index 6c202eca..8b7191bd 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item.py
@@ -25,7 +25,7 @@ class TeststepresultAttachmentsListPostResponseDataItem:
"""
Attributes:
type (Union[Unset, TeststepresultAttachmentsListPostResponseDataItemType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
links (Union[Unset, TeststepresultAttachmentsListPostResponseDataItemLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item_links.py
index 3bc1be0a..21c6f813 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_list_post_response_data_item_links.py
@@ -17,44 +17,44 @@
class TeststepresultAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
teststepresult_attachments_list_post_response_data_item_links_obj = (
cls(
- self_=self_,
content=content,
+ self_=self_,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response.py
index cef70940..20491561 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class TeststepresultAttachmentsSingleGetResponse:
data (Union[Unset, TeststepresultAttachmentsSingleGetResponseData]):
included (Union[Unset, List['TeststepresultAttachmentsSingleGetResponseIncludedItem']]): Related entities might
be returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, TeststepresultAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data.py
index 1483c8fc..b465ce18 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data.py
@@ -34,12 +34,12 @@ class TeststepresultAttachmentsSingleGetResponseData:
"""
Attributes:
type (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataType]):
- id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/1234/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TeststepresultAttachmentsSingleGetResponseDataType] = (
@@ -53,12 +53,12 @@ class TeststepresultAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "TeststepresultAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[
- Unset, "TeststepresultAttachmentsSingleGetResponseDataMeta"
- ] = UNSET
links: Union[
Unset, "TeststepresultAttachmentsSingleGetResponseDataLinks"
] = UNSET
+ meta: Union[
+ Unset, "TeststepresultAttachmentsSingleGetResponseDataMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -80,14 +80,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -101,10 +101,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -157,17 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = (
- TeststepresultAttachmentsSingleGetResponseDataMeta.from_dict(
- _meta
- )
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, TeststepresultAttachmentsSingleGetResponseDataLinks
@@ -181,14 +170,25 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = (
+ TeststepresultAttachmentsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+ )
+
teststepresult_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
teststepresult_attachments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_links.py
index b9bed420..a1763d0b 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class TeststepresultAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRun
- Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content?revision=1234.
+ Id/testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId/content.
+ self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
teststepresult_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
teststepresult_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item.py
index 9e980f6f..6a24b7b3 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item.py
@@ -23,46 +23,46 @@
class TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset,
"TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSource",
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -73,10 +73,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -91,11 +87,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststepresult_attachments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
teststepresult_attachments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item_source.py
index 63d43fbe..452de5a2 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_meta_errors_item_source.py
@@ -24,14 +24,14 @@
class TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -41,10 +41,10 @@ class TeststepresultAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -52,10 +52,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -68,10 +68,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -85,8 +85,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
teststepresult_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_author_data.py
index 922ef5fc..aa6bc2e2 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_author_data.py
@@ -21,45 +21,49 @@
class TeststepresultAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepresultAttachmentsSingleGetResponseDataRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststepresult_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststepresult_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_project_data.py
index 974f3659..e6a9a2b2 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_data_relationships_project_data.py
@@ -21,45 +21,49 @@
class TeststepresultAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, TeststepresultAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
TeststepresultAttachmentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
teststepresult_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
teststepresult_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_included_item.py
index 3c3b6576..5fb5eba4 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_included_item.py
@@ -22,7 +22,6 @@ class TeststepresultAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_links.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_links.py
index 2997661d..71cf17b1 100644
--- a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_get_response_links.py
@@ -16,7 +16,7 @@ class TeststepresultAttachmentsSingleGetResponseLinks:
"""
Attributes:
self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/testruns/MyTestRunId
- /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId?revision=1234.
+ /testrecords/MyProjectId/MyTestcaseId/0/teststepresults/1/attachments/MyAttachmentId.
"""
self_: Union[Unset, str] = UNSET
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request.py
new file mode 100644
index 00000000..5fe6c82b
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request.py
@@ -0,0 +1,86 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststepresult_attachments_single_patch_request_data import (
+ TeststepresultAttachmentsSinglePatchRequestData,
+ )
+
+
+T = TypeVar("T", bound="TeststepresultAttachmentsSinglePatchRequest")
+
+
+@_attrs_define
+class TeststepresultAttachmentsSinglePatchRequest:
+ """
+ Attributes:
+ data (Union[Unset, TeststepresultAttachmentsSinglePatchRequestData]):
+ """
+
+ data: Union[Unset, "TeststepresultAttachmentsSinglePatchRequestData"] = (
+ UNSET
+ )
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ data: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.data, Unset):
+ data = self.data.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if data is not UNSET:
+ field_dict["data"] = data
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststepresult_attachments_single_patch_request_data import (
+ TeststepresultAttachmentsSinglePatchRequestData,
+ )
+
+ d = src_dict.copy()
+ _data = d.pop("data", UNSET)
+ data: Union[Unset, TeststepresultAttachmentsSinglePatchRequestData]
+ if isinstance(_data, Unset):
+ data = UNSET
+ else:
+ data = TeststepresultAttachmentsSinglePatchRequestData.from_dict(
+ _data
+ )
+
+ teststepresult_attachments_single_patch_request_obj = cls(
+ data=data,
+ )
+
+ teststepresult_attachments_single_patch_request_obj.additional_properties = (
+ d
+ )
+ return teststepresult_attachments_single_patch_request_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data.py
new file mode 100644
index 00000000..0833f769
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data.py
@@ -0,0 +1,118 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..models.teststepresult_attachments_single_patch_request_data_type import (
+ TeststepresultAttachmentsSinglePatchRequestDataType,
+)
+from ..types import UNSET, Unset
+
+if TYPE_CHECKING:
+ from ..models.teststepresult_attachments_single_patch_request_data_attributes import (
+ TeststepresultAttachmentsSinglePatchRequestDataAttributes,
+ )
+
+
+T = TypeVar("T", bound="TeststepresultAttachmentsSinglePatchRequestData")
+
+
+@_attrs_define
+class TeststepresultAttachmentsSinglePatchRequestData:
+ """
+ Attributes:
+ type (Union[Unset, TeststepresultAttachmentsSinglePatchRequestDataType]):
+ id (Union[Unset, str]): Example: MyProjectId/MyTestRunId/MyProjectId/MyTestcaseId/0/1/MyAttachmentId.
+ attributes (Union[Unset, TeststepresultAttachmentsSinglePatchRequestDataAttributes]):
+ """
+
+ type: Union[Unset, TeststepresultAttachmentsSinglePatchRequestDataType] = (
+ UNSET
+ )
+ id: Union[Unset, str] = UNSET
+ attributes: Union[
+ Unset, "TeststepresultAttachmentsSinglePatchRequestDataAttributes"
+ ] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
+ id = self.id
+
+ attributes: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.attributes, Unset):
+ attributes = self.attributes.to_dict()
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if type is not UNSET:
+ field_dict["type"] = type
+ if id is not UNSET:
+ field_dict["id"] = id
+ if attributes is not UNSET:
+ field_dict["attributes"] = attributes
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ from ..models.teststepresult_attachments_single_patch_request_data_attributes import (
+ TeststepresultAttachmentsSinglePatchRequestDataAttributes,
+ )
+
+ d = src_dict.copy()
+ _type = d.pop("type", UNSET)
+ type: Union[Unset, TeststepresultAttachmentsSinglePatchRequestDataType]
+ if isinstance(_type, Unset):
+ type = UNSET
+ else:
+ type = TeststepresultAttachmentsSinglePatchRequestDataType(_type)
+
+ id = d.pop("id", UNSET)
+
+ _attributes = d.pop("attributes", UNSET)
+ attributes: Union[
+ Unset, TeststepresultAttachmentsSinglePatchRequestDataAttributes
+ ]
+ if isinstance(_attributes, Unset):
+ attributes = UNSET
+ else:
+ attributes = TeststepresultAttachmentsSinglePatchRequestDataAttributes.from_dict(
+ _attributes
+ )
+
+ teststepresult_attachments_single_patch_request_data_obj = cls(
+ type=type,
+ id=id,
+ attributes=attributes,
+ )
+
+ teststepresult_attachments_single_patch_request_data_obj.additional_properties = (
+ d
+ )
+ return teststepresult_attachments_single_patch_request_data_obj
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_attributes.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_attributes.py
new file mode 100644
index 00000000..7a1d0b8a
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_attributes.py
@@ -0,0 +1,71 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Any, Dict, List, Type, TypeVar, Union
+
+from attrs import define as _attrs_define
+from attrs import field as _attrs_field
+
+from ..types import UNSET, Unset
+
+T = TypeVar(
+ "T", bound="TeststepresultAttachmentsSinglePatchRequestDataAttributes"
+)
+
+
+@_attrs_define
+class TeststepresultAttachmentsSinglePatchRequestDataAttributes:
+ """
+ Attributes:
+ title (Union[Unset, str]): Example: Title.
+ """
+
+ title: Union[Unset, str] = UNSET
+ additional_properties: Dict[str, Any] = _attrs_field(
+ init=False, factory=dict
+ )
+
+ def to_dict(self) -> Dict[str, Any]:
+ title = self.title
+
+ field_dict: Dict[str, Any] = {}
+ field_dict.update(self.additional_properties)
+ field_dict.update({})
+ if title is not UNSET:
+ field_dict["title"] = title
+
+ return field_dict
+
+ @classmethod
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
+ d = src_dict.copy()
+ title = d.pop("title", UNSET)
+
+ teststepresult_attachments_single_patch_request_data_attributes_obj = (
+ cls(
+ title=title,
+ )
+ )
+
+ teststepresult_attachments_single_patch_request_data_attributes_obj.additional_properties = (
+ d
+ )
+ return (
+ teststepresult_attachments_single_patch_request_data_attributes_obj
+ )
+
+ @property
+ def additional_keys(self) -> List[str]:
+ return list(self.additional_properties.keys())
+
+ def __getitem__(self, key: str) -> Any:
+ return self.additional_properties[key]
+
+ def __setitem__(self, key: str, value: Any) -> None:
+ self.additional_properties[key] = value
+
+ def __delitem__(self, key: str) -> None:
+ del self.additional_properties[key]
+
+ def __contains__(self, key: str) -> bool:
+ return key in self.additional_properties
diff --git a/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_type.py b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_type.py
new file mode 100644
index 00000000..0fca63b9
--- /dev/null
+++ b/polarion_rest_api_client/open_api_client/models/teststepresult_attachments_single_patch_request_data_type.py
@@ -0,0 +1,11 @@
+# Copyright DB InfraGO AG and contributors
+# SPDX-License-Identifier: Apache-2.0
+
+from enum import Enum
+
+
+class TeststepresultAttachmentsSinglePatchRequestDataType(str, Enum):
+ TESTSTEPRESULT_ATTACHMENTS = "teststepresult_attachments"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response.py
index 993e0520..2d6ccfed 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response.py
@@ -30,29 +30,26 @@
class TeststepsListGetResponse:
"""
Attributes:
- meta (Union[Unset, TeststepsListGetResponseMeta]):
data (Union[Unset, List['TeststepsListGetResponseDataItem']]):
included (Union[Unset, List['TeststepsListGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, TeststepsListGetResponseLinks]):
+ meta (Union[Unset, TeststepsListGetResponseMeta]):
"""
- meta: Union[Unset, "TeststepsListGetResponseMeta"] = UNSET
data: Union[Unset, List["TeststepsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["TeststepsListGetResponseIncludedItem"]] = (
UNSET
)
links: Union[Unset, "TeststepsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "TeststepsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TeststepsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepsListGetResponseMeta.from_dict(_meta)
+
teststeps_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
teststeps_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item.py
index cb2ddf78..da19b181 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item.py
@@ -34,8 +34,8 @@ class TeststepsListGetResponseDataItem:
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepsListGetResponseDataItemAttributes]):
- meta (Union[Unset, TeststepsListGetResponseDataItemMeta]):
links (Union[Unset, TeststepsListGetResponseDataItemLinks]):
+ meta (Union[Unset, TeststepsListGetResponseDataItemMeta]):
"""
type: Union[Unset, TeststepsListGetResponseDataItemType] = UNSET
@@ -44,8 +44,8 @@ class TeststepsListGetResponseDataItem:
attributes: Union[Unset, "TeststepsListGetResponseDataItemAttributes"] = (
UNSET
)
- meta: Union[Unset, "TeststepsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "TeststepsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "TeststepsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -63,14 +63,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -82,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -122,13 +122,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TeststepsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -136,13 +129,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TeststepsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepsListGetResponseDataItemMeta.from_dict(_meta)
+
teststeps_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
teststeps_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item.py
index 2e7b3308..d678dba5 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class TeststepsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TeststepsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststeps_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
teststeps_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item_source.py
index ec6e8dfc..1aea4a3d 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_data_item_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class TeststepsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TeststepsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class TeststepsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, TeststepsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -81,8 +81,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
teststeps_list_get_response_data_item_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_included_item.py
index 41fcfa9f..19d56c99 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class TeststepsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_links.py
index 0d41cce0..4b2934ca 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_list_get_response_links.py
@@ -15,73 +15,73 @@
class TeststepsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/teststeps?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
teststeps_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
teststeps_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response.py b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response.py
index 5503c482..e613e147 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response.py
@@ -29,8 +29,9 @@ class TeststepsSingleGetResponse:
Attributes:
data (Union[Unset, TeststepsSingleGetResponseData]):
included (Union[Unset, List['TeststepsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, TeststepsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data.py
index 2639c90c..b2e029e7 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data.py
@@ -34,8 +34,8 @@ class TeststepsSingleGetResponseData:
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, TeststepsSingleGetResponseDataAttributes]):
- meta (Union[Unset, TeststepsSingleGetResponseDataMeta]):
links (Union[Unset, TeststepsSingleGetResponseDataLinks]):
+ meta (Union[Unset, TeststepsSingleGetResponseDataMeta]):
"""
type: Union[Unset, TeststepsSingleGetResponseDataType] = UNSET
@@ -44,8 +44,8 @@ class TeststepsSingleGetResponseData:
attributes: Union[Unset, "TeststepsSingleGetResponseDataAttributes"] = (
UNSET
)
- meta: Union[Unset, "TeststepsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "TeststepsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "TeststepsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -63,14 +63,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -82,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["revision"] = revision
if attributes is not UNSET:
field_dict["attributes"] = attributes
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -122,13 +122,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_attributes
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, TeststepsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = TeststepsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, TeststepsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -136,13 +129,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = TeststepsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, TeststepsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = TeststepsSingleGetResponseDataMeta.from_dict(_meta)
+
teststeps_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
- meta=meta,
links=links,
+ meta=meta,
)
teststeps_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item.py
index bcb93efb..1f710ce4 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class TeststepsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, TeststepsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "TeststepsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
teststeps_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
teststeps_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item_source.py
index 0b0a6b46..e760c8c4 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class TeststepsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, TeststepsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "TeststepsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class TeststepsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, TeststepsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
teststeps_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_included_item.py
index f582311d..5c5d56ab 100644
--- a/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/teststeps_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class TeststepsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response.py
index 53789a52..fbc55da6 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response.py
@@ -29,8 +29,9 @@ class UsergroupsSingleGetResponse:
Attributes:
data (Union[Unset, UsergroupsSingleGetResponseData]):
included (Union[Unset, List['UsergroupsSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, UsergroupsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data.py
index 3c487608..d4cd086c 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data.py
@@ -38,8 +38,8 @@ class UsergroupsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, UsergroupsSingleGetResponseDataAttributes]):
relationships (Union[Unset, UsergroupsSingleGetResponseDataRelationships]):
- meta (Union[Unset, UsergroupsSingleGetResponseDataMeta]):
links (Union[Unset, UsergroupsSingleGetResponseDataLinks]):
+ meta (Union[Unset, UsergroupsSingleGetResponseDataMeta]):
"""
type: Union[Unset, UsergroupsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class UsergroupsSingleGetResponseData:
relationships: Union[
Unset, "UsergroupsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "UsergroupsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "UsergroupsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "UsergroupsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, UsergroupsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = UsergroupsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, UsergroupsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = UsergroupsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, UsergroupsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = UsergroupsSingleGetResponseDataMeta.from_dict(_meta)
+
usergroups_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
usergroups_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item.py
index d4328932..287afe3b 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class UsergroupsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, UsergroupsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "UsergroupsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
usergroups_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
usergroups_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item_source.py
index 31325e08..1f94153e 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class UsergroupsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, UsergroupsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "UsergroupsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class UsergroupsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, UsergroupsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
usergroups_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_global_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_global_roles_data_item.py
index 999c6d49..4bb6a47e 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_global_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_global_roles_data_item.py
@@ -21,39 +21,41 @@
class UsergroupsSingleGetResponseDataRelationshipsGlobalRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsGlobalRolesDataItemType]):
id (Union[Unset, str]): Example: MyRoleId.
+ type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsGlobalRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
UsergroupsSingleGetResponseDataRelationshipsGlobalRolesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
usergroups_single_get_response_data_relationships_global_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
usergroups_single_get_response_data_relationships_global_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_project_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_project_roles_data_item.py
index 8130b5a6..fa3129cb 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_project_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_project_roles_data_item.py
@@ -21,39 +21,41 @@
class UsergroupsSingleGetResponseDataRelationshipsProjectRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsProjectRolesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyRoleId.
+ type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsProjectRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
UsergroupsSingleGetResponseDataRelationshipsProjectRolesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
usergroups_single_get_response_data_relationships_project_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
usergroups_single_get_response_data_relationships_project_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_users_data_item.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_users_data_item.py
index 953907c5..f95f541d 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_users_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_data_relationships_users_data_item.py
@@ -20,44 +20,48 @@
class UsergroupsSingleGetResponseDataRelationshipsUsersDataItem:
"""
Attributes:
- type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsUsersDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, UsergroupsSingleGetResponseDataRelationshipsUsersDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, UsergroupsSingleGetResponseDataRelationshipsUsersDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
usergroups_single_get_response_data_relationships_users_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
usergroups_single_get_response_data_relationships_users_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_included_item.py
index c06e804e..f998546e 100644
--- a/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/usergroups_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class UsergroupsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response.py
index 551e81a0..f9acaa8f 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response.py
@@ -28,27 +28,24 @@
class UsersListGetResponse:
"""
Attributes:
- meta (Union[Unset, UsersListGetResponseMeta]):
data (Union[Unset, List['UsersListGetResponseDataItem']]):
included (Union[Unset, List['UsersListGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, UsersListGetResponseLinks]):
+ meta (Union[Unset, UsersListGetResponseMeta]):
"""
- meta: Union[Unset, "UsersListGetResponseMeta"] = UNSET
data: Union[Unset, List["UsersListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["UsersListGetResponseIncludedItem"]] = UNSET
links: Union[Unset, "UsersListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "UsersListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -67,17 +64,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -97,13 +98,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, UsersListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = UsersListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -127,11 +121,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = UsersListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, UsersListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = UsersListGetResponseMeta.from_dict(_meta)
+
users_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
users_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item.py
index 96466562..4a4d7110 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class UsersListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, UsersListGetResponseDataItemAttributes]):
relationships (Union[Unset, UsersListGetResponseDataItemRelationships]):
- meta (Union[Unset, UsersListGetResponseDataItemMeta]):
links (Union[Unset, UsersListGetResponseDataItemLinks]):
+ meta (Union[Unset, UsersListGetResponseDataItemMeta]):
"""
type: Union[Unset, UsersListGetResponseDataItemType] = UNSET
@@ -49,8 +49,8 @@ class UsersListGetResponseDataItem:
relationships: Union[
Unset, "UsersListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "UsersListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "UsersListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "UsersListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -147,13 +147,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, UsersListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = UsersListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, UsersListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -161,14 +154,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = UsersListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, UsersListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = UsersListGetResponseDataItemMeta.from_dict(_meta)
+
users_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
users_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item.py
index 5b80bda6..83295615 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class UsersListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, UsersListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "UsersListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
users_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
users_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item_source.py
index 78c89fc7..7bb332ba 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class UsersListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, UsersListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "UsersListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class UsersListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, UsersListGetResponseDataItemMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
users_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_global_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_global_roles_data_item.py
index 12772be9..738e910e 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_global_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_global_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersListGetResponseDataItemRelationshipsGlobalRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersListGetResponseDataItemRelationshipsGlobalRolesDataItemType]):
id (Union[Unset, str]): Example: MyRoleId.
+ type (Union[Unset, UsersListGetResponseDataItemRelationshipsGlobalRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersListGetResponseDataItemRelationshipsGlobalRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_list_get_response_data_item_relationships_global_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_list_get_response_data_item_relationships_global_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_project_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_project_roles_data_item.py
index 9228051a..c3b081ff 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_project_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_project_roles_data_item.py
@@ -20,39 +20,41 @@
class UsersListGetResponseDataItemRelationshipsProjectRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersListGetResponseDataItemRelationshipsProjectRolesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyRoleId.
+ type (Union[Unset, UsersListGetResponseDataItemRelationshipsProjectRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
UsersListGetResponseDataItemRelationshipsProjectRolesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_list_get_response_data_item_relationships_project_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_list_get_response_data_item_relationships_project_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_user_groups_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_user_groups_data_item.py
index 06b0612d..7766fd6c 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_user_groups_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_data_item_relationships_user_groups_data_item.py
@@ -20,44 +20,48 @@
class UsersListGetResponseDataItemRelationshipsUserGroupsDataItem:
"""
Attributes:
- type (Union[Unset, UsersListGetResponseDataItemRelationshipsUserGroupsDataItemType]):
id (Union[Unset, str]): Example: MyUserGroupId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, UsersListGetResponseDataItemRelationshipsUserGroupsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, UsersListGetResponseDataItemRelationshipsUserGroupsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
users_list_get_response_data_item_relationships_user_groups_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
users_list_get_response_data_item_relationships_user_groups_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_included_item.py
index 1b34f0ed..7d41d1b5 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class UsersListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/users_list_get_response_links.py
index 5110bec8..63f85b1f 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_get_response_links.py
@@ -15,73 +15,73 @@
class UsersListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/users?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/users?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/users?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/users?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/users?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/users?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/users?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/users?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
users_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
users_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_global_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_global_roles_data_item.py
index 42a6daa4..40abe235 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_global_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_global_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersListPostRequestDataItemRelationshipsGlobalRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersListPostRequestDataItemRelationshipsGlobalRolesDataItemType]):
id (Union[Unset, str]): Example: MyRoleId.
+ type (Union[Unset, UsersListPostRequestDataItemRelationshipsGlobalRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersListPostRequestDataItemRelationshipsGlobalRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_list_post_request_data_item_relationships_global_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_list_post_request_data_item_relationships_global_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_project_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_project_roles_data_item.py
index 46126872..d536e3db 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_project_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_project_roles_data_item.py
@@ -20,39 +20,41 @@
class UsersListPostRequestDataItemRelationshipsProjectRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersListPostRequestDataItemRelationshipsProjectRolesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyRoleId.
+ type (Union[Unset, UsersListPostRequestDataItemRelationshipsProjectRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
UsersListPostRequestDataItemRelationshipsProjectRolesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_list_post_request_data_item_relationships_project_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_list_post_request_data_item_relationships_project_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_user_groups_data_item.py b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_user_groups_data_item.py
index ebf2a94a..6fe2431b 100644
--- a/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_user_groups_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_list_post_request_data_item_relationships_user_groups_data_item.py
@@ -20,38 +20,40 @@
class UsersListPostRequestDataItemRelationshipsUserGroupsDataItem:
"""
Attributes:
- type (Union[Unset, UsersListPostRequestDataItemRelationshipsUserGroupsDataItemType]):
id (Union[Unset, str]): Example: MyUserGroupId.
+ type (Union[Unset, UsersListPostRequestDataItemRelationshipsUserGroupsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersListPostRequestDataItemRelationshipsUserGroupsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_list_post_request_data_item_relationships_user_groups_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_list_post_request_data_item_relationships_user_groups_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response.py
index 55513d82..4615537b 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response.py
@@ -29,7 +29,8 @@ class UsersSingleGetResponse:
Attributes:
data (Union[Unset, UsersSingleGetResponseData]):
included (Union[Unset, List['UsersSingleGetResponseIncludedItem']]): Related entities might be returned, see Rest API User
+ href="https://docs.sw.siemens.com/en-
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
Guide.
links (Union[Unset, UsersSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data.py
index 9b9d1496..bc38b224 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data.py
@@ -38,8 +38,8 @@ class UsersSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, UsersSingleGetResponseDataAttributes]):
relationships (Union[Unset, UsersSingleGetResponseDataRelationships]):
- meta (Union[Unset, UsersSingleGetResponseDataMeta]):
links (Union[Unset, UsersSingleGetResponseDataLinks]):
+ meta (Union[Unset, UsersSingleGetResponseDataMeta]):
"""
type: Union[Unset, UsersSingleGetResponseDataType] = UNSET
@@ -49,8 +49,8 @@ class UsersSingleGetResponseData:
relationships: Union[Unset, "UsersSingleGetResponseDataRelationships"] = (
UNSET
)
- meta: Union[Unset, "UsersSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "UsersSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "UsersSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -72,14 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -93,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -145,13 +145,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, UsersSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = UsersSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, UsersSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -159,14 +152,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = UsersSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, UsersSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = UsersSingleGetResponseDataMeta.from_dict(_meta)
+
users_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
users_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item.py
index 81bf4023..83626497 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class UsersSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, UsersSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[Unset, "UsersSingleGetResponseDataMetaErrorsItemSource"] = (
UNSET
)
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -85,11 +81,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
users_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
users_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item_source.py
index 842bb4db..c8de7fd3 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class UsersSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, UsersSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "UsersSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class UsersSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, UsersSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
users_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_global_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_global_roles_data_item.py
index 3bb44bbb..cc720653 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_global_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_global_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersSingleGetResponseDataRelationshipsGlobalRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersSingleGetResponseDataRelationshipsGlobalRolesDataItemType]):
id (Union[Unset, str]): Example: MyRoleId.
+ type (Union[Unset, UsersSingleGetResponseDataRelationshipsGlobalRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSingleGetResponseDataRelationshipsGlobalRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
users_single_get_response_data_relationships_global_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_single_get_response_data_relationships_global_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_project_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_project_roles_data_item.py
index 20809548..77b896a8 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_project_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_project_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersSingleGetResponseDataRelationshipsProjectRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersSingleGetResponseDataRelationshipsProjectRolesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyRoleId.
+ type (Union[Unset, UsersSingleGetResponseDataRelationshipsProjectRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSingleGetResponseDataRelationshipsProjectRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_single_get_response_data_relationships_project_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_single_get_response_data_relationships_project_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_user_groups_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_user_groups_data_item.py
index fde9b30a..873c3997 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_user_groups_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_data_relationships_user_groups_data_item.py
@@ -20,44 +20,48 @@
class UsersSingleGetResponseDataRelationshipsUserGroupsDataItem:
"""
Attributes:
- type (Union[Unset, UsersSingleGetResponseDataRelationshipsUserGroupsDataItemType]):
id (Union[Unset, str]): Example: MyUserGroupId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, UsersSingleGetResponseDataRelationshipsUserGroupsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSingleGetResponseDataRelationshipsUserGroupsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
users_single_get_response_data_relationships_user_groups_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
users_single_get_response_data_relationships_user_groups_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/users_single_get_response_included_item.py
index 12ab94f7..d5ccfdb9 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class UsersSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_global_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_global_roles_data_item.py
index 08ea7e2b..05c05593 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_global_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_global_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersSinglePatchRequestDataRelationshipsGlobalRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersSinglePatchRequestDataRelationshipsGlobalRolesDataItemType]):
id (Union[Unset, str]): Example: MyRoleId.
+ type (Union[Unset, UsersSinglePatchRequestDataRelationshipsGlobalRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSinglePatchRequestDataRelationshipsGlobalRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_single_patch_request_data_relationships_global_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_single_patch_request_data_relationships_global_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_project_roles_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_project_roles_data_item.py
index c44989d6..327f0174 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_project_roles_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_project_roles_data_item.py
@@ -20,38 +20,40 @@
class UsersSinglePatchRequestDataRelationshipsProjectRolesDataItem:
"""
Attributes:
- type (Union[Unset, UsersSinglePatchRequestDataRelationshipsProjectRolesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyRoleId.
+ type (Union[Unset, UsersSinglePatchRequestDataRelationshipsProjectRolesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSinglePatchRequestDataRelationshipsProjectRolesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
users_single_patch_request_data_relationships_project_roles_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_single_patch_request_data_relationships_project_roles_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_user_groups_data_item.py b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_user_groups_data_item.py
index a8b95b27..c730321e 100644
--- a/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_user_groups_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/users_single_patch_request_data_relationships_user_groups_data_item.py
@@ -20,38 +20,40 @@
class UsersSinglePatchRequestDataRelationshipsUserGroupsDataItem:
"""
Attributes:
- type (Union[Unset, UsersSinglePatchRequestDataRelationshipsUserGroupsDataItemType]):
id (Union[Unset, str]): Example: MyUserGroupId.
+ type (Union[Unset, UsersSinglePatchRequestDataRelationshipsUserGroupsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, UsersSinglePatchRequestDataRelationshipsUserGroupsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
users_single_patch_request_data_relationships_user_groups_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
users_single_patch_request_data_relationships_user_groups_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body.py b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body.py
index 9bdde4ea..d1657077 100644
--- a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body.py
+++ b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body.py
@@ -27,25 +27,21 @@
class WorkflowActionsActionResponseBody:
"""
Attributes:
- meta (Union[Unset, WorkflowActionsActionResponseBodyMeta]):
data (Union[Unset, List['WorkflowActionsActionResponseBodyDataItem']]):
links (Union[Unset, WorkflowActionsActionResponseBodyLinks]):
+ meta (Union[Unset, WorkflowActionsActionResponseBodyMeta]):
"""
- meta: Union[Unset, "WorkflowActionsActionResponseBodyMeta"] = UNSET
data: Union[Unset, List["WorkflowActionsActionResponseBodyDataItem"]] = (
UNSET
)
links: Union[Unset, "WorkflowActionsActionResponseBodyLinks"] = UNSET
+ meta: Union[Unset, "WorkflowActionsActionResponseBodyMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -57,15 +53,19 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -82,13 +82,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkflowActionsActionResponseBodyMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkflowActionsActionResponseBodyMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -105,10 +98,17 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkflowActionsActionResponseBodyLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkflowActionsActionResponseBodyMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkflowActionsActionResponseBodyMeta.from_dict(_meta)
+
workflow_actions_action_response_body_obj = cls(
- meta=meta,
data=data,
links=links,
+ meta=meta,
)
workflow_actions_action_response_body_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_data_item.py b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_data_item.py
index dd248e0c..70cd4fca 100644
--- a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_data_item.py
@@ -18,27 +18,27 @@ class WorkflowActionsActionResponseBodyDataItem:
id (Union[Unset, str]):
available (Union[Unset, bool]):
cleared_fields (Union[Unset, List[str]]):
- is_signature_required (Union[Unset, bool]):
is_adding_signature (Union[Unset, bool]):
- native_action_id (Union[Unset, str]):
+ is_signature_required (Union[Unset, bool]):
name (Union[Unset, str]):
+ native_action_id (Union[Unset, str]):
required_fields (Union[Unset, List[str]]):
+ required_roles (Union[Unset, List[str]]):
target_status (Union[Unset, str]):
unavailable_reason (Union[Unset, str]):
- required_roles (Union[Unset, List[str]]):
"""
id: Union[Unset, str] = UNSET
available: Union[Unset, bool] = UNSET
cleared_fields: Union[Unset, List[str]] = UNSET
- is_signature_required: Union[Unset, bool] = UNSET
is_adding_signature: Union[Unset, bool] = UNSET
- native_action_id: Union[Unset, str] = UNSET
+ is_signature_required: Union[Unset, bool] = UNSET
name: Union[Unset, str] = UNSET
+ native_action_id: Union[Unset, str] = UNSET
required_fields: Union[Unset, List[str]] = UNSET
+ required_roles: Union[Unset, List[str]] = UNSET
target_status: Union[Unset, str] = UNSET
unavailable_reason: Union[Unset, str] = UNSET
- required_roles: Union[Unset, List[str]] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -52,26 +52,26 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.cleared_fields, Unset):
cleared_fields = self.cleared_fields
- is_signature_required = self.is_signature_required
-
is_adding_signature = self.is_adding_signature
- native_action_id = self.native_action_id
+ is_signature_required = self.is_signature_required
name = self.name
+ native_action_id = self.native_action_id
+
required_fields: Union[Unset, List[str]] = UNSET
if not isinstance(self.required_fields, Unset):
required_fields = self.required_fields
- target_status = self.target_status
-
- unavailable_reason = self.unavailable_reason
-
required_roles: Union[Unset, List[str]] = UNSET
if not isinstance(self.required_roles, Unset):
required_roles = self.required_roles
+ target_status = self.target_status
+
+ unavailable_reason = self.unavailable_reason
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -81,22 +81,22 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["available"] = available
if cleared_fields is not UNSET:
field_dict["clearedFields"] = cleared_fields
- if is_signature_required is not UNSET:
- field_dict["isSignatureRequired"] = is_signature_required
if is_adding_signature is not UNSET:
field_dict["isAddingSignature"] = is_adding_signature
- if native_action_id is not UNSET:
- field_dict["nativeActionId"] = native_action_id
+ if is_signature_required is not UNSET:
+ field_dict["isSignatureRequired"] = is_signature_required
if name is not UNSET:
field_dict["name"] = name
+ if native_action_id is not UNSET:
+ field_dict["nativeActionId"] = native_action_id
if required_fields is not UNSET:
field_dict["requiredFields"] = required_fields
+ if required_roles is not UNSET:
+ field_dict["requiredRoles"] = required_roles
if target_status is not UNSET:
field_dict["targetStatus"] = target_status
if unavailable_reason is not UNSET:
field_dict["unavailableReason"] = unavailable_reason
- if required_roles is not UNSET:
- field_dict["requiredRoles"] = required_roles
return field_dict
@@ -109,34 +109,34 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
cleared_fields = cast(List[str], d.pop("clearedFields", UNSET))
- is_signature_required = d.pop("isSignatureRequired", UNSET)
-
is_adding_signature = d.pop("isAddingSignature", UNSET)
- native_action_id = d.pop("nativeActionId", UNSET)
+ is_signature_required = d.pop("isSignatureRequired", UNSET)
name = d.pop("name", UNSET)
+ native_action_id = d.pop("nativeActionId", UNSET)
+
required_fields = cast(List[str], d.pop("requiredFields", UNSET))
+ required_roles = cast(List[str], d.pop("requiredRoles", UNSET))
+
target_status = d.pop("targetStatus", UNSET)
unavailable_reason = d.pop("unavailableReason", UNSET)
- required_roles = cast(List[str], d.pop("requiredRoles", UNSET))
-
workflow_actions_action_response_body_data_item_obj = cls(
id=id,
available=available,
cleared_fields=cleared_fields,
- is_signature_required=is_signature_required,
is_adding_signature=is_adding_signature,
- native_action_id=native_action_id,
+ is_signature_required=is_signature_required,
name=name,
+ native_action_id=native_action_id,
required_fields=required_fields,
+ required_roles=required_roles,
target_status=target_status,
unavailable_reason=unavailable_reason,
- required_roles=required_roles,
)
workflow_actions_action_response_body_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_links.py b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_links.py
index 91dd0ce3..10eeceb9 100644
--- a/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workflow_actions_action_response_body_links.py
@@ -17,20 +17,20 @@ class WorkflowActionsActionResponseBodyLinks:
Attributes:
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/actions/getWorkflowActions?page%5Bnumber%5D=4.
self_ (Union[Unset, str]): Example: server-host-name/application-path/projects/MyProjectId/workitems/MyWorkItem
Id/actions/getWorkflowActions?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
@@ -39,11 +39,11 @@ class WorkflowActionsActionResponseBodyLinks:
def to_dict(self) -> Dict[str, Any]:
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
self_ = self.self_
@@ -52,12 +52,12 @@ def to_dict(self) -> Dict[str, Any]:
field_dict.update({})
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
if self_ is not UNSET:
field_dict["self"] = self_
@@ -68,19 +68,19 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
self_ = d.pop("self", UNSET)
workflow_actions_action_response_body_links_obj = cls(
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
self_=self_,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response.py
index 02ca9d7e..56bb2983 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response.py
@@ -30,15 +30,15 @@
class WorkitemApprovalsListGetResponse:
"""
Attributes:
- meta (Union[Unset, WorkitemApprovalsListGetResponseMeta]):
data (Union[Unset, List['WorkitemApprovalsListGetResponseDataItem']]):
included (Union[Unset, List['WorkitemApprovalsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemApprovalsListGetResponseLinks]):
+ meta (Union[Unset, WorkitemApprovalsListGetResponseMeta]):
"""
- meta: Union[Unset, "WorkitemApprovalsListGetResponseMeta"] = UNSET
data: Union[Unset, List["WorkitemApprovalsListGetResponseDataItem"]] = (
UNSET
)
@@ -46,15 +46,12 @@ class WorkitemApprovalsListGetResponse:
Unset, List["WorkitemApprovalsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "WorkitemApprovalsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "WorkitemApprovalsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemApprovalsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemApprovalsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemApprovalsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemApprovalsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemApprovalsListGetResponseMeta.from_dict(_meta)
+
workitem_approvals_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
workitem_approvals_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item.py
index 7b1a1dad..bc61faa5 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class WorkitemApprovalsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemApprovalsListGetResponseDataItemAttributes]):
relationships (Union[Unset, WorkitemApprovalsListGetResponseDataItemRelationships]):
- meta (Union[Unset, WorkitemApprovalsListGetResponseDataItemMeta]):
links (Union[Unset, WorkitemApprovalsListGetResponseDataItemLinks]):
+ meta (Union[Unset, WorkitemApprovalsListGetResponseDataItemMeta]):
"""
type: Union[Unset, WorkitemApprovalsListGetResponseDataItemType] = UNSET
@@ -51,10 +51,10 @@ class WorkitemApprovalsListGetResponseDataItem:
relationships: Union[
Unset, "WorkitemApprovalsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemApprovalsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "WorkitemApprovalsListGetResponseDataItemLinks"] = (
UNSET
)
+ meta: Union[Unset, "WorkitemApprovalsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -76,14 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -97,10 +97,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,15 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemApprovalsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemApprovalsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemApprovalsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -173,14 +164,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemApprovalsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemApprovalsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
workitem_approvals_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_approvals_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item.py
index cc53de76..60315c5a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class WorkitemApprovalsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,12 +85,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_approvals_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item_source.py
index 8ea69496..0b3e0658 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemApprovalsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_approvals_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_relationships_user_data.py
index 5b1b08f1..c7b3ccd5 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_data_item_relationships_user_data.py
@@ -20,45 +20,49 @@
class WorkitemApprovalsListGetResponseDataItemRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkitemApprovalsListGetResponseDataItemRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemApprovalsListGetResponseDataItemRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemApprovalsListGetResponseDataItemRelationshipsUserDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_approvals_list_get_response_data_item_relationships_user_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_approvals_list_get_response_data_item_relationships_user_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_included_item.py
index beb5584b..3b4334a8 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemApprovalsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_links.py
index de494947..f7ec0603 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_get_response_links.py
@@ -15,73 +15,73 @@
class WorkitemApprovalsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/approvals?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
workitem_approvals_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
workitem_approvals_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_post_request_data_item_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_post_request_data_item_relationships_user_data.py
index baf5a359..e16fa7cf 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_post_request_data_item_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_list_post_request_data_item_relationships_user_data.py
@@ -20,39 +20,41 @@
class WorkitemApprovalsListPostRequestDataItemRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkitemApprovalsListPostRequestDataItemRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemApprovalsListPostRequestDataItemRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemApprovalsListPostRequestDataItemRelationshipsUserDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitem_approvals_list_post_request_data_item_relationships_user_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitem_approvals_list_post_request_data_item_relationships_user_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response.py
index a1d30ec1..5ec4b2e9 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response.py
@@ -30,7 +30,8 @@ class WorkitemApprovalsSingleGetResponse:
data (Union[Unset, WorkitemApprovalsSingleGetResponseData]):
included (Union[Unset, List['WorkitemApprovalsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemApprovalsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data.py
index d8b7fcfd..1b844900 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data.py
@@ -38,8 +38,8 @@ class WorkitemApprovalsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemApprovalsSingleGetResponseDataAttributes]):
relationships (Union[Unset, WorkitemApprovalsSingleGetResponseDataRelationships]):
- meta (Union[Unset, WorkitemApprovalsSingleGetResponseDataMeta]):
links (Union[Unset, WorkitemApprovalsSingleGetResponseDataLinks]):
+ meta (Union[Unset, WorkitemApprovalsSingleGetResponseDataMeta]):
"""
type: Union[Unset, WorkitemApprovalsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class WorkitemApprovalsSingleGetResponseData:
relationships: Union[
Unset, "WorkitemApprovalsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemApprovalsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "WorkitemApprovalsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "WorkitemApprovalsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemApprovalsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemApprovalsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemApprovalsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemApprovalsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemApprovalsSingleGetResponseDataMeta.from_dict(_meta)
+
workitem_approvals_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_approvals_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item.py
index 50eac75f..2a7326aa 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkitemApprovalsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_approvals_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workitem_approvals_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item_source.py
index 38b2f6b2..b8d26f16 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemApprovalsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_approvals_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_relationships_user_data.py
index 958608c5..5a313f82 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_data_relationships_user_data.py
@@ -20,44 +20,48 @@
class WorkitemApprovalsSingleGetResponseDataRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkitemApprovalsSingleGetResponseDataRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemApprovalsSingleGetResponseDataRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemApprovalsSingleGetResponseDataRelationshipsUserDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_approvals_single_get_response_data_relationships_user_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_approvals_single_get_response_data_relationships_user_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_included_item.py
index 93e3e002..ca2be5dd 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_approvals_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemApprovalsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response.py
index f3e184b0..05d26e34 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response.py
@@ -30,15 +30,15 @@
class WorkitemAttachmentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, WorkitemAttachmentsListGetResponseMeta]):
data (Union[Unset, List['WorkitemAttachmentsListGetResponseDataItem']]):
included (Union[Unset, List['WorkitemAttachmentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemAttachmentsListGetResponseLinks]):
+ meta (Union[Unset, WorkitemAttachmentsListGetResponseMeta]):
"""
- meta: Union[Unset, "WorkitemAttachmentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["WorkitemAttachmentsListGetResponseDataItem"]] = (
UNSET
)
@@ -46,15 +46,12 @@ class WorkitemAttachmentsListGetResponse:
Unset, List["WorkitemAttachmentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "WorkitemAttachmentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "WorkitemAttachmentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -73,17 +70,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -103,13 +104,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemAttachmentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemAttachmentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -137,11 +131,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemAttachmentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemAttachmentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemAttachmentsListGetResponseMeta.from_dict(_meta)
+
workitem_attachments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
workitem_attachments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item.py
index e1adc497..bccfb69b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class WorkitemAttachmentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemAttachmentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, WorkitemAttachmentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, WorkitemAttachmentsListGetResponseDataItemMeta]):
links (Union[Unset, WorkitemAttachmentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, WorkitemAttachmentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, WorkitemAttachmentsListGetResponseDataItemType] = UNSET
@@ -51,10 +51,10 @@ class WorkitemAttachmentsListGetResponseDataItem:
relationships: Union[
Unset, "WorkitemAttachmentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemAttachmentsListGetResponseDataItemMeta"] = (
+ links: Union[Unset, "WorkitemAttachmentsListGetResponseDataItemLinks"] = (
UNSET
)
- links: Union[Unset, "WorkitemAttachmentsListGetResponseDataItemLinks"] = (
+ meta: Union[Unset, "WorkitemAttachmentsListGetResponseDataItemMeta"] = (
UNSET
)
additional_properties: Dict[str, Any] = _attrs_field(
@@ -78,14 +78,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -99,10 +99,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -157,15 +157,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemAttachmentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemAttachmentsListGetResponseDataItemMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemAttachmentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -175,14 +166,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemAttachmentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemAttachmentsListGetResponseDataItemMeta.from_dict(
+ _meta
+ )
+
workitem_attachments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_attachments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_links.py
index c5132721..439a4b83 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class WorkitemAttachmentsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitem_attachments_list_get_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
workitem_attachments_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item.py
index 7e31bf0f..24ed7b27 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item.py
@@ -23,45 +23,45 @@
class WorkitemAttachmentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -90,11 +86,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_attachments_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workitem_attachments_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item_source.py
index 1e3ee496..839ed5e6 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource
causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemAttachmentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_attachments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_author_data.py
index e6f31b41..a652dfac 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_author_data.py
@@ -21,45 +21,49 @@
class WorkitemAttachmentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemAttachmentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemAttachmentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_attachments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_attachments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_project_data.py
index 647ddb84..a86e6d63 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class WorkitemAttachmentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemAttachmentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemAttachmentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_attachments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_attachments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_included_item.py
index 5914f8a0..85b4f37f 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemAttachmentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_links.py
index 44c7275e..f9ca5426 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_get_response_links.py
@@ -15,73 +15,73 @@
class WorkitemAttachmentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
workitem_attachments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
workitem_attachments_list_get_response_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_request_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_request_data_item.py
index f7541cb9..796a0cf2 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_request_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_request_data_item.py
@@ -25,15 +25,15 @@ class WorkitemAttachmentsListPostRequestDataItem:
"""
Attributes:
type (Union[Unset, WorkitemAttachmentsListPostRequestDataItemType]):
- lid (Union[Unset, str]):
attributes (Union[Unset, WorkitemAttachmentsListPostRequestDataItemAttributes]):
+ lid (Union[Unset, str]):
"""
type: Union[Unset, WorkitemAttachmentsListPostRequestDataItemType] = UNSET
- lid: Union[Unset, str] = UNSET
attributes: Union[
Unset, "WorkitemAttachmentsListPostRequestDataItemAttributes"
] = UNSET
+ lid: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -43,21 +43,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.type, Unset):
type = self.type.value
- lid = self.lid
-
attributes: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.attributes, Unset):
attributes = self.attributes.to_dict()
+ lid = self.lid
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if type is not UNSET:
field_dict["type"] = type
- if lid is not UNSET:
- field_dict["lid"] = lid
if attributes is not UNSET:
field_dict["attributes"] = attributes
+ if lid is not UNSET:
+ field_dict["lid"] = lid
return field_dict
@@ -75,8 +75,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
type = WorkitemAttachmentsListPostRequestDataItemType(_type)
- lid = d.pop("lid", UNSET)
-
_attributes = d.pop("attributes", UNSET)
attributes: Union[
Unset, WorkitemAttachmentsListPostRequestDataItemAttributes
@@ -90,10 +88,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ lid = d.pop("lid", UNSET)
+
workitem_attachments_list_post_request_data_item_obj = cls(
type=type,
- lid=lid,
attributes=attributes,
+ lid=lid,
)
workitem_attachments_list_post_request_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_response_data_item_links.py
index 3d076082..c52ee0f2 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class WorkitemAttachmentsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitem_attachments_list_post_response_data_item_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
workitem_attachments_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response.py
index 7f5640f6..8fb7c3e0 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response.py
@@ -30,7 +30,8 @@ class WorkitemAttachmentsSingleGetResponse:
data (Union[Unset, WorkitemAttachmentsSingleGetResponseData]):
included (Union[Unset, List['WorkitemAttachmentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemAttachmentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data.py
index 096fbe0a..f97d1777 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data.py
@@ -38,8 +38,8 @@ class WorkitemAttachmentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemAttachmentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, WorkitemAttachmentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, WorkitemAttachmentsSingleGetResponseDataMeta]):
links (Union[Unset, WorkitemAttachmentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, WorkitemAttachmentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, WorkitemAttachmentsSingleGetResponseDataType] = UNSET
@@ -51,10 +51,10 @@ class WorkitemAttachmentsSingleGetResponseData:
relationships: Union[
Unset, "WorkitemAttachmentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemAttachmentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "WorkitemAttachmentsSingleGetResponseDataLinks"] = (
UNSET
)
+ meta: Union[Unset, "WorkitemAttachmentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -76,14 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -97,10 +97,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,15 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_relationships
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemAttachmentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemAttachmentsSingleGetResponseDataMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemAttachmentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -173,14 +164,23 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemAttachmentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemAttachmentsSingleGetResponseDataMeta.from_dict(
+ _meta
+ )
+
workitem_attachments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_attachments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_links.py
index 8634fa26..cadf0742 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class WorkitemAttachmentsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
content (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId/content?revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/attachments/MyAttachmentId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
content: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
content = self.content
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if content is not UNSET:
field_dict["content"] = content
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
content = d.pop("content", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitem_attachments_single_get_response_data_links_obj = cls(
- self_=self_,
content=content,
+ self_=self_,
)
workitem_attachments_single_get_response_data_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item.py
index ae8b83fc..7a7132ff 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item.py
@@ -23,45 +23,45 @@
class WorkitemAttachmentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -72,10 +72,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,12 +85,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_attachments_single_get_response_data_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item_source.py
index 1710d186..edbe36e0 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemAttachmentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_attachments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_author_data.py
index 2ab051ed..5bead3bf 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_author_data.py
@@ -21,45 +21,49 @@
class WorkitemAttachmentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemAttachmentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemAttachmentsSingleGetResponseDataRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_attachments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_attachments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_project_data.py
index 9385e861..2fabe2ef 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_data_relationships_project_data.py
@@ -21,45 +21,49 @@
class WorkitemAttachmentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemAttachmentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemAttachmentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_attachments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_attachments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_included_item.py
index 27a9a086..b39962ee 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_attachments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemAttachmentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response.py
index 128d649b..62d2d936 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response.py
@@ -30,29 +30,26 @@
class WorkitemCommentsListGetResponse:
"""
Attributes:
- meta (Union[Unset, WorkitemCommentsListGetResponseMeta]):
data (Union[Unset, List['WorkitemCommentsListGetResponseDataItem']]):
included (Union[Unset, List['WorkitemCommentsListGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemCommentsListGetResponseLinks]):
+ meta (Union[Unset, WorkitemCommentsListGetResponseMeta]):
"""
- meta: Union[Unset, "WorkitemCommentsListGetResponseMeta"] = UNSET
data: Union[Unset, List["WorkitemCommentsListGetResponseDataItem"]] = UNSET
included: Union[
Unset, List["WorkitemCommentsListGetResponseIncludedItem"]
] = UNSET
links: Union[Unset, "WorkitemCommentsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "WorkitemCommentsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemCommentsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemCommentsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -135,11 +129,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemCommentsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemCommentsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemCommentsListGetResponseMeta.from_dict(_meta)
+
workitem_comments_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
workitem_comments_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item.py
index 04157e3f..824bd664 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class WorkitemCommentsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemCommentsListGetResponseDataItemAttributes]):
relationships (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationships]):
- meta (Union[Unset, WorkitemCommentsListGetResponseDataItemMeta]):
links (Union[Unset, WorkitemCommentsListGetResponseDataItemLinks]):
+ meta (Union[Unset, WorkitemCommentsListGetResponseDataItemMeta]):
"""
type: Union[Unset, WorkitemCommentsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class WorkitemCommentsListGetResponseDataItem:
relationships: Union[
Unset, "WorkitemCommentsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemCommentsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "WorkitemCommentsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "WorkitemCommentsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemCommentsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemCommentsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemCommentsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemCommentsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemCommentsListGetResponseDataItemMeta.from_dict(_meta)
+
workitem_comments_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_comments_list_get_response_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item.py
index 36ea19c3..6233cd52 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkitemCommentsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemCommentsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemCommentsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,12 +83,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_comments_list_get_response_data_item_meta_errors_item_obj = (
cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item_source.py
index 7257b227..696b8b41 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemCommentsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemCommentsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing
the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemCommentsListGetResponseDataItemMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemCommentsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_comments_list_get_response_data_item_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_author_data.py
index fba9cfa2..e8f5a951 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_author_data.py
@@ -20,45 +20,49 @@
class WorkitemCommentsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListGetResponseDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_list_get_response_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_list_get_response_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_child_comments_data_item.py
index 52369aec..6207181e 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class WorkitemCommentsListGetResponseDataItemRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListGetResponseDataItemRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_list_get_response_data_item_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_list_get_response_data_item_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_parent_comment_data.py
index b6483cdd..c3392f1f 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class WorkitemCommentsListGetResponseDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListGetResponseDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_list_get_response_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_list_get_response_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_project_data.py
index 771f87b0..fd81a66f 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_data_item_relationships_project_data.py
@@ -21,45 +21,49 @@
class WorkitemCommentsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListGetResponseDataItemRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_included_item.py
index 56375130..d61e186a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemCommentsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_links.py
index 0ea228fb..34a7f6f7 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_get_response_links.py
@@ -15,73 +15,73 @@
class WorkitemCommentsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/comments?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
workitem_comments_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
workitem_comments_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_author_data.py
index 4e4b281a..2699c3cb 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_author_data.py
@@ -20,39 +20,41 @@
class WorkitemCommentsListPostRequestDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemCommentsListPostRequestDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListPostRequestDataItemRelationshipsAuthorDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitem_comments_list_post_request_data_item_relationships_author_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitem_comments_list_post_request_data_item_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_parent_comment_data.py
index 356976b3..adebac92 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_list_post_request_data_item_relationships_parent_comment_data.py
@@ -21,39 +21,41 @@
class WorkitemCommentsListPostRequestDataItemRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
+ type (Union[Unset, WorkitemCommentsListPostRequestDataItemRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsListPostRequestDataItemRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitem_comments_list_post_request_data_item_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitem_comments_list_post_request_data_item_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response.py
index 1bcf8c43..d69c3a9a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response.py
@@ -30,7 +30,8 @@ class WorkitemCommentsSingleGetResponse:
data (Union[Unset, WorkitemCommentsSingleGetResponseData]):
included (Union[Unset, List['WorkitemCommentsSingleGetResponseIncludedItem']]): Related entities might be
returned, see Rest API User Guide.
+ US/doc/230235217/PL20231017526942799.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User
+ Guide.
links (Union[Unset, WorkitemCommentsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data.py
index a623fd2f..d0319faa 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data.py
@@ -38,8 +38,8 @@ class WorkitemCommentsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemCommentsSingleGetResponseDataAttributes]):
relationships (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationships]):
- meta (Union[Unset, WorkitemCommentsSingleGetResponseDataMeta]):
links (Union[Unset, WorkitemCommentsSingleGetResponseDataLinks]):
+ meta (Union[Unset, WorkitemCommentsSingleGetResponseDataMeta]):
"""
type: Union[Unset, WorkitemCommentsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class WorkitemCommentsSingleGetResponseData:
relationships: Union[
Unset, "WorkitemCommentsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemCommentsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "WorkitemCommentsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "WorkitemCommentsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -155,13 +155,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemCommentsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemCommentsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemCommentsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -171,14 +164,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemCommentsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemCommentsSingleGetResponseDataMeta.from_dict(_meta)
+
workitem_comments_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitem_comments_single_get_response_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item.py
index 185493a9..19b47130 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkitemCommentsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemCommentsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemCommentsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitem_comments_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workitem_comments_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item_source.py
index c1e60661..1004c9b6 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkitemCommentsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemCommentsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset,
"WorkitemCommentsSingleGetResponseDataMetaErrorsItemSourceResource",
@@ -40,10 +40,10 @@ class WorkitemCommentsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -51,10 +51,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -67,10 +67,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitem_comments_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_author_data.py
index be02bfa1..a218e72a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_author_data.py
@@ -20,44 +20,48 @@
class WorkitemCommentsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemCommentsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_child_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_child_comments_data_item.py
index 57e3c58f..e2c608ee 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_child_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_child_comments_data_item.py
@@ -21,45 +21,49 @@
class WorkitemCommentsSingleGetResponseDataRelationshipsChildCommentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsSingleGetResponseDataRelationshipsChildCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_single_get_response_data_relationships_child_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_single_get_response_data_relationships_child_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_parent_comment_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_parent_comment_data.py
index f12b693c..8c7e8444 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_parent_comment_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_parent_comment_data.py
@@ -21,45 +21,49 @@
class WorkitemCommentsSingleGetResponseDataRelationshipsParentCommentData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsParentCommentDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsSingleGetResponseDataRelationshipsParentCommentDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_single_get_response_data_relationships_parent_comment_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_single_get_response_data_relationships_parent_comment_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_project_data.py
index 4e20f615..49ce743b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_data_relationships_project_data.py
@@ -20,45 +20,49 @@
class WorkitemCommentsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemCommentsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemCommentsSingleGetResponseDataRelationshipsProjectDataType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitem_comments_single_get_response_data_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitem_comments_single_get_response_data_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_included_item.py
index 2d7f9ce5..5a778a71 100644
--- a/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitem_comments_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemCommentsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response.py
index cf95f89f..57840862 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response.py
@@ -30,29 +30,26 @@
class WorkitemsListGetResponse:
"""
Attributes:
- meta (Union[Unset, WorkitemsListGetResponseMeta]):
data (Union[Unset, List['WorkitemsListGetResponseDataItem']]):
included (Union[Unset, List['WorkitemsListGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, WorkitemsListGetResponseLinks]):
+ meta (Union[Unset, WorkitemsListGetResponseMeta]):
"""
- meta: Union[Unset, "WorkitemsListGetResponseMeta"] = UNSET
data: Union[Unset, List["WorkitemsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["WorkitemsListGetResponseIncludedItem"]] = (
UNSET
)
links: Union[Unset, "WorkitemsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "WorkitemsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsListGetResponseMeta.from_dict(_meta)
+
workitems_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
workitems_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item.py
index a0212c38..175e7801 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class WorkitemsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemsListGetResponseDataItemAttributes]):
relationships (Union[Unset, WorkitemsListGetResponseDataItemRelationships]):
- meta (Union[Unset, WorkitemsListGetResponseDataItemMeta]):
links (Union[Unset, WorkitemsListGetResponseDataItemLinks]):
+ meta (Union[Unset, WorkitemsListGetResponseDataItemMeta]):
"""
type: Union[Unset, WorkitemsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class WorkitemsListGetResponseDataItem:
relationships: Union[
Unset, "WorkitemsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "WorkitemsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "WorkitemsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsListGetResponseDataItemMeta.from_dict(_meta)
+
workitems_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_links.py
index b103a6d7..7f9c2647 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_links.py
@@ -15,43 +15,43 @@
class WorkitemsListGetResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/workitem?id=MyWorkItemId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitems_list_get_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
workitems_list_get_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item.py
index d84cb0a6..58b8b6a0 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkitemsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitems_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workitems_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item_source.py
index f40be5a7..164e73fa 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class WorkitemsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "WorkitemsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class WorkitemsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, WorkitemsListGetResponseDataItemMetaErrorsItemSourceResource
@@ -81,8 +81,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
workitems_list_get_response_data_item_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_approvals_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_approvals_data_item.py
index be5dfff3..0baaa045 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_approvals_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_approvals_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsListGetResponseDataItemRelationshipsApprovalsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsApprovalsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyWorkRecordId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsApprovalsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsApprovalsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_approvals_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_approvals_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_assignee_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_assignee_data_item.py
index 50406b14..d263a0b1 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_assignee_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_assignee_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsListGetResponseDataItemRelationshipsAssigneeDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAssigneeDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAssigneeDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsAssigneeDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_assignee_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_assignee_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments.py
index 546ca514..cb5c99a9 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments.py
@@ -30,8 +30,8 @@ class WorkitemsListGetResponseDataItemRelationshipsAttachments:
"""
Attributes:
data (Union[Unset, List['WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItem']]):
- meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta]):
links (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsLinks]):
+ meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta]):
"""
data: Union[
@@ -40,12 +40,12 @@ class WorkitemsListGetResponseDataItemRelationshipsAttachments:
"WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItem"
],
] = UNSET
- meta: Union[
- Unset, "WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta"
- ] = UNSET
links: Union[
Unset, "WorkitemsListGetResponseDataItemRelationshipsAttachmentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -58,23 +58,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -100,17 +100,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset,
@@ -123,11 +112,22 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsListGetResponseDataItemRelationshipsAttachmentsMeta.from_dict(
+ _meta
+ )
+
workitems_list_get_response_data_item_relationships_attachments_obj = (
cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments_data_item.py
index 0cf83e67..bbdb811b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_attachments_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsAttachmentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_attachments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_attachments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_author_data.py
index 6595c05c..ccece427 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_author_data.py
@@ -20,44 +20,48 @@
class WorkitemsListGetResponseDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsAuthorDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_author_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item.py
index 08b24ea1..03c8ede7 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsBacklinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsBacklinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsBacklinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsBacklinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_backlinked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_categories_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_categories_data_item.py
index bc98c7fd..a7e0ed3c 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_categories_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_categories_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsCategoriesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCategoriesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyCategoryId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCategoriesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsCategoriesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_categories_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_categories_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments.py
index 999116ee..37677ba6 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments.py
@@ -28,20 +28,20 @@ class WorkitemsListGetResponseDataItemRelationshipsComments:
"""
Attributes:
data (Union[Unset, List['WorkitemsListGetResponseDataItemRelationshipsCommentsDataItem']]):
- meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsMeta]):
links (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsLinks]):
+ meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsMeta]):
"""
data: Union[
Unset,
List["WorkitemsListGetResponseDataItemRelationshipsCommentsDataItem"],
] = UNSET
- meta: Union[
- Unset, "WorkitemsListGetResponseDataItemRelationshipsCommentsMeta"
- ] = UNSET
links: Union[
Unset, "WorkitemsListGetResponseDataItemRelationshipsCommentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "WorkitemsListGetResponseDataItemRelationshipsCommentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -54,23 +54,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -96,17 +96,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsListGetResponseDataItemRelationshipsCommentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsLinks
@@ -118,10 +107,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsListGetResponseDataItemRelationshipsCommentsMeta.from_dict(
+ _meta
+ )
+
workitems_list_get_response_data_item_relationships_comments_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_list_get_response_data_item_relationships_comments_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments_data_item.py
index d768cfd8..f0f2b33c 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_comments_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsListGetResponseDataItemRelationshipsCommentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsCommentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item.py
index 7766fede..d387551a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsExternallyLinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsExternallyLinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/hostname/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsExternallyLinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsExternallyLinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_externally_linked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item.py
index 36411b0f..9b05b6ff 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item.py
@@ -21,47 +21,51 @@
class WorkitemsListGetResponseDataItemRelationshipsLinkedOslcResourcesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedOslcResourcesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/http://server-host-
name/ns/cm#relatedChangeRequest/http://server-host-name/application-
path/oslc/services/projects/MyProjectId/workitems/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedOslcResourcesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsLinkedOslcResourcesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -74,14 +78,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_linked_oslc_resources_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_revisions_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_revisions_data_item.py
index 99916b26..60b2132e 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_revisions_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_revisions_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsLinkedRevisionsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedRevisionsDataItemType]):
id (Union[Unset, str]): Example: default/1234.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedRevisionsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsLinkedRevisionsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_linked_revisions_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_linked_revisions_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items.py
index d65f05dd..9f3c65d0 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items.py
@@ -30,8 +30,8 @@ class WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItems:
"""
Attributes:
data (Union[Unset, List['WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItem']]):
- meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta]):
links (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsLinks]):
+ meta (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta]):
"""
data: Union[
@@ -40,14 +40,14 @@ class WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItems:
"WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItem"
],
] = UNSET
- meta: Union[
- Unset,
- "WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta",
- ] = UNSET
links: Union[
Unset,
"WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsLinks",
] = UNSET
+ meta: Union[
+ Unset,
+ "WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta",
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -60,23 +60,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -102,18 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset,
- WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta,
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset,
@@ -126,10 +114,22 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset,
+ WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta,
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsMeta.from_dict(
+ _meta
+ )
+
workitems_list_get_response_data_item_relationships_linked_work_items_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_list_get_response_data_item_relationships_linked_work_items_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items_data_item.py
index b4a5b7e0..7819036e 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_linked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsLinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_linked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_linked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_module_data.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_module_data.py
index a211d379..6ef0966b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_module_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_module_data.py
@@ -20,44 +20,48 @@
class WorkitemsListGetResponseDataItemRelationshipsModuleData:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsModuleDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsModuleDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsModuleDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsModuleDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_module_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_planned_in_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_planned_in_data_item.py
index 55f12b6d..3db8993f 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_planned_in_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_planned_in_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsListGetResponseDataItemRelationshipsPlannedInDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsPlannedInDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsPlannedInDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsPlannedInDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_planned_in_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_planned_in_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_project_data.py
index 64db8239..d1be6a0b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_project_data.py
@@ -20,44 +20,48 @@
class WorkitemsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsProjectDataType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_test_steps_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_test_steps_data_item.py
index a5a7e096..5688726d 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_test_steps_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_test_steps_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsListGetResponseDataItemRelationshipsTestStepsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsTestStepsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsTestStepsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsTestStepsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_test_steps_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_test_steps_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_votes_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_votes_data_item.py
index df9eee88..c96b986d 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_votes_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_votes_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsListGetResponseDataItemRelationshipsVotesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsVotesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsVotesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsVotesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_votes_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_votes_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_watches_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_watches_data_item.py
index d3fe7151..a724f6e3 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_watches_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_watches_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsListGetResponseDataItemRelationshipsWatchesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsWatchesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsWatchesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListGetResponseDataItemRelationshipsWatchesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_watches_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_watches_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_work_records_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_work_records_data_item.py
index aeacf1e7..891667c5 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_work_records_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_data_item_relationships_work_records_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsListGetResponseDataItemRelationshipsWorkRecordsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsWorkRecordsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyWorkRecordId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsListGetResponseDataItemRelationshipsWorkRecordsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListGetResponseDataItemRelationshipsWorkRecordsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_list_get_response_data_item_relationships_work_records_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_list_get_response_data_item_relationships_work_records_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_included_item.py
index 4fb3bbc2..12e8499f 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_links.py
index 857a7469..0d3eaafa 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_get_response_links.py
@@ -15,83 +15,83 @@
class WorkitemsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=6.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/workitems.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
-
portal = self.portal
+ prev = self.prev
+
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
if portal is not UNSET:
field_dict["portal"] = portal
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
-
portal = d.pop("portal", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
+
workitems_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
portal=portal,
+ prev=prev,
+ self_=self_,
)
workitems_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_assignee_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_assignee_data_item.py
index 4b4040f2..86518dc2 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_assignee_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_assignee_data_item.py
@@ -20,39 +20,41 @@
class WorkitemsListPatchRequestDataItemRelationshipsAssigneeDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsAssigneeDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsAssigneeDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPatchRequestDataItemRelationshipsAssigneeDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_patch_request_data_item_relationships_assignee_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_patch_request_data_item_relationships_assignee_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_categories_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_categories_data_item.py
index 4a342eed..9df400b4 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_categories_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_categories_data_item.py
@@ -21,39 +21,41 @@
class WorkitemsListPatchRequestDataItemRelationshipsCategoriesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsCategoriesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyCategoryId.
+ type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsCategoriesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPatchRequestDataItemRelationshipsCategoriesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_patch_request_data_item_relationships_categories_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_patch_request_data_item_relationships_categories_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_linked_revisions_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_linked_revisions_data_item.py
index 0f02ee19..d6791107 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_linked_revisions_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_linked_revisions_data_item.py
@@ -21,39 +21,41 @@
class WorkitemsListPatchRequestDataItemRelationshipsLinkedRevisionsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsLinkedRevisionsDataItemType]):
id (Union[Unset, str]): Example: default/1234.
+ type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsLinkedRevisionsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPatchRequestDataItemRelationshipsLinkedRevisionsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_patch_request_data_item_relationships_linked_revisions_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_patch_request_data_item_relationships_linked_revisions_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_votes_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_votes_data_item.py
index f51854a9..ba9a5b9a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_votes_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_votes_data_item.py
@@ -20,38 +20,40 @@
class WorkitemsListPatchRequestDataItemRelationshipsVotesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsVotesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsVotesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListPatchRequestDataItemRelationshipsVotesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_patch_request_data_item_relationships_votes_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_patch_request_data_item_relationships_votes_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_watches_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_watches_data_item.py
index e5cfadb8..4cbc2802 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_watches_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_patch_request_data_item_relationships_watches_data_item.py
@@ -20,39 +20,41 @@
class WorkitemsListPatchRequestDataItemRelationshipsWatchesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsWatchesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsListPatchRequestDataItemRelationshipsWatchesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPatchRequestDataItemRelationshipsWatchesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_patch_request_data_item_relationships_watches_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_patch_request_data_item_relationships_watches_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_assignee_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_assignee_data_item.py
index 14a03355..2b4b1a47 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_assignee_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_assignee_data_item.py
@@ -20,39 +20,41 @@
class WorkitemsListPostRequestDataItemRelationshipsAssigneeDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsAssigneeDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsAssigneeDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPostRequestDataItemRelationshipsAssigneeDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_post_request_data_item_relationships_assignee_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_post_request_data_item_relationships_assignee_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_author_data.py
index f6bb774d..9293e147 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_author_data.py
@@ -20,38 +20,40 @@
class WorkitemsListPostRequestDataItemRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListPostRequestDataItemRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsListPostRequestDataItemRelationshipsAuthorDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_post_request_data_item_relationships_author_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_categories_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_categories_data_item.py
index 6b86ac86..4f86ee0c 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_categories_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_categories_data_item.py
@@ -21,39 +21,41 @@
class WorkitemsListPostRequestDataItemRelationshipsCategoriesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsCategoriesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyCategoryId.
+ type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsCategoriesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPostRequestDataItemRelationshipsCategoriesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_post_request_data_item_relationships_categories_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_post_request_data_item_relationships_categories_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_linked_revisions_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_linked_revisions_data_item.py
index f37a2507..e1beb6a0 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_linked_revisions_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_linked_revisions_data_item.py
@@ -21,39 +21,41 @@
class WorkitemsListPostRequestDataItemRelationshipsLinkedRevisionsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsLinkedRevisionsDataItemType]):
id (Union[Unset, str]): Example: default/1234.
+ type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsLinkedRevisionsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsListPostRequestDataItemRelationshipsLinkedRevisionsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_post_request_data_item_relationships_linked_revisions_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_list_post_request_data_item_relationships_linked_revisions_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_module_data.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_module_data.py
index 61b94c0c..09d5054c 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_module_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_request_data_item_relationships_module_data.py
@@ -20,38 +20,40 @@
class WorkitemsListPostRequestDataItemRelationshipsModuleData:
"""
Attributes:
- type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsModuleDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
+ type (Union[Unset, WorkitemsListPostRequestDataItemRelationshipsModuleDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsListPostRequestDataItemRelationshipsModuleDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsListPostRequestDataItemRelationshipsModuleDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_list_post_request_data_item_relationships_module_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_list_post_response_data_item_links.py b/polarion_rest_api_client/open_api_client/models/workitems_list_post_response_data_item_links.py
index a41cdd55..ece06000 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_list_post_response_data_item_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_list_post_response_data_item_links.py
@@ -15,43 +15,43 @@
class WorkitemsListPostResponseDataItemLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/workitem?id=MyWorkItemId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitems_list_post_response_data_item_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
workitems_list_post_response_data_item_links_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response.py
index d05d317a..e6b7b75b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response.py
@@ -29,8 +29,9 @@ class WorkitemsSingleGetResponse:
Attributes:
data (Union[Unset, WorkitemsSingleGetResponseData]):
included (Union[Unset, List['WorkitemsSingleGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, WorkitemsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data.py
index 8f5fe4a4..7c38ce71 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data.py
@@ -38,8 +38,8 @@ class WorkitemsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkitemsSingleGetResponseDataAttributes]):
relationships (Union[Unset, WorkitemsSingleGetResponseDataRelationships]):
- meta (Union[Unset, WorkitemsSingleGetResponseDataMeta]):
links (Union[Unset, WorkitemsSingleGetResponseDataLinks]):
+ meta (Union[Unset, WorkitemsSingleGetResponseDataMeta]):
"""
type: Union[Unset, WorkitemsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class WorkitemsSingleGetResponseData:
relationships: Union[
Unset, "WorkitemsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "WorkitemsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "WorkitemsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "WorkitemsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkitemsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkitemsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkitemsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkitemsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsSingleGetResponseDataMeta.from_dict(_meta)
+
workitems_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_links.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_links.py
index beb239b3..d4f2feea 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_links.py
@@ -15,43 +15,43 @@
class WorkitemsSingleGetResponseDataLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
portal (Union[Unset, str]): Example: server-host-name/application-
path/polarion/redirect/project/MyProjectId/workitem?id=MyWorkItemId&revision=1234.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId?revision=1234.
"""
- self_: Union[Unset, str] = UNSET
portal: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
portal = self.portal
+ self_ = self.self_
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if portal is not UNSET:
field_dict["portal"] = portal
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
portal = d.pop("portal", UNSET)
+ self_ = d.pop("self", UNSET)
+
workitems_single_get_response_data_links_obj = cls(
- self_=self_,
portal=portal,
+ self_=self_,
)
workitems_single_get_response_data_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item.py
index bc0ef178..c0f4e13b 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkitemsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkitemsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkitemsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workitems_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workitems_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item_source.py
index 0a54c981..18a4f4d9 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_meta_errors_item_source.py
@@ -21,13 +21,13 @@
class WorkitemsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkitemsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "WorkitemsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -36,10 +36,10 @@ class WorkitemsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -47,10 +47,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -63,10 +63,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, WorkitemsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -79,8 +79,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workitems_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_approvals_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_approvals_data_item.py
index 829b47e6..23b14a88 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_approvals_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_approvals_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsApprovalsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsApprovalsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyWorkRecordId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsApprovalsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsApprovalsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_approvals_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_approvals_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_assignee_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_assignee_data_item.py
index 78d877aa..8f9d16f6 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_assignee_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_assignee_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsAssigneeDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAssigneeDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAssigneeDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsAssigneeDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_assignee_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_assignee_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments.py
index d3578150..2f04c088 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments.py
@@ -30,20 +30,20 @@ class WorkitemsSingleGetResponseDataRelationshipsAttachments:
"""
Attributes:
data (Union[Unset, List['WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItem']]):
- meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta]):
links (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsLinks]):
+ meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta]):
"""
data: Union[
Unset,
List["WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItem"],
] = UNSET
- meta: Union[
- Unset, "WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta"
- ] = UNSET
links: Union[
Unset, "WorkitemsSingleGetResponseDataRelationshipsAttachmentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -56,23 +56,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -98,17 +98,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsLinks
@@ -120,10 +109,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsSingleGetResponseDataRelationshipsAttachmentsMeta.from_dict(
+ _meta
+ )
+
workitems_single_get_response_data_relationships_attachments_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_single_get_response_data_relationships_attachments_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments_data_item.py
index 407f0ef9..cecd3c74 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_attachments_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyAttachmentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsAttachmentsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_attachments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_attachments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_author_data.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_author_data.py
index ce2bcdf4..77b12ab7 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_author_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_author_data.py
@@ -18,44 +18,48 @@
class WorkitemsSingleGetResponseDataRelationshipsAuthorData:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAuthorDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsAuthorDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsAuthorDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsAuthorDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_author_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_author_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_backlinked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_backlinked_work_items_data_item.py
index 5ab6be9a..d0071334 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_backlinked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_backlinked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsSingleGetResponseDataRelationshipsBacklinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsBacklinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsBacklinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsBacklinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_backlinked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_backlinked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_categories_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_categories_data_item.py
index 51d92f8c..584eb9ab 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_categories_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_categories_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsSingleGetResponseDataRelationshipsCategoriesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCategoriesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyCategoryId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCategoriesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsCategoriesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_categories_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_categories_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments.py
index 11dab935..b6728d81 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments.py
@@ -28,20 +28,20 @@ class WorkitemsSingleGetResponseDataRelationshipsComments:
"""
Attributes:
data (Union[Unset, List['WorkitemsSingleGetResponseDataRelationshipsCommentsDataItem']]):
- meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsMeta]):
links (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsLinks]):
+ meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsMeta]):
"""
data: Union[
Unset,
List["WorkitemsSingleGetResponseDataRelationshipsCommentsDataItem"],
] = UNSET
- meta: Union[
- Unset, "WorkitemsSingleGetResponseDataRelationshipsCommentsMeta"
- ] = UNSET
links: Union[
Unset, "WorkitemsSingleGetResponseDataRelationshipsCommentsLinks"
] = UNSET
+ meta: Union[
+ Unset, "WorkitemsSingleGetResponseDataRelationshipsCommentsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -54,23 +54,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -96,17 +96,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsMeta
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsSingleGetResponseDataRelationshipsCommentsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsLinks
@@ -118,10 +107,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsMeta
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsSingleGetResponseDataRelationshipsCommentsMeta.from_dict(
+ _meta
+ )
+
workitems_single_get_response_data_relationships_comments_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_single_get_response_data_relationships_comments_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments_data_item.py
index 590eb496..83b015e8 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_comments_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsCommentsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyCommentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsCommentsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_comments_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_comments_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_externally_linked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_externally_linked_work_items_data_item.py
index 5d228dad..ced0e807 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_externally_linked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_externally_linked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsSingleGetResponseDataRelationshipsExternallyLinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsExternallyLinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/hostname/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsExternallyLinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsExternallyLinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_externally_linked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_externally_linked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_oslc_resources_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_oslc_resources_data_item.py
index 3add9d08..2d4ff178 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_oslc_resources_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_oslc_resources_data_item.py
@@ -21,47 +21,51 @@
class WorkitemsSingleGetResponseDataRelationshipsLinkedOslcResourcesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedOslcResourcesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/http://server-host-
name/ns/cm#relatedChangeRequest/http://server-host-name/application-
path/oslc/services/projects/MyProjectId/workitems/MyWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedOslcResourcesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsLinkedOslcResourcesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -74,14 +78,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_linked_oslc_resources_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_linked_oslc_resources_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_revisions_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_revisions_data_item.py
index c99e92aa..c76eaf9e 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_revisions_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_revisions_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsSingleGetResponseDataRelationshipsLinkedRevisionsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedRevisionsDataItemType]):
id (Union[Unset, str]): Example: default/1234.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedRevisionsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsLinkedRevisionsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_linked_revisions_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_linked_revisions_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items.py
index 6240634c..38ff7b6a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items.py
@@ -30,8 +30,8 @@ class WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItems:
"""
Attributes:
data (Union[Unset, List['WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItem']]):
- meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta]):
links (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsLinks]):
+ meta (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta]):
"""
data: Union[
@@ -40,13 +40,13 @@ class WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItems:
"WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItem"
],
] = UNSET
- meta: Union[
- Unset, "WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta"
- ] = UNSET
links: Union[
Unset,
"WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsLinks",
] = UNSET
+ meta: Union[
+ Unset, "WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta"
+ ] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -59,23 +59,23 @@ def to_dict(self) -> Dict[str, Any]:
data_item = data_item_data.to_dict()
data.append(data_item)
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if data is not UNSET:
field_dict["data"] = data
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,18 +101,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
data.append(data_item)
- _meta = d.pop("meta", UNSET)
- meta: Union[
- Unset,
- WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta,
- ]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta.from_dict(
- _meta
- )
-
_links = d.pop("links", UNSET)
links: Union[
Unset,
@@ -125,10 +113,22 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_links
)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[
+ Unset,
+ WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta,
+ ]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsMeta.from_dict(
+ _meta
+ )
+
workitems_single_get_response_data_relationships_linked_work_items_obj = cls(
data=data,
- meta=meta,
links=links,
+ meta=meta,
)
workitems_single_get_response_data_relationships_linked_work_items_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items_data_item.py
index 3c181729..dfad3c0c 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_linked_work_items_data_item.py
@@ -21,45 +21,49 @@
class WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/parent/MyProjectId/MyLinkedWorkItemId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsLinkedWorkItemsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_linked_work_items_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_linked_work_items_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_module_data.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_module_data.py
index 1fe51829..737515c8 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_module_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_module_data.py
@@ -18,44 +18,48 @@
class WorkitemsSingleGetResponseDataRelationshipsModuleData:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsModuleDataType]):
id (Union[Unset, str]): Example: MyProjectId/MySpaceId/MyDocumentId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsModuleDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsModuleDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsModuleDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_module_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_module_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_planned_in_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_planned_in_data_item.py
index 25afa04a..965c8d87 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_planned_in_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_planned_in_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsPlannedInDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsPlannedInDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyPlanId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsPlannedInDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsPlannedInDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_planned_in_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_planned_in_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_project_data.py
index 3407c331..0ef23b52 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_project_data.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsProjectDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_project_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_test_steps_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_test_steps_data_item.py
index ea0214c3..aa3a8e78 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_test_steps_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_test_steps_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsTestStepsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsTestStepsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyTestStepIndex.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsTestStepsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsTestStepsDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -70,14 +74,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_test_steps_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_test_steps_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_votes_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_votes_data_item.py
index 7a4fc012..d69665c8 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_votes_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_votes_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsVotesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsVotesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsVotesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsVotesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsVotesDataItemType
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_votes_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_votes_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_watches_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_watches_data_item.py
index db3c492c..2085db5a 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_watches_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_watches_data_item.py
@@ -20,44 +20,48 @@
class WorkitemsSingleGetResponseDataRelationshipsWatchesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsWatchesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsWatchesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSingleGetResponseDataRelationshipsWatchesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_watches_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_watches_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_work_records_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_work_records_data_item.py
index 6795dc7a..71281228 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_work_records_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_data_relationships_work_records_data_item.py
@@ -20,45 +20,49 @@
class WorkitemsSingleGetResponseDataRelationshipsWorkRecordsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsWorkRecordsDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyWorkItemId/MyWorkRecordId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkitemsSingleGetResponseDataRelationshipsWorkRecordsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSingleGetResponseDataRelationshipsWorkRecordsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -71,14 +75,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workitems_single_get_response_data_relationships_work_records_data_item_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workitems_single_get_response_data_relationships_work_records_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_included_item.py
index 3493ea82..f6be0b82 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkitemsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_assignee_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_assignee_data_item.py
index bca368cf..9f1135b3 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_assignee_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_assignee_data_item.py
@@ -20,38 +20,40 @@
class WorkitemsSinglePatchRequestDataRelationshipsAssigneeDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsAssigneeDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsAssigneeDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSinglePatchRequestDataRelationshipsAssigneeDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_single_patch_request_data_relationships_assignee_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_single_patch_request_data_relationships_assignee_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_categories_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_categories_data_item.py
index 00020d84..a9631c61 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_categories_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_categories_data_item.py
@@ -20,39 +20,41 @@
class WorkitemsSinglePatchRequestDataRelationshipsCategoriesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsCategoriesDataItemType]):
id (Union[Unset, str]): Example: MyProjectId/MyCategoryId.
+ type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsCategoriesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSinglePatchRequestDataRelationshipsCategoriesDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -65,11 +67,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_single_patch_request_data_relationships_categories_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_single_patch_request_data_relationships_categories_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_linked_revisions_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_linked_revisions_data_item.py
index 29cf2cd0..22dfbfd3 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_linked_revisions_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_linked_revisions_data_item.py
@@ -21,39 +21,41 @@
class WorkitemsSinglePatchRequestDataRelationshipsLinkedRevisionsDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsLinkedRevisionsDataItemType]):
id (Union[Unset, str]): Example: default/1234.
+ type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsLinkedRevisionsDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset,
WorkitemsSinglePatchRequestDataRelationshipsLinkedRevisionsDataItemType,
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_single_patch_request_data_relationships_linked_revisions_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_single_patch_request_data_relationships_linked_revisions_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_votes_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_votes_data_item.py
index 31b29901..455c63fe 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_votes_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_votes_data_item.py
@@ -20,38 +20,40 @@
class WorkitemsSinglePatchRequestDataRelationshipsVotesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsVotesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsVotesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSinglePatchRequestDataRelationshipsVotesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -66,11 +68,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
workitems_single_patch_request_data_relationships_votes_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_single_patch_request_data_relationships_votes_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_watches_data_item.py b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_watches_data_item.py
index bda71ef3..3f428c95 100644
--- a/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_watches_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workitems_single_patch_request_data_relationships_watches_data_item.py
@@ -20,38 +20,40 @@
class WorkitemsSinglePatchRequestDataRelationshipsWatchesDataItem:
"""
Attributes:
- type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsWatchesDataItemType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkitemsSinglePatchRequestDataRelationshipsWatchesDataItemType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkitemsSinglePatchRequestDataRelationshipsWatchesDataItemType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -64,11 +66,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workitems_single_patch_request_data_relationships_watches_data_item_obj = cls(
- type=type,
id=id,
+ type=type,
)
workitems_single_patch_request_data_relationships_watches_data_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response.py
index 0c29a268..fb0ac997 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response.py
@@ -30,29 +30,26 @@
class WorkrecordsListGetResponse:
"""
Attributes:
- meta (Union[Unset, WorkrecordsListGetResponseMeta]):
data (Union[Unset, List['WorkrecordsListGetResponseDataItem']]):
included (Union[Unset, List['WorkrecordsListGetResponseIncludedItem']]): Related entities might be returned, see
- Rest API
- User Guide.
+ REST API User
+ Guide.
links (Union[Unset, WorkrecordsListGetResponseLinks]):
+ meta (Union[Unset, WorkrecordsListGetResponseMeta]):
"""
- meta: Union[Unset, "WorkrecordsListGetResponseMeta"] = UNSET
data: Union[Unset, List["WorkrecordsListGetResponseDataItem"]] = UNSET
included: Union[Unset, List["WorkrecordsListGetResponseIncludedItem"]] = (
UNSET
)
links: Union[Unset, "WorkrecordsListGetResponseLinks"] = UNSET
+ meta: Union[Unset, "WorkrecordsListGetResponseMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
data: Union[Unset, List[Dict[str, Any]]] = UNSET
if not isinstance(self.data, Unset):
data = []
@@ -71,17 +68,21 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if meta is not UNSET:
- field_dict["meta"] = meta
if data is not UNSET:
field_dict["data"] = data
if included is not UNSET:
field_dict["included"] = included
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -101,13 +102,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkrecordsListGetResponseMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkrecordsListGetResponseMeta.from_dict(_meta)
-
data = []
_data = d.pop("data", UNSET)
for data_item_data in _data or []:
@@ -133,11 +127,18 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkrecordsListGetResponseLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkrecordsListGetResponseMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkrecordsListGetResponseMeta.from_dict(_meta)
+
workrecords_list_get_response_obj = cls(
- meta=meta,
data=data,
included=included,
links=links,
+ meta=meta,
)
workrecords_list_get_response_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item.py
index 49288b4c..acef2b16 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item.py
@@ -38,8 +38,8 @@ class WorkrecordsListGetResponseDataItem:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkrecordsListGetResponseDataItemAttributes]):
relationships (Union[Unset, WorkrecordsListGetResponseDataItemRelationships]):
- meta (Union[Unset, WorkrecordsListGetResponseDataItemMeta]):
links (Union[Unset, WorkrecordsListGetResponseDataItemLinks]):
+ meta (Union[Unset, WorkrecordsListGetResponseDataItemMeta]):
"""
type: Union[Unset, WorkrecordsListGetResponseDataItemType] = UNSET
@@ -51,8 +51,8 @@ class WorkrecordsListGetResponseDataItem:
relationships: Union[
Unset, "WorkrecordsListGetResponseDataItemRelationships"
] = UNSET
- meta: Union[Unset, "WorkrecordsListGetResponseDataItemMeta"] = UNSET
links: Union[Unset, "WorkrecordsListGetResponseDataItemLinks"] = UNSET
+ meta: Union[Unset, "WorkrecordsListGetResponseDataItemMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -153,13 +153,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkrecordsListGetResponseDataItemMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkrecordsListGetResponseDataItemMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkrecordsListGetResponseDataItemLinks]
if isinstance(_links, Unset):
@@ -167,14 +160,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkrecordsListGetResponseDataItemLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkrecordsListGetResponseDataItemMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkrecordsListGetResponseDataItemMeta.from_dict(_meta)
+
workrecords_list_get_response_data_item_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workrecords_list_get_response_data_item_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item.py
index 606ab1ae..af832aac 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkrecordsListGetResponseDataItemMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkrecordsListGetResponseDataItemMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkrecordsListGetResponseDataItemMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -87,11 +83,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_source
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workrecords_list_get_response_data_item_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workrecords_list_get_response_data_item_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item_source.py
index 804653b0..10d3ad50 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_meta_errors_item_source.py
@@ -23,14 +23,14 @@
class WorkrecordsListGetResponseDataItemMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkrecordsListGetResponseDataItemMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "WorkrecordsListGetResponseDataItemMetaErrorsItemSourceResource"
] = UNSET
@@ -39,10 +39,10 @@ class WorkrecordsListGetResponseDataItemMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -50,10 +50,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -66,10 +66,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset,
@@ -84,8 +84,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
workrecords_list_get_response_data_item_meta_errors_item_source_obj = (
cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_project_data.py
index 0b8f51cd..04000a3d 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_project_data.py
@@ -20,44 +20,48 @@
class WorkrecordsListGetResponseDataItemRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkrecordsListGetResponseDataItemRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkrecordsListGetResponseDataItemRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkrecordsListGetResponseDataItemRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset,
@@ -72,14 +76,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workrecords_list_get_response_data_item_relationships_project_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workrecords_list_get_response_data_item_relationships_project_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_user_data.py
index b3a82393..b5679bff 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_data_item_relationships_user_data.py
@@ -20,44 +20,48 @@
class WorkrecordsListGetResponseDataItemRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkrecordsListGetResponseDataItemRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkrecordsListGetResponseDataItemRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkrecordsListGetResponseDataItemRelationshipsUserDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkrecordsListGetResponseDataItemRelationshipsUserDataType
@@ -69,15 +73,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workrecords_list_get_response_data_item_relationships_user_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_included_item.py
index 1c936217..d5816c4d 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkrecordsListGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_links.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_links.py
index 7d664297..8a207391 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_links.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_get_response_links.py
@@ -15,73 +15,73 @@
class WorkrecordsListGetResponseLinks:
"""
Attributes:
- self_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=5.
first (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=1.
- prev (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=4.
- next_ (Union[Unset, str]): Example: server-host-name/application-
- path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=6.
last (Union[Unset, str]): Example: server-host-name/application-
path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=9.
+ next_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=6.
+ prev (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=4.
+ self_ (Union[Unset, str]): Example: server-host-name/application-
+ path/projects/MyProjectId/workitems/MyWorkItemId/workrecords?page%5Bsize%5D=10&page%5Bnumber%5D=5.
"""
- self_: Union[Unset, str] = UNSET
first: Union[Unset, str] = UNSET
- prev: Union[Unset, str] = UNSET
- next_: Union[Unset, str] = UNSET
last: Union[Unset, str] = UNSET
+ next_: Union[Unset, str] = UNSET
+ prev: Union[Unset, str] = UNSET
+ self_: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- self_ = self.self_
-
first = self.first
- prev = self.prev
+ last = self.last
next_ = self.next_
- last = self.last
+ prev = self.prev
+
+ self_ = self.self_
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if self_ is not UNSET:
- field_dict["self"] = self_
if first is not UNSET:
field_dict["first"] = first
- if prev is not UNSET:
- field_dict["prev"] = prev
- if next_ is not UNSET:
- field_dict["next"] = next_
if last is not UNSET:
field_dict["last"] = last
+ if next_ is not UNSET:
+ field_dict["next"] = next_
+ if prev is not UNSET:
+ field_dict["prev"] = prev
+ if self_ is not UNSET:
+ field_dict["self"] = self_
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
- self_ = d.pop("self", UNSET)
-
first = d.pop("first", UNSET)
- prev = d.pop("prev", UNSET)
+ last = d.pop("last", UNSET)
next_ = d.pop("next", UNSET)
- last = d.pop("last", UNSET)
+ prev = d.pop("prev", UNSET)
+
+ self_ = d.pop("self", UNSET)
workrecords_list_get_response_links_obj = cls(
- self_=self_,
first=first,
- prev=prev,
- next_=next_,
last=last,
+ next_=next_,
+ prev=prev,
+ self_=self_,
)
workrecords_list_get_response_links_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_list_post_request_data_item_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_list_post_request_data_item_relationships_user_data.py
index 8b30604c..53db2130 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_list_post_request_data_item_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_list_post_request_data_item_relationships_user_data.py
@@ -20,38 +20,40 @@
class WorkrecordsListPostRequestDataItemRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkrecordsListPostRequestDataItemRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
+ type (Union[Unset, WorkrecordsListPostRequestDataItemRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
type: Union[
Unset, WorkrecordsListPostRequestDataItemRelationshipsUserDataType
] = UNSET
- id: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
+ id = self.id
+
type: Union[Unset, str] = UNSET
if not isinstance(self.type, Unset):
type = self.type.value
- id = self.id
-
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkrecordsListPostRequestDataItemRelationshipsUserDataType
@@ -63,12 +65,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
workrecords_list_post_request_data_item_relationships_user_data_obj = (
cls(
- type=type,
id=id,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response.py
index ec8fa01a..31eb8d5b 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response.py
@@ -29,8 +29,9 @@ class WorkrecordsSingleGetResponse:
Attributes:
data (Union[Unset, WorkrecordsSingleGetResponseData]):
included (Union[Unset, List['WorkrecordsSingleGetResponseIncludedItem']]): Related entities might be returned,
- see Rest API
- User Guide.
+ see REST API User
+ Guide.
links (Union[Unset, WorkrecordsSingleGetResponseLinks]):
"""
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data.py
index 8ae6753b..0f0ccb76 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data.py
@@ -38,8 +38,8 @@ class WorkrecordsSingleGetResponseData:
revision (Union[Unset, str]): Example: 1234.
attributes (Union[Unset, WorkrecordsSingleGetResponseDataAttributes]):
relationships (Union[Unset, WorkrecordsSingleGetResponseDataRelationships]):
- meta (Union[Unset, WorkrecordsSingleGetResponseDataMeta]):
links (Union[Unset, WorkrecordsSingleGetResponseDataLinks]):
+ meta (Union[Unset, WorkrecordsSingleGetResponseDataMeta]):
"""
type: Union[Unset, WorkrecordsSingleGetResponseDataType] = UNSET
@@ -51,8 +51,8 @@ class WorkrecordsSingleGetResponseData:
relationships: Union[
Unset, "WorkrecordsSingleGetResponseDataRelationships"
] = UNSET
- meta: Union[Unset, "WorkrecordsSingleGetResponseDataMeta"] = UNSET
links: Union[Unset, "WorkrecordsSingleGetResponseDataLinks"] = UNSET
+ meta: Union[Unset, "WorkrecordsSingleGetResponseDataMeta"] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
@@ -74,14 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.relationships, Unset):
relationships = self.relationships.to_dict()
- meta: Union[Unset, Dict[str, Any]] = UNSET
- if not isinstance(self.meta, Unset):
- meta = self.meta.to_dict()
-
links: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.links, Unset):
links = self.links.to_dict()
+ meta: Union[Unset, Dict[str, Any]] = UNSET
+ if not isinstance(self.meta, Unset):
+ meta = self.meta.to_dict()
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
@@ -95,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["attributes"] = attributes
if relationships is not UNSET:
field_dict["relationships"] = relationships
- if meta is not UNSET:
- field_dict["meta"] = meta
if links is not UNSET:
field_dict["links"] = links
+ if meta is not UNSET:
+ field_dict["meta"] = meta
return field_dict
@@ -151,13 +151,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- _meta = d.pop("meta", UNSET)
- meta: Union[Unset, WorkrecordsSingleGetResponseDataMeta]
- if isinstance(_meta, Unset):
- meta = UNSET
- else:
- meta = WorkrecordsSingleGetResponseDataMeta.from_dict(_meta)
-
_links = d.pop("links", UNSET)
links: Union[Unset, WorkrecordsSingleGetResponseDataLinks]
if isinstance(_links, Unset):
@@ -165,14 +158,21 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
else:
links = WorkrecordsSingleGetResponseDataLinks.from_dict(_links)
+ _meta = d.pop("meta", UNSET)
+ meta: Union[Unset, WorkrecordsSingleGetResponseDataMeta]
+ if isinstance(_meta, Unset):
+ meta = UNSET
+ else:
+ meta = WorkrecordsSingleGetResponseDataMeta.from_dict(_meta)
+
workrecords_single_get_response_data_obj = cls(
type=type,
id=id,
revision=revision,
attributes=attributes,
relationships=relationships,
- meta=meta,
links=links,
+ meta=meta,
)
workrecords_single_get_response_data_obj.additional_properties = d
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item.py
index c5b4a302..677d82d5 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item.py
@@ -21,45 +21,45 @@
class WorkrecordsSingleGetResponseDataMetaErrorsItem:
"""
Attributes:
- status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
- title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
detail (Union[Unset, str]): Human-readable explanation specific to this occurrence of the problem. Example:
Unexpected token, BEGIN_ARRAY expected, but was : BEGIN_OBJECT (at $.data).
source (Union[Unset, WorkrecordsSingleGetResponseDataMetaErrorsItemSource]):
+ status (Union[Unset, str]): HTTP status code applicable to this problem. Example: 400.
+ title (Union[Unset, str]): Short, human-readable summary of the problem. Example: Bad Request.
"""
- status: Union[Unset, str] = UNSET
- title: Union[Unset, str] = UNSET
detail: Union[Unset, str] = UNSET
source: Union[
Unset, "WorkrecordsSingleGetResponseDataMetaErrorsItemSource"
] = UNSET
+ status: Union[Unset, str] = UNSET
+ title: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- status = self.status
-
- title = self.title
-
detail = self.detail
source: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.source, Unset):
source = self.source.to_dict()
+ status = self.status
+
+ title = self.title
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if status is not UNSET:
- field_dict["status"] = status
- if title is not UNSET:
- field_dict["title"] = title
if detail is not UNSET:
field_dict["detail"] = detail
if source is not UNSET:
field_dict["source"] = source
+ if status is not UNSET:
+ field_dict["status"] = status
+ if title is not UNSET:
+ field_dict["title"] = title
return field_dict
@@ -70,10 +70,6 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- status = d.pop("status", UNSET)
-
- title = d.pop("title", UNSET)
-
detail = d.pop("detail", UNSET)
_source = d.pop("source", UNSET)
@@ -89,11 +85,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
+ status = d.pop("status", UNSET)
+
+ title = d.pop("title", UNSET)
+
workrecords_single_get_response_data_meta_errors_item_obj = cls(
- status=status,
- title=title,
detail=detail,
source=source,
+ status=status,
+ title=title,
)
workrecords_single_get_response_data_meta_errors_item_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item_source.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item_source.py
index d4977198..53250fb0 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item_source.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_meta_errors_item_source.py
@@ -21,14 +21,14 @@
class WorkrecordsSingleGetResponseDataMetaErrorsItemSource:
"""
Attributes:
- pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
parameter (Union[Unset, str]): String indicating which URI query parameter caused the error. Example: revision.
+ pointer (Union[Unset, str]): JSON Pointer to the associated entity in the request document. Example: $.data.
resource (Union[Unset, WorkrecordsSingleGetResponseDataMetaErrorsItemSourceResource]): Resource causing the
error.
"""
- pointer: Union[Unset, str] = UNSET
parameter: Union[Unset, str] = UNSET
+ pointer: Union[Unset, str] = UNSET
resource: Union[
Unset, "WorkrecordsSingleGetResponseDataMetaErrorsItemSourceResource"
] = UNSET
@@ -37,10 +37,10 @@ class WorkrecordsSingleGetResponseDataMetaErrorsItemSource:
)
def to_dict(self) -> Dict[str, Any]:
- pointer = self.pointer
-
parameter = self.parameter
+ pointer = self.pointer
+
resource: Union[Unset, Dict[str, Any]] = UNSET
if not isinstance(self.resource, Unset):
resource = self.resource.to_dict()
@@ -48,10 +48,10 @@ def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if pointer is not UNSET:
- field_dict["pointer"] = pointer
if parameter is not UNSET:
field_dict["parameter"] = parameter
+ if pointer is not UNSET:
+ field_dict["pointer"] = pointer
if resource is not UNSET:
field_dict["resource"] = resource
@@ -64,10 +64,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
d = src_dict.copy()
- pointer = d.pop("pointer", UNSET)
-
parameter = d.pop("parameter", UNSET)
+ pointer = d.pop("pointer", UNSET)
+
_resource = d.pop("resource", UNSET)
resource: Union[
Unset, WorkrecordsSingleGetResponseDataMetaErrorsItemSourceResource
@@ -80,8 +80,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
workrecords_single_get_response_data_meta_errors_item_source_obj = cls(
- pointer=pointer,
parameter=parameter,
+ pointer=pointer,
resource=resource,
)
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_project_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_project_data.py
index 9a845cb8..628618c4 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_project_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_project_data.py
@@ -20,44 +20,48 @@
class WorkrecordsSingleGetResponseDataRelationshipsProjectData:
"""
Attributes:
- type (Union[Unset, WorkrecordsSingleGetResponseDataRelationshipsProjectDataType]):
id (Union[Unset, str]): Example: MyProjectId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkrecordsSingleGetResponseDataRelationshipsProjectDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkrecordsSingleGetResponseDataRelationshipsProjectDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkrecordsSingleGetResponseDataRelationshipsProjectDataType
@@ -71,15 +75,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
)
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workrecords_single_get_response_data_relationships_project_data_obj = (
cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
)
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_user_data.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_user_data.py
index 2077cbe5..d45608fa 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_user_data.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_data_relationships_user_data.py
@@ -18,44 +18,48 @@
class WorkrecordsSingleGetResponseDataRelationshipsUserData:
"""
Attributes:
- type (Union[Unset, WorkrecordsSingleGetResponseDataRelationshipsUserDataType]):
id (Union[Unset, str]): Example: MyUserId.
revision (Union[Unset, str]): Example: 1234.
+ type (Union[Unset, WorkrecordsSingleGetResponseDataRelationshipsUserDataType]):
"""
+ id: Union[Unset, str] = UNSET
+ revision: Union[Unset, str] = UNSET
type: Union[
Unset, WorkrecordsSingleGetResponseDataRelationshipsUserDataType
] = UNSET
- id: Union[Unset, str] = UNSET
- revision: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = _attrs_field(
init=False, factory=dict
)
def to_dict(self) -> Dict[str, Any]:
- type: Union[Unset, str] = UNSET
- if not isinstance(self.type, Unset):
- type = self.type.value
-
id = self.id
revision = self.revision
+ type: Union[Unset, str] = UNSET
+ if not isinstance(self.type, Unset):
+ type = self.type.value
+
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
- if type is not UNSET:
- field_dict["type"] = type
if id is not UNSET:
field_dict["id"] = id
if revision is not UNSET:
field_dict["revision"] = revision
+ if type is not UNSET:
+ field_dict["type"] = type
return field_dict
@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
+ id = d.pop("id", UNSET)
+
+ revision = d.pop("revision", UNSET)
+
_type = d.pop("type", UNSET)
type: Union[
Unset, WorkrecordsSingleGetResponseDataRelationshipsUserDataType
@@ -67,14 +71,10 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
_type
)
- id = d.pop("id", UNSET)
-
- revision = d.pop("revision", UNSET)
-
workrecords_single_get_response_data_relationships_user_data_obj = cls(
- type=type,
id=id,
revision=revision,
+ type=type,
)
workrecords_single_get_response_data_relationships_user_data_obj.additional_properties = (
diff --git a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_included_item.py b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_included_item.py
index c1c12d4a..69dbb47f 100644
--- a/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_included_item.py
+++ b/polarion_rest_api_client/open_api_client/models/workrecords_single_get_response_included_item.py
@@ -20,7 +20,6 @@ class WorkrecordsSingleGetResponseIncludedItem:
def to_dict(self) -> Dict[str, Any]:
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
- field_dict.update({})
return field_dict
diff --git a/polarion_rest_api_client/open_api_client/types.py b/polarion_rest_api_client/open_api_client/types.py
index 4d33c494..85a8d9b7 100644
--- a/polarion_rest_api_client/open_api_client/types.py
+++ b/polarion_rest_api_client/open_api_client/types.py
@@ -1,6 +1,7 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0
"""Contains some shared types for properties."""
+
from http import HTTPStatus
from typing import (
BinaryIO,
diff --git a/pyproject.toml b/pyproject.toml
index d20d7fb1..6f7b1598 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -28,7 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
- "httpx>=0.20.0,<0.25.0",
+ "httpx>=0.20.0,<0.28.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.0",
]
@@ -39,7 +39,7 @@ Documentation = "https://dsd-dbs.github.io/polarion-rest-api-client"
[project.optional-dependencies]
dev = [
- "openapi-python-client==0.17.1"
+ "openapi-python-client==0.19.1"
]
docs = [
diff --git a/tests/test_client_general.py b/tests/test_client_general.py
index fb183af5..2c416611 100644
--- a/tests/test_client_general.py
+++ b/tests/test_client_general.py
@@ -35,5 +35,5 @@ def test_check_non_existing_project(
client: polarion_api.OpenAPIPolarionProjectClient,
httpx_mock: pytest_httpx.HTTPXMock,
):
- httpx_mock.add_response(status_code=404)
+ httpx_mock.add_response(status_code=404, json={})
assert not client.project_exists()
diff --git a/tests/test_client_workitemattachments.py b/tests/test_client_workitemattachments.py
index 05c815ed..f25c00c3 100644
--- a/tests/test_client_workitemattachments.py
+++ b/tests/test_client_workitemattachments.py
@@ -121,9 +121,20 @@ def test_create_single_work_item_attachment(
assert isinstance(body, _multipart.MultipartStream)
assert len(body.fields) == 2
- assert body.fields[0].headers["Content-Type"] == "text/plain"
- assert body.fields[0].name == "resource"
- assert body.fields[0].file == json.dumps(
+ resource_index = None
+ files_index = None
+ for i in range(2):
+ if body.fields[i].name == "resource":
+ resource_index = i
+ if body.fields[i].name == "files":
+ files_index = i
+
+ assert resource_index is not None
+ assert files_index is not None
+
+ assert body.fields[resource_index].headers["Content-Type"] == "text/plain"
+ assert body.fields[resource_index].name == "resource"
+ assert body.fields[resource_index].file == json.dumps(
{
"data": [
{
@@ -134,10 +145,13 @@ def test_create_single_work_item_attachment(
}
).encode("utf-8")
- assert body.fields[1].headers["Content-Type"] == "text/plain"
- assert body.fields[1].filename == "test.json"
- assert body.fields[1].name == "files"
- assert body.fields[1].file.read() == work_item_attachment.content_bytes
+ assert body.fields[files_index].headers["Content-Type"] == "text/plain"
+ assert body.fields[files_index].filename == "test.json"
+ assert body.fields[files_index].name == "files"
+ assert (
+ body.fields[files_index].file.read()
+ == work_item_attachment.content_bytes
+ )
def test_create_multiple_work_item_attachments(
@@ -169,9 +183,18 @@ def test_create_multiple_work_item_attachments(
assert isinstance(body, _multipart.MultipartStream)
assert len(body.fields) == 4
- assert body.fields[0].headers["Content-Type"] == "text/plain"
- assert body.fields[0].name == "resource"
- assert body.fields[0].file == json.dumps(
+ for i in range(0, 3):
+ assert body.fields[i].headers["Content-Type"] == "text/plain"
+ assert body.fields[i].filename == "test.json"
+ assert body.fields[i].name == "files"
+ assert (
+ body.fields[i].file.read()
+ == work_item_attachments[i - 1].content_bytes
+ )
+
+ assert body.fields[3].headers["Content-Type"] == "text/plain"
+ assert body.fields[3].name == "resource"
+ assert body.fields[3].file == json.dumps(
{
"data": 3
* [
@@ -182,14 +205,6 @@ def test_create_multiple_work_item_attachments(
]
}
).encode("utf-8")
- for i in range(1, 4):
- assert body.fields[i].headers["Content-Type"] == "text/plain"
- assert body.fields[i].filename == "test.json"
- assert body.fields[i].name == "files"
- assert (
- body.fields[i].file.read()
- == work_item_attachments[i - 1].content_bytes
- )
def test_update_work_item_attachment_title(