src.api.catacloud.caclop
Classes
|
- class src.api.catacloud.caclop.CaClOp(ses: CaClSession)
- Author:
Alberto M. Esmoris Pena
Class that provides the commong logic for operations on the Catacloud platform through its API.
- Variables:
ses (
CaClSession.) – The session object used to launch the operations in the Catacloud platform.
- __init__(ses: CaClSession)
- check_status_code(status_code)
Check whether the given status code mean the operations was run successfully or not. If the operation was not successful an
APIExceptionwill be thrown.- Parameters:
status_code (int) – The status code to be checked.
- Returns:
Nothing at all but an exception will be raised if the status code is not a successful one.