From d6f8334a60d39af37d387daa3dfa3e2bab8720e9 Mon Sep 17 00:00:00 2001 From: Pierrick Voulet <6769971+PierrickVoulet@users.noreply.github.com> Date: Thu, 3 Oct 2024 13:20:53 -0400 Subject: [PATCH] feat: update message with app creds and fix typo (#1811) Co-authored-by: pierrick --- chat/client-libraries/cloud/update_message_app_cred.py | 8 ++++++-- chat/client-libraries/cloud/update_space_user_cred.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/chat/client-libraries/cloud/update_message_app_cred.py b/chat/client-libraries/cloud/update_message_app_cred.py index b9081dc4..40dda760 100644 --- a/chat/client-libraries/cloud/update_message_app_cred.py +++ b/chat/client-libraries/cloud/update_message_app_cred.py @@ -32,11 +32,15 @@ def update_message_with_app_cred(): message = { # Replace SPACE_NAME and MESSAGE_NAME here "name": "spaces/SPACE_NAME/messages/MESSAGE_NAME", - "text": "Updated with app credential!" + "text": "Text updated with app credential!", + "cards_v2" : [{ "card": { "header": { + "title": 'Card updated with app credential!', + "image_url": 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg' + }}}] }, # The field paths to update. Separate multiple values with commas or use # `*` to update all field paths. - update_mask = "text" + update_mask = "text,cardsV2" ) # Make the request diff --git a/chat/client-libraries/cloud/update_space_user_cred.py b/chat/client-libraries/cloud/update_space_user_cred.py index 3d257d0b..6c3540a6 100644 --- a/chat/client-libraries/cloud/update_space_user_cred.py +++ b/chat/client-libraries/cloud/update_space_user_cred.py @@ -38,7 +38,7 @@ def update_space_with_user_cred(): 'display_name': 'New space display name' }, # The field paths to update. Separate multiple values with commas. - update_mask = 'display_name' + update_mask = 'displayName' ) # Make the request