(self, *args, **kwargs)
| 431 | self, py_operation_name, operation_name, service_model |
| 432 | ): |
| 433 | def _api_call(self, *args, **kwargs): |
| 434 | # We're accepting *args so that we can give a more helpful |
| 435 | # error message than TypeError: _api_call takes exactly |
| 436 | # 1 argument. |
| 437 | if args: |
| 438 | raise TypeError( |
| 439 | f"{py_operation_name}() only accepts keyword arguments." |
| 440 | ) |
| 441 | # The "self" in this scope is referring to the BaseClient. |
| 442 | return self._make_api_call(operation_name, kwargs) |
| 443 | |
| 444 | _api_call.__name__ = str(py_operation_name) |
| 445 |
nothing calls this directly
no test coverage detected