Skip to content

Commit

Permalink
Update tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubFrejlach committed Aug 9, 2023
1 parent ed124d6 commit f596d16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ See `/GET /api/{api_version}/components` in [API docs](openapi_schema.yml) for m
select_components = session.components.retrieve_list(arch="x86_64")
```

#### components.retrieve_list_iterator

Retrieve a list of Components. Handles the pagination and returns the generator of individual resource entities.

See `/GET /api/{api_version}/components` in [API docs](openapi_schema.yml) for more details (query parameters, response format, etc.)
```python
all_components = session.components.retrieve_list_iterator()
for component in all_components:
do_calc(component)

for component in session.components.retrieve_list_iterator(arch="x86_64"):
print(component.arch)
```

#### components.retrieve

Retrieve a single Component with specified `id`.
Expand Down

0 comments on commit f596d16

Please sign in to comment.