File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
chat/client-libraries/cloud Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,15 @@ def update_message_with_app_cred():
3232 message = {
3333 # Replace SPACE_NAME and MESSAGE_NAME here
3434 "name" : "spaces/SPACE_NAME/messages/MESSAGE_NAME" ,
35- "text" : "Updated with app credential!"
35+ "text" : "Text updated with app credential!" ,
36+ "cards_v2" : [{ "card" : { "header" : {
37+ "title" : 'Card updated with app credential!' ,
38+ "image_url" : 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg'
39+ }}}]
3640 },
3741 # The field paths to update. Separate multiple values with commas or use
3842 # `*` to update all field paths.
39- update_mask = "text"
43+ update_mask = "text,cardsV2 "
4044 )
4145
4246 # Make the request
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def update_space_with_user_cred():
3838 'display_name' : 'New space display name'
3939 },
4040 # The field paths to update. Separate multiple values with commas.
41- update_mask = 'display_name '
41+ update_mask = 'displayName '
4242 )
4343
4444 # Make the request
You can’t perform that action at this time.
0 commit comments