From c51b06a6c374c98cebac8cb3398bd35738e70234 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 28 May 2025 09:01:22 -0700 Subject: [PATCH] Update `gam setup chat` output --- src/GamUpdate.txt | 7 +++++++ src/gam/__init__.py | 4 ++-- src/gam/gamlib/glmsgs.py | 6 ++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index cfea57f8..31689952 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,10 @@ +7.07.14 + +Update `gam setup chat` output to include the following that shows the actual Cloud Pub/Sub Topic Name. +``` +You'll use projects//topics/no-topic in Connection settings Cloud Pub/Sub Topic Name +``` + 7.07.13 Added option `showitemcountonly` to `gam [] print|show shareddrives` that causes GAM to display the diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 1ab28a0c..64d5b556 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.07.13' +__version__ = '7.07.14' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -25949,7 +25949,7 @@ def _printChatItem(user, citem, parent, entityType, csvPF, FJQC, addCSVData=None def doSetupChat(): checkForExtraneousArguments() _, chat , _ = buildChatServiceObject() - writeStdout(Msg.TO_SET_UP_GOOGLE_CHAT.format(setupChatURL(chat))) + writeStdout(Msg.TO_SET_UP_GOOGLE_CHAT.format(setupChatURL(chat), GM.Globals[GM.OAUTH2SERVICE_JSON_DATA]['project_id'])) def getSpaceName(myarg): if myarg == 'space': diff --git a/src/gam/gamlib/glmsgs.py b/src/gam/gamlib/glmsgs.py index fcc8f775..df67c35a 100644 --- a/src/gam/gamlib/glmsgs.py +++ b/src/gam/gamlib/glmsgs.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2024 Ross Scroggs All Rights Reserved. +# Copyright (C) 2025 Ross Scroggs All Rights Reserved. # # All Rights Reserved. # @@ -504,13 +504,15 @@ TO = 'To' TO_LC = 'to' TO_MAXIMUM_OF = 'to maximum of' TO_SET_UP_GOOGLE_CHAT = """ -To set up Google Chat for your API project, please go to: +To set up Google Chat for your current project, please go to: {0} and follow the instructions at: https://github.com/GAM-team/GAM/wiki/Chat-Bot#set-up-a-chat-bot + + You'll use projects/{1}/topics/no-topic in Connection settings Cloud Pub/Sub Topic Name """ TOTAL_ITEMS_IN_ENTITY = 'Total {0} in {1}' TRIMMED_MESSAGE_FROM_LENGTH_TO_MAXIMUM = 'Trimmed message of length {0} to maximum length {1}'