polarion_rest_api_client.open_api_client.api.document_comments package

Contains endpoint functions for accessing the API.

Submodules

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comment module

async polarion_rest_api_client.open_api_client.api.document_comments.get_document_comment.asyncio(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) DocumentCommentsSingleGetResponse | Errors | None

Returns the specified Document Comment.

Args:

project_id (str): space_id (str): document_name (str): comment_id (str): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsSingleGetResponse, Errors]

async polarion_rest_api_client.open_api_client.api.document_comments.get_document_comment.asyncio_detailed(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[DocumentCommentsSingleGetResponse | Errors]

Returns the specified Document Comment.

Args:

project_id (str): space_id (str): document_name (str): comment_id (str): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsSingleGetResponse, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comment.sync(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) DocumentCommentsSingleGetResponse | Errors | None

Returns the specified Document Comment.

Args:

project_id (str): space_id (str): document_name (str): comment_id (str): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsSingleGetResponse, Errors]

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comment.sync_detailed(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[DocumentCommentsSingleGetResponse | Errors]

Returns the specified Document Comment.

Args:

project_id (str): space_id (str): document_name (str): comment_id (str): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsSingleGetResponse, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comments module

async polarion_rest_api_client.open_api_client.api.document_comments.get_document_comments.asyncio(project_id: str, space_id: str, document_name: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, pagesize: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) DocumentCommentsListGetResponse | Errors | None

Returns a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): pagesize (Union[Unset, int]): pagenumber (Union[Unset, int]): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsListGetResponse, Errors]

async polarion_rest_api_client.open_api_client.api.document_comments.get_document_comments.asyncio_detailed(project_id: str, space_id: str, document_name: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, pagesize: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[DocumentCommentsListGetResponse | Errors]

Returns a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): pagesize (Union[Unset, int]): pagenumber (Union[Unset, int]): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsListGetResponse, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comments.sync(project_id: str, space_id: str, document_name: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, pagesize: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) DocumentCommentsListGetResponse | Errors | None

Returns a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): pagesize (Union[Unset, int]): pagenumber (Union[Unset, int]): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsListGetResponse, Errors]

polarion_rest_api_client.open_api_client.api.document_comments.get_document_comments.sync_detailed(project_id: str, space_id: str, document_name: str, *, client: ~polarion_rest_api_client.open_api_client.client.AuthenticatedClient | ~polarion_rest_api_client.open_api_client.client.Client, pagesize: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, pagenumber: ~polarion_rest_api_client.open_api_client.types.Unset | int = <polarion_rest_api_client.open_api_client.types.Unset object>, fields: ~polarion_rest_api_client.open_api_client.types.Unset | ~polarion_rest_api_client.open_api_client.models.sparse_fields.SparseFields = <polarion_rest_api_client.open_api_client.types.Unset object>, include: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>, revision: ~polarion_rest_api_client.open_api_client.types.Unset | str = <polarion_rest_api_client.open_api_client.types.Unset object>) Response[DocumentCommentsListGetResponse | Errors]

Returns a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): pagesize (Union[Unset, int]): pagenumber (Union[Unset, int]): fields (Union[Unset, SparseFields]): include (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[DocumentCommentsListGetResponse, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.patch_document_comment module

async polarion_rest_api_client.open_api_client.api.document_comments.patch_document_comment.asyncio(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsSinglePatchRequest) Any | Errors | None

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]

async polarion_rest_api_client.open_api_client.api.document_comments.patch_document_comment.asyncio_detailed(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsSinglePatchRequest) Response[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:

Response[Union[Any, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.patch_document_comment.sync(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsSinglePatchRequest) Any | Errors | None

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]

polarion_rest_api_client.open_api_client.api.document_comments.patch_document_comment.sync_detailed(project_id: str, space_id: str, document_name: str, comment_id: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsSinglePatchRequest) Response[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:

Response[Union[Any, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.post_document_comments module

async polarion_rest_api_client.open_api_client.api.document_comments.post_document_comments.asyncio(project_id: str, space_id: str, document_name: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsListPostRequest) DocumentCommentsListPostResponse | Errors | None

Creates a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): body (DocumentCommentsListPostRequest):

Raises:

errors.UnexpectedStatus: If the server 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[DocumentCommentsListPostResponse, Errors]

async polarion_rest_api_client.open_api_client.api.document_comments.post_document_comments.asyncio_detailed(project_id: str, space_id: str, document_name: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsListPostRequest) Response[DocumentCommentsListPostResponse | Errors]

Creates a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): body (DocumentCommentsListPostRequest):

Raises:

errors.UnexpectedStatus: If the server 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[DocumentCommentsListPostResponse, Errors]]

polarion_rest_api_client.open_api_client.api.document_comments.post_document_comments.sync(project_id: str, space_id: str, document_name: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsListPostRequest) DocumentCommentsListPostResponse | Errors | None

Creates a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): body (DocumentCommentsListPostRequest):

Raises:

errors.UnexpectedStatus: If the server 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[DocumentCommentsListPostResponse, Errors]

polarion_rest_api_client.open_api_client.api.document_comments.post_document_comments.sync_detailed(project_id: str, space_id: str, document_name: str, *, client: AuthenticatedClient | Client, body: DocumentCommentsListPostRequest) Response[DocumentCommentsListPostResponse | Errors]

Creates a list of Document Comments.

Args:

project_id (str): space_id (str): document_name (str): body (DocumentCommentsListPostRequest):

Raises:

errors.UnexpectedStatus: If the server 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[DocumentCommentsListPostResponse, Errors]]