Skip to content

Commit

Permalink
feat: add api references for system client API.
Browse files Browse the repository at this point in the history
Signed-off-by: Ganesh Nithin <[email protected]>
  • Loading branch information
ganesh-nithin committed Nov 29, 2024
1 parent 63083f5 commit 5a4f0ae
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ API Reference
api_reference/dataframe
api_reference/spec
api_reference/file
api_reference/system

Indices and tables
------------------
Expand Down
18 changes: 18 additions & 0 deletions docs/api_reference/system.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. _api_tag_page:

nisystemlink.clients.system
======================

.. autoclass:: nisystemlink.clients.system.SystemClient
:exclude-members: __init__

.. automethod:: __init__
.. automethod:: list_jobs
.. automethod:: create_job
.. automethod:: get_job_summary
.. automethod:: query_jobs
.. automethod:: cancel_jobs

.. automodule:: nisystemlink.clients.system.models
:members:
:imported-members:
28 changes: 28 additions & 0 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,33 @@ Examples
Get the metadata of a File using its Id and download it.

.. literalinclude:: ../examples/file/download_file.py
:language: python
:linenos:


System API
-------

Overview
~~~~~~~~

The :class:`.SystemClient` class is the primary entry point of the System API.

When constructing a :class:`.SystemClient`, you can pass an
:class:`.HttpConfiguration` (like one retrieved from the
:class:`.HttpConfigurationManager`), or let :class:`.SystemClient` use the
default connection. The default connection depends on your environment.

With a :class:`.SystemClient` object, you can:

* Create, get, query, and cancel jobs
* Get the summary of a jobs

Examples
~~~~~~~~

Create, get, query, and cancel jobs

.. literalinclude:: ../examples/system/system.py
:language: python
:linenos:

0 comments on commit 5a4f0ae

Please sign in to comment.