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

Sign up to get free protection for your applications and to get access to all the features.
pydiagral/api.py CHANGED
@@ -687,7 +687,6 @@ class DiagralAPI:
687
687
 
688
688
  Raises:
689
689
  ConfigurationError: If the provided ID is not 1 or 2.
690
- All other exceptions from __system_action function are propagated.
691
690
 
692
691
  """
693
692
 
@@ -781,7 +780,6 @@ class DiagralAPI:
781
780
 
782
781
  Raises:
783
782
  ConfigurationError: If the action is not one of the allowed actions.
784
- All other exceptions from __action_group_system function are propagated.
785
783
 
786
784
  """
787
785
 
@@ -803,7 +801,6 @@ class DiagralAPI:
803
801
 
804
802
  Raises:
805
803
  ConfigurationError: If the action is not one of the allowed actions.
806
- All other exceptions from __action_group_system function are propagated.
807
804
 
808
805
  """
809
806
 
@@ -884,9 +881,6 @@ class DiagralAPI:
884
881
  Returns:
885
882
  SystemStatus: An instance of SystemStatus containing the system status after enabling the product.
886
883
 
887
- Raises:
888
- All exceptions from __action_product function are propagated.
889
-
890
884
  """
891
885
  return await self.__action_product(
892
886
  action="enable", type=type, product_id=product_id
@@ -904,9 +898,6 @@ class DiagralAPI:
904
898
  Returns:
905
899
  SystemStatus: An instance of SystemStatus containing the system status after disabling the product.
906
900
 
907
- Raises:
908
- All exceptions from __action_product function are propagated.
909
-
910
901
  """
911
902
  return await self.__action_product(
912
903
  action="disable", type=type, product_id=product_id
@@ -977,7 +968,6 @@ class DiagralAPI:
977
968
 
978
969
  Raises:
979
970
  AuthenticationError: If the API key or secret key is not provided.
980
- All other exceptions from _request function are propagated.
981
971
 
982
972
  """
983
973
 
pydiagral/models.py CHANGED
@@ -90,7 +90,7 @@ class CamelCaseModel:
90
90
  return result
91
91
 
92
92
  @classmethod
93
- def _from_dict_recursive(cls, data: dict, target_cls: type[T]) -> T:
93
+ def _from_dict_recursive(cls: type[T], data: dict, target_cls: type[T]) -> T:
94
94
  """Recursively converts a dictionary to an instance of the specified target class.
95
95
 
96
96
  This method handles nested dictionaries and lists, converting them to the appropriate
@@ -98,7 +98,7 @@ class CamelCaseModel:
98
98
  by handling `Union` types and removing `None` from the type hints.
99
99
 
100
100
  Args:
101
- cls: The class that this method is a part of.
101
+ cls (type[T]): The class that this method is a part of.
102
102
  data (dict): The dictionary to convert.
103
103
  target_cls (type[T]): The target class to convert the dictionary to.
104
104
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydiagral
3
- Version: 1.3.0
3
+ Version: 1.3.2
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
@@ -0,0 +1,10 @@
1
+ pydiagral/__init__.py,sha256=4uM-RD2GQ6JYJkxu-D6wj3XpqfY5gN2hP8NF6WvRI9k,576
2
+ pydiagral/api.py,sha256=7BucDsWVRMnEI5y9KECSmCDIs-JsxyDD4V0LVqQlvEg,45955
3
+ pydiagral/constants.py,sha256=2B0TdKxQHA3cpIBxojo43bMW44wN9xKYsHbBRHWsaBk,119
4
+ pydiagral/exceptions.py,sha256=PLo85XJ55q4_dzsyaMYXLIaX8Ws7HH6vDUWNWodzCpM,1013
5
+ pydiagral/models.py,sha256=shnAf7ojh6y5fGp3l5RbGdp4qpuEyOZI-0ePrWAg2l0,54120
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,,
@@ -1,10 +0,0 @@
1
- pydiagral/__init__.py,sha256=4uM-RD2GQ6JYJkxu-D6wj3XpqfY5gN2hP8NF6WvRI9k,576
2
- pydiagral/api.py,sha256=GUk-jTUFchGlFWXsbDytfAXkkPw6u1rsQxI4_vg0--4,46458
3
- pydiagral/constants.py,sha256=2B0TdKxQHA3cpIBxojo43bMW44wN9xKYsHbBRHWsaBk,119
4
- pydiagral/exceptions.py,sha256=PLo85XJ55q4_dzsyaMYXLIaX8Ws7HH6vDUWNWodzCpM,1013
5
- pydiagral/models.py,sha256=pZkEVuvt33rCDm7fUBGFM5jVCwgASzMxNXKAztuqsJ0,54101
6
- pydiagral/utils.py,sha256=weccW18dseD_Ypwe4dKvNz6TlZPA7BQbf5l5qk3GXOg,444
7
- pydiagral-1.3.0.dist-info/METADATA,sha256=dppuBiDTDDhVMjs1jeMuNG_3hSTCMirIdgcV1V5benc,46568
8
- pydiagral-1.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- pydiagral-1.3.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
10
- pydiagral-1.3.0.dist-info/RECORD,,