Service Controller base class implementation
Definition at line 44 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.__init__ |
( |
|
self, |
|
|
|
service |
|
) |
| |
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.__mount_adapters |
( |
|
self, |
|
|
|
session |
|
) |
| |
|
private |
Mount http and https Transport Adapters to the session.
- Parameters
-
session | Session - The session to mount the adapters. |
Definition at line 172 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase._post_persistent |
( |
|
self, |
|
|
|
url, |
|
|
|
data, |
|
|
|
files |
|
) |
| |
|
private |
Post Request using active session - persistent connection.
- Parameters
-
data | dictionary - the data payload to send. |
files | Array - Array of serialized File objects to send. |
Definition at line 163 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase._post_session_once |
( |
|
self, |
|
|
|
url, |
|
|
|
data, |
|
|
|
files |
|
) |
| |
|
private |
Post Request while initiating a new session.
- Parameters
-
data | dictionary - the data payload to send. |
files | Array - Array of serialized File objects to send. |
Definition at line 151 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.basename |
( |
|
self, |
|
|
|
filepath |
|
) |
| |
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.handle_exception |
( |
|
self, |
|
|
|
exc |
|
) |
| |
Handles exceptions and return an error message that complies to the Exception caught.
- Parameters
-
Definition at line 181 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.is_json |
( |
|
self, |
|
|
|
obj |
|
) |
| |
Check if it is a json string.
- Parameters
-
- Returns
- - True if is a json. False otherwise.
Definition at line 70 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.post_request |
( |
|
self, |
|
|
|
session, |
|
|
|
url, |
|
|
|
payload = {} , |
|
|
|
files = [] |
|
) |
| |
General member method to perform a .post request to the.
Platform service. If files are specified, then multipart/form-data form is used. Otherwhise, x-www-urlencoded form is used.
- Parameters
-
session | The session oject to use for this request. |
urlpath | The complete urlpath of the request. |
data | The data to send. Literal. |
files | Files to send. |
- Returns
- dictionary - Platform Service response.
Definition at line 93 of file ServiceControllerBase.py.
def RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.run_job |
( |
|
self | ) |
|
RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.__auth |
|
private |
RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.__customHeaders |
|
private |
RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase._service |
|
private |
RappCloud.ServiceController.ServiceControllerBase.ServiceControllerBase.session_ |
The documentation for this class was generated from the following file: