Skip to content

Commit 5554599

Browse files
authored
Added sustainability reference and examples (#58)
1 parent 7e13d5b commit 5554599

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

docs/pure1_reference.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,24 @@ SubscriptionLicense
255255
.. autoclass:: pypureclient.pure1.models.SubscriptionLicense
256256
:members:
257257

258+
SustainabilityArray
259+
~~~~~~~~~~~~~~~~~~~
260+
261+
.. autoclass:: pypureclient.pure1.models.SustainabilityArray
262+
:members:
263+
264+
SustainabilityAssessment
265+
~~~~~~~~~~~~~~~~~~~~~~~~
266+
267+
.. autoclass:: pypureclient.pure1.models.SustainabilityAssessment
268+
:members:
269+
270+
SustainabilityInsightArray
271+
~~~~~~~~~~~~~~~~~~~
272+
273+
.. autoclass:: pypureclient.pure1.models.SustainabilityInsightArray
274+
:members:
275+
258276
Smb
259277
~~~
260278

docs/quick_start.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,20 @@ A custom X-Request-ID header can also be provided to any request.
245245
response = client.get_pods(x_request_id='readthedocs-test')
246246
print response.headers.x_request_id
247247
248+
An example of querying sustainability information.
249+
250+
.. code-block:: python
251+
252+
response = client.get_assessment_sustainability_arrays()
253+
for assessment in response.items:
254+
print assessment
255+
256+
.. code-block:: python
257+
258+
response = client.get_assessment_sustainability_insights_arrays()
259+
for insight in response.items:
260+
print insight
261+
248262
249263
Filtering
250264
---------

docs/source/pypureclient.pure1.Pure1_1_1.models.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,14 @@ pypureclient.pure1.Pure1\_1\_1.models.marketplace\_partner module
484484
:undoc-members:
485485
:show-inheritance:
486486

487+
pypureclient.pure1.Pure1\_1\_1.models.install\_address module
488+
-------------------------------------------------------------
489+
490+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.install_address
491+
:members:
492+
:undoc-members:
493+
:show-inheritance:
494+
487495
pypureclient.pure1.Pure1\_1\_1.models.metric module
488496
---------------------------------------------------
489497

@@ -919,6 +927,62 @@ pypureclient.pure1.Pure1\_1\_1.models.sustainability\_insight\_array\_get\_respo
919927
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_insight\_array\_response module
920928
-------------------------------------------------------------------------------------
921929

930+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_insight_array_response
931+
:members:
932+
:undoc-members:
933+
:show-inheritance:
934+
935+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_array module
936+
------------------------------------------------------------------
937+
938+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_array
939+
:members:
940+
:undoc-members:
941+
:show-inheritance:
942+
943+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_array\_get\_response module
944+
---------------------------------------------------------------------------------
945+
946+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_array_get_response
947+
:members:
948+
:undoc-members:
949+
:show-inheritance:
950+
951+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_array\_response module
952+
----------------------------------------------------------------------------
953+
954+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_array_response
955+
:members:
956+
:undoc-members:
957+
:show-inheritance:
958+
959+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_assessment module
960+
-----------------------------------------------------------------------
961+
962+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_assessment
963+
:members:
964+
:undoc-members:
965+
:show-inheritance:
966+
967+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_insight\_array module
968+
---------------------------------------------------------------------------
969+
970+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_insight_array
971+
:members:
972+
:undoc-members:
973+
:show-inheritance:
974+
975+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_insight\_array\_get\_response module
976+
------------------------------------------------------------------------------------------
977+
978+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_insight_array_get_response
979+
:members:
980+
:undoc-members:
981+
:show-inheritance:
982+
983+
pypureclient.pure1.Pure1\_1\_1.models.sustainability\_insight\_array\_response module
984+
-------------------------------------------------------------------------------------
985+
922986
.. automodule:: pypureclient.pure1.Pure1_1_1.models.sustainability_insight_array_response
923987
:members:
924988
:undoc-members:
@@ -991,6 +1055,14 @@ pypureclient.pure1.Pure1\_1\_1.models.time\_aware module
9911055
pypureclient.pure1.Pure1\_1\_1.models.time\_interval module
9921056
-----------------------------------------------------------
9931057

1058+
.. automodule:: pypureclient.pure1.Pure1_1_1.models.time_interval
1059+
:members:
1060+
:undoc-members:
1061+
:show-inheritance:
1062+
1063+
pypureclient.pure1.Pure1\_1\_1.models.time\_interval module
1064+
-----------------------------------------------------------
1065+
9941066
.. automodule:: pypureclient.pure1.Pure1_1_1.models.time_interval
9951067
:members:
9961068
:undoc-members:

0 commit comments

Comments
 (0)