Skip to content

Commit 2b8db90

Browse files
committed
doc: add a dependency to sphinx-paramlinks
1 parent 073872b commit 2b8db90

File tree

5 files changed

+54
-30
lines changed

5 files changed

+54
-30
lines changed

doc/changelog.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
[0.3.2] - 2024-11-29
5+
--------------------
6+
7+
Added
8+
^^^^^
9+
- Implement :class:`~scim2_client.BaseSCIMClient` :paramref:`~scim2_client.BaseSCIMClient.check_request_payload`,
10+
:paramref:`~scim2_client.BaseSCIMClient.check_response_payload` and
11+
:paramref:`~scim2_client.BaseSCIMClient.raise_scim_errors` paramibutes,
12+
to keep the same values for all the requests.
13+
414
[0.3.1] - 2024-11-29
515
--------------------
616

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"sphinx.ext.todo",
1818
"sphinx.ext.viewcode",
1919
"sphinx_issues",
20+
"sphinx_paramlinks",
2021
"sphinxcontrib.autodoc_pydantic",
2122
"myst_parser",
2223
]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "scim2-client"
7-
version = "0.3.1"
7+
version = "0.3.2"
88
description = "Pythonically build SCIM requests and parse SCIM responses"
99
authors = [{name="Yaal Coop", email="[email protected]"}]
1010
license = {file = "LICENSE.md"}
@@ -64,6 +64,7 @@ doc = [
6464
"shibuya>=2024.5.15",
6565
"sphinx-issues >= 5.0.0",
6666
"sphinx>=7.3.7",
67+
"sphinx-paramlinks>=0.6.0",
6768
]
6869

6970
[tool.coverage.run]

scim2_client/client.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,11 @@ def create(
495495
496496
:param resource: The resource to create
497497
If is a :data:`dict`, the resource type will be guessed from the schema.
498-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
499-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
498+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
499+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
500500
:param expected_status_codes: The list of expected status codes form the response.
501501
If :data:`None` any status code is accepted.
502-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
502+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
503503
:param kwargs: Additional parameters passed to the underlying HTTP request
504504
library.
505505
@@ -547,11 +547,11 @@ def query(
547547
:param resource_model: A :class:`~scim2_models.Resource` subtype or :data:`None`
548548
:param id: The SCIM id of an object to get, or :data:`None`
549549
:param search_request: An object detailing the search query parameters.
550-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
551-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
550+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
551+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
552552
:param expected_status_codes: The list of expected status codes form the response.
553553
If :data:`None` any status code is accepted.
554-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
554+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
555555
:param kwargs: Additional parameters passed to the underlying HTTP request library.
556556
557557
:return:
@@ -616,11 +616,11 @@ def search(
616616
:param resource_models: Resource type or union of types expected
617617
to be read from the response.
618618
:param search_request: An object detailing the search query parameters.
619-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
620-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
619+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
620+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
621621
:param expected_status_codes: The list of expected status codes form the response.
622622
If :data:`None` any status code is accepted.
623-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
623+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
624624
:param kwargs: Additional parameters passed to the underlying
625625
HTTP request library.
626626
@@ -663,10 +663,10 @@ def delete(
663663
664664
:param resource_model: The type of the resource to delete.
665665
:param id: The type id the resource to delete.
666-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
666+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
667667
:param expected_status_codes: The list of expected status codes form the response.
668668
If :data:`None` any status code is accepted.
669-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
669+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
670670
:param kwargs: Additional parameters passed to the underlying
671671
HTTP request library.
672672
@@ -701,11 +701,11 @@ def replace(
701701
702702
:param resource: The new resource to replace.
703703
If is a :data:`dict`, the resource type will be guessed from the schema.
704-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
705-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
704+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
705+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
706706
:param expected_status_codes: The list of expected status codes form the response.
707707
If :data:`None` any status code is accepted.
708-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
708+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
709709
:param kwargs: Additional parameters passed to the underlying
710710
HTTP request library.
711711
@@ -752,11 +752,11 @@ async def create(
752752
753753
:param resource: The resource to create
754754
If is a :data:`dict`, the resource type will be guessed from the schema.
755-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
756-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
755+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
756+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
757757
:param expected_status_codes: The list of expected status codes form the response.
758758
If :data:`None` any status code is accepted.
759-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
759+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
760760
:param kwargs: Additional parameters passed to the underlying HTTP request
761761
library.
762762
@@ -804,11 +804,11 @@ async def query(
804804
:param resource_model: A :class:`~scim2_models.Resource` subtype or :data:`None`
805805
:param id: The SCIM id of an object to get, or :data:`None`
806806
:param search_request: An object detailing the search query parameters.
807-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
808-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
807+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
808+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
809809
:param expected_status_codes: The list of expected status codes form the response.
810810
If :data:`None` any status code is accepted.
811-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
811+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
812812
:param kwargs: Additional parameters passed to the underlying HTTP request library.
813813
814814
:return:
@@ -873,11 +873,11 @@ async def search(
873873
:param resource_models: Resource type or union of types expected
874874
to be read from the response.
875875
:param search_request: An object detailing the search query parameters.
876-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
877-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
876+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
877+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
878878
:param expected_status_codes: The list of expected status codes form the response.
879879
If :data:`None` any status code is accepted.
880-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
880+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
881881
:param kwargs: Additional parameters passed to the underlying
882882
HTTP request library.
883883
@@ -920,10 +920,10 @@ async def delete(
920920
921921
:param resource_model: The type of the resource to delete.
922922
:param id: The type id the resource to delete.
923-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
923+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
924924
:param expected_status_codes: The list of expected status codes form the response.
925925
If :data:`None` any status code is accepted.
926-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
926+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
927927
:param kwargs: Additional parameters passed to the underlying
928928
HTTP request library.
929929
@@ -958,11 +958,11 @@ async def replace(
958958
959959
:param resource: The new resource to replace.
960960
If is a :data:`dict`, the resource type will be guessed from the schema.
961-
:param check_request_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_request_payload`.
962-
:param check_response_payload: If set, overwrites the :attr:`client value<BaseSCIMClient.check_response_payload`.
961+
:param check_request_payload: If set, overwrites :paramref:`BaseSCIMClient.check_request_payload`.
962+
:param check_response_payload: If set, overwrites :paramref:`BaseSCIMClient.check_response_payload`.
963963
:param expected_status_codes: The list of expected status codes form the response.
964964
If :data:`None` any status code is accepted.
965-
:param raise_scim_errors: If set, overwrites the :attr:`client value<BaseSCIMClient.raise_scim_errors`.
965+
:param raise_scim_errors: If set, overwrites :paramref:`BaseSCIMClient.raise_scim_errors`.
966966
:param kwargs: Additional parameters passed to the underlying
967967
HTTP request library.
968968

uv.lock

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)