From 9f154a039cc70e118fe8a414044f8d2f6124e4e1 Mon Sep 17 00:00:00 2001 From: Maira Usman Date: Wed, 29 Nov 2023 20:29:00 +0500 Subject: [PATCH] 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)