def execute_operation(self, method="<STR_LIT:GET>", ops_path="<STR_LIT>", payload="<STR_LIT>"):
operation_path_URL = "<STR_LIT>".join([self.api_server, ops_path])<EOL>logging.debug("<STR_LIT>" %(method, operation_path_URL))<EOL>if payload == "<STR_LIT>":<EOL><INDENT>res = requests.request(method, operation_path_URL)<EOL><DEDENT>else:<EOL><INDENT>logging.debug("<STR_LIT>" %(payload))<EOL>res = requests.request(method, operation_path_URL, data=payload)<EOL><DEDENT>logging.debug("<STR_LIT>" %(res.json()))<EOL>return res<EOL>
Executes a Kubernetes operation using the specified method against a path.
This is part of the low-level API.

:Parameters:
   - `method`: The HTTP method to use, defaults to `GET`
   - `ops_path`: The path of the operation, for example, `/api/v1/events` which would result in an overall: `GET http://localhost:8080/api/v1/events`
   - `payload`: The optional payload which is relevant for `POST` or `PUT` methods only