Skip to content

Commit 8a08b49

Browse files
committed
doc: snippet style
1 parent 0f9dd0b commit 8a08b49

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

doc/tutorial.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ As a start you will need to instantiate a httpx :code:`Client` (or :code:`AsyncC
1111
In addition to your SCIM server root endpoint, you will probably want to provide some authorization headers through the httpx :code:`Client` :code:`headers` parameter:
1212

1313
.. tab-set::
14+
:class: outline
1415

1516
.. tab-item:: Sync
1617
:sync: sync
@@ -53,6 +54,7 @@ and dynamically generate local Python models based on those schemas.
5354
They are then available to use with :meth:`~scim2_client.SCIMClient.get_resource_model`.
5455

5556
.. tab-set::
57+
:class: outline
5658

5759
.. tab-item:: Sync
5860
:sync: sync
@@ -80,6 +82,7 @@ To manually register models and resource types, you can simply use the :paramref
8082

8183

8284
.. tab-set::
85+
:class: outline
8386

8487
.. tab-item:: Sync
8588
:sync: sync
@@ -115,6 +118,7 @@ To manually register models and resource types, you can simply use the :paramref
115118
and simply call :meth:`~scim2_client.SCIMClient.register_naive_resource_types`.
116119

117120
.. tab-set::
121+
:class: outline
118122

119123
.. tab-item:: Sync
120124
:sync: sync
@@ -154,6 +158,7 @@ Create
154158
:meth:`~scim2_client.BaseSyncSCIMClient.create` issues a ``POST`` to provision a new resource:
155159

156160
.. tab-set::
161+
:class: outline
157162

158163
.. tab-item:: Sync
159164
:sync: sync
@@ -179,6 +184,7 @@ Query
179184
:meth:`~scim2_client.BaseSyncSCIMClient.query` issues a ``GET`` to read a single resource by its id, or list resources of a given type:
180185

181186
.. tab-set::
187+
:class: outline
182188

183189
.. tab-item:: Sync
184190
:sync: sync
@@ -212,6 +218,7 @@ Search
212218
:meth:`~scim2_client.BaseSyncSCIMClient.search` issues a ``POST`` on the ``/.search`` endpoint to query across all resource types at once:
213219

214220
.. tab-set::
221+
:class: outline
215222

216223
.. tab-item:: Sync
217224
:sync: sync
@@ -233,6 +240,7 @@ Replace
233240
:meth:`~scim2_client.BaseSyncSCIMClient.replace` issues a ``PUT`` to fully overwrite an existing resource:
234241

235242
.. tab-set::
243+
:class: outline
236244

237245
.. tab-item:: Sync
238246
:sync: sync
@@ -258,6 +266,7 @@ Delete
258266
:meth:`~scim2_client.BaseSyncSCIMClient.delete` issues a ``DELETE`` and returns :data:`None` on success:
259267

260268
.. tab-set::
269+
:class: outline
261270

262271
.. tab-item:: Sync
263272
:sync: sync
@@ -279,6 +288,7 @@ Modify
279288
:meth:`~scim2_client.BaseSyncSCIMClient.modify` issues a ``PATCH`` to apply partial updates as defined in :rfc:`RFC7644 §3.5.2 <7644#section-3.5.2>`:
280289

281290
.. tab-set::
291+
:class: outline
282292

283293
.. tab-item:: Sync
284294
:sync: sync
@@ -321,6 +331,7 @@ By default, if the server returns an error, a :class:`~scim2_client.SCIMResponse
321331
The :meth:`~scim2_client.SCIMResponseErrorObject.to_error` method gives access to the :class:`~scim2_models.Error` object:
322332

323333
.. tab-set::
334+
:class: outline
324335

325336
.. tab-item:: Sync
326337
:sync: sync
@@ -396,6 +407,7 @@ Pass additional parameters directly to the underlying engine methods.
396407
This can be useful if you need to explicitly pass a certain URL for example:
397408

398409
.. tab-set::
410+
:class: outline
399411

400412
.. tab-item:: Sync
401413
:sync: sync

0 commit comments

Comments
 (0)