diff --git a/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py b/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py index 42dc1736..a7fdfb38 100644 --- a/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py +++ b/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py @@ -14,7 +14,7 @@ from zowe.core_for_zowe_sdk import SdkApi -from .response import GetReponseResponse, IssueCommandResponse +from .response import ConsoleResponse, IssueCommandResponse class Console(SdkApi): @@ -52,7 +52,7 @@ def issue_command(self, command: str, console: Optional[str] = None) -> IssueCom response_json = self.request_handler.perform_request("PUT", custom_args) return IssueCommandResponse(response_json) - def get_response(self, response_key: str, console: Optional[str] = None) -> GetReponseResponse: + def get_response(self, response_key: str, console: Optional[str] = None) -> ConsoleResponse: """ Collect outstanding synchronous z/OS Console response messages. @@ -65,11 +65,11 @@ def get_response(self, response_key: str, console: Optional[str] = None) -> GetR Returns ------- - GetReponseResponse + ConsoleResponse A JSON containing the response to the command """ custom_args = self._create_custom_request_arguments() request_url = "{}/solmsgs/{}".format(console or "defcn", response_key) custom_args["url"] = self._request_endpoint.replace("defcn", request_url) response_json = self.request_handler.perform_request("GET", custom_args) - return GetReponseResponse(response_json) + return ConsoleResponse(response_json) diff --git a/src/zos_console/zowe/zos_console_for_zowe_sdk/response/__init__.py b/src/zos_console/zowe/zos_console_for_zowe_sdk/response/__init__.py index d1bce26b..6a6658ab 100644 --- a/src/zos_console/zowe/zos_console_for_zowe_sdk/response/__init__.py +++ b/src/zos_console/zowe/zos_console_for_zowe_sdk/response/__init__.py @@ -9,4 +9,5 @@ Copyright Contributors to the Zowe Project. """ -from .console import GetReponseResponse, IssueCommandResponse + +from .console import ConsoleResponse, IssueCommandResponse diff --git a/src/zos_console/zowe/zos_console_for_zowe_sdk/response/console.py b/src/zos_console/zowe/zos_console_for_zowe_sdk/response/console.py index 17db8711..33525e00 100644 --- a/src/zos_console/zowe/zos_console_for_zowe_sdk/response/console.py +++ b/src/zos_console/zowe/zos_console_for_zowe_sdk/response/console.py @@ -9,6 +9,7 @@ Copyright Contributors to the Zowe Project. """ + from dataclasses import dataclass from typing import Any, Optional @@ -33,7 +34,7 @@ def __setitem__(self, key: str, value: str) -> None: @dataclass -class GetReponseResponse: +class ConsoleResponse: cmd_response: Optional[str] = None sol_key_detected: Optional[bool] = None