From 54cb07b961c41ad8ff2aa0f1706ea2412a779754 Mon Sep 17 00:00:00 2001 From: Maira Usman Date: Wed, 29 Nov 2023 10:27:39 +0500 Subject: [PATCH 1/3] Update doc Signed-off-by: Maira Usman --- docs/source/usage/examples.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/usage/examples.rst b/docs/source/usage/examples.rst index d9371c60..a4f62bde 100644 --- a/docs/source/usage/examples.rst +++ b/docs/source/usage/examples.rst @@ -9,6 +9,7 @@ Create a dictionary to handle communication with the plug-in: from zowe.zos_console_for_zowe_sdk import Console connection = { "host_url": "''", + "port" : 443 , # Include the port if different from the default (443) "user": "", "password": "", } From 9f154a039cc70e118fe8a414044f8d2f6124e4e1 Mon Sep 17 00:00:00 2001 From: Maira Usman Date: Wed, 29 Nov 2023 20:29:00 +0500 Subject: [PATCH 2/3] Update examples of basic usage Signed-off-by: Maira Usman --- docs/source/usage/examples.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/source/usage/examples.rst b/docs/source/usage/examples.rst index a4f62bde..f10ae914 100644 --- a/docs/source/usage/examples.rst +++ b/docs/source/usage/examples.rst @@ -7,23 +7,23 @@ Create a dictionary to handle communication with the plug-in: .. code-block:: python from zowe.zos_console_for_zowe_sdk import Console - connection = { - "host_url": "''", + profile = { + "host": "", "port" : 443 , # Include the port if different from the default (443) "user": "", "password": "", } - my_console = Console(connection) + my_console = Console(profile) Alternatively you can use an existing Zowe CLI profile instead: .. code-block:: python - from zowe.zos_console_for_zowe_sdk import Console + from zowe.zos_console_for_zowe_sdk import Console + from zowe.zos_core_for_zowe_sdk import ProfileManager - connection = { - "plugin_profile": ">" - } + # Load the profile using ProfileManager + profile = ProfileManager().load(profile_type="") - my_console = Console(connection) + my_console = Console(profile) From a17bdb6df7b5267d09213332795b50fd0a9af18a Mon Sep 17 00:00:00 2001 From: Maira Usman Date: Thu, 30 Nov 2023 23:51:22 +0500 Subject: [PATCH 3/3] Update doc of basic usage Signed-off-by: Maira Usman --- docs/source/usage/examples.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/usage/examples.rst b/docs/source/usage/examples.rst index f10ae914..98642640 100644 --- a/docs/source/usage/examples.rst +++ b/docs/source/usage/examples.rst @@ -21,9 +21,9 @@ Alternatively you can use an existing Zowe CLI profile instead: .. code-block:: python from zowe.zos_console_for_zowe_sdk import Console - from zowe.zos_core_for_zowe_sdk import ProfileManager + from zowe.core_for_zowe_sdk import ProfileManager # Load the profile using ProfileManager - profile = ProfileManager().load(profile_type="") + profile = ProfileManager().load(profile_name="") my_console = Console(profile)