pydiagral 1.3.2__py3-none-any.whl → 1.3.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pydiagral/api.py CHANGED
@@ -642,7 +642,8 @@ class DiagralAPI:
642
642
  SystemStatus: An instance of SystemStatus containing the system status after starting the system.
643
643
 
644
644
  Raises:
645
- All exceptions from __system_action function are propagated.
645
+ ConfigurationError: If the action is not one of the allowed actions.
646
+ AuthenticationError: If the API key, secret key, or PIN code is missing.
646
647
 
647
648
  """
648
649
 
@@ -657,7 +658,8 @@ class DiagralAPI:
657
658
  SystemStatus: An instance of SystemStatus containing the system status after stopping the system.
658
659
 
659
660
  Raises:
660
- All exceptions from __system_action function are propagated.
661
+ ConfigurationError: If the action is not one of the allowed actions.
662
+ AuthenticationError: If the API key, secret key, or PIN code is missing.
661
663
 
662
664
  """
663
665
 
@@ -670,7 +672,8 @@ class DiagralAPI:
670
672
  SystemStatus: An instance of SystemStatus containing the system status after starting the system in presence mode.
671
673
 
672
674
  Raises:
673
- All exceptions from __system_action function are propagated.
675
+ ConfigurationError: If the action is not one of the allowed actions.
676
+ AuthenticationError: If the API key, secret key, or PIN code is missing.
674
677
 
675
678
  """
676
679
 
@@ -780,6 +783,7 @@ class DiagralAPI:
780
783
 
781
784
  Raises:
782
785
  ConfigurationError: If the action is not one of the allowed actions.
786
+ AuthenticationError: If the API key, secret key, or PIN code is not provided.
783
787
 
784
788
  """
785
789
 
@@ -801,6 +805,7 @@ class DiagralAPI:
801
805
 
802
806
  Raises:
803
807
  ConfigurationError: If the action is not one of the allowed actions.
808
+ AuthenticationError: If the API key, secret key, or PIN code is not provided.
804
809
 
805
810
  """
806
811
 
@@ -881,6 +886,10 @@ class DiagralAPI:
881
886
  Returns:
882
887
  SystemStatus: An instance of SystemStatus containing the system status after enabling the product.
883
888
 
889
+ Raises:
890
+ ConfigurationError: If the action is not 'enable'
891
+ AuthenticationError: If the API key, secret key, or PIN code is not provided.
892
+
884
893
  """
885
894
  return await self.__action_product(
886
895
  action="enable", type=type, product_id=product_id
@@ -898,6 +907,10 @@ class DiagralAPI:
898
907
  Returns:
899
908
  SystemStatus: An instance of SystemStatus containing the system status after disabling the product.
900
909
 
910
+ Raises:
911
+ ConfigurationError: If the action is not 'disable'
912
+ AuthenticationError: If the API key, secret key, or PIN code is not provided.
913
+
901
914
  """
902
915
  return await self.__action_product(
903
916
  action="disable", type=type, product_id=product_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydiagral
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: A Python library for interacting with Diagral systems
5
5
  Project-URL: Homepage, https://github.com/mguyard/pydiagral
6
6
  Project-URL: Documentation, https://github.com/mguyard/pydiagral
@@ -1,10 +1,10 @@
1
1
  pydiagral/__init__.py,sha256=4uM-RD2GQ6JYJkxu-D6wj3XpqfY5gN2hP8NF6WvRI9k,576
2
- pydiagral/api.py,sha256=7BucDsWVRMnEI5y9KECSmCDIs-JsxyDD4V0LVqQlvEg,45955
2
+ pydiagral/api.py,sha256=sX46Fct3Bwei5yKKQ5PnGDKl261BBqZ0CYMFUnXZ5Mw,46753
3
3
  pydiagral/constants.py,sha256=2B0TdKxQHA3cpIBxojo43bMW44wN9xKYsHbBRHWsaBk,119
4
4
  pydiagral/exceptions.py,sha256=PLo85XJ55q4_dzsyaMYXLIaX8Ws7HH6vDUWNWodzCpM,1013
5
5
  pydiagral/models.py,sha256=shnAf7ojh6y5fGp3l5RbGdp4qpuEyOZI-0ePrWAg2l0,54120
6
6
  pydiagral/utils.py,sha256=weccW18dseD_Ypwe4dKvNz6TlZPA7BQbf5l5qk3GXOg,444
7
- pydiagral-1.3.2.dist-info/METADATA,sha256=3zgiahUWV4Vga3_fwBL9WZvj9pMgRAsfrrxPruCxtrc,46568
8
- pydiagral-1.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- pydiagral-1.3.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
10
- pydiagral-1.3.2.dist-info/RECORD,,
7
+ pydiagral-1.3.3.dist-info/METADATA,sha256=c3pe_ZkYU0NjFP8wm51tAntO59LH5EtGU1eN5ty94PI,46568
8
+ pydiagral-1.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ pydiagral-1.3.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
10
+ pydiagral-1.3.3.dist-info/RECORD,,