libcsm.api module
Submodule for interacting with CSM API services.
- class libcsm.api.Auth(**kwargs)
- Bases: - object- Class for handling CSM API credentials stored in Kubernetes secrets. - The initialization of this class passes any provided arguments along to - kubernetes.config.load_kube_config, allowing a user to override the config location.- refresh_token()
- Refresh the authentication token. - Raises:
- AuthException – if the Kubernetes configuration is invalid. 
- Return type:
- None
 
 - property token: str
- The authentication token. 
 
- exception libcsm.api.AuthException(message)
- Bases: - Exception- An exception for authorization problems from the - api.Authobject.