You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Gets the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).</p>
<pclass="firstline">Updates the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).</p>
<pre>Gets the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
95
+
96
+
Args:
97
+
name: string, Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - `users/me/spaces/{space}/spaceNotificationSetting`, OR - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR - `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id or email is allowed in the path. (required)
98
+
x__xgafv: string, V1 error format.
99
+
Allowed values
100
+
1 - v1 error format
101
+
2 - v2 error format
102
+
103
+
Returns:
104
+
An object of the form:
105
+
106
+
{ # The notification setting of a user in a space.
107
+
"muteSetting": "A String", # The space notification mute setting.
108
+
"name": "A String", # Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.
109
+
"notificationSetting": "A String", # The notification setting.
<pre>Updates the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
116
+
117
+
Args:
118
+
name: string, Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. (required)
119
+
body: object, The request body.
120
+
The object takes the form of:
121
+
122
+
{ # The notification setting of a user in a space.
123
+
"muteSetting": "A String", # The space notification mute setting.
124
+
"name": "A String", # Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.
125
+
"notificationSetting": "A String", # The notification setting.
126
+
}
127
+
128
+
updateMask: string, Required. Supported field paths: - `notification_setting` - `mute_setting`
129
+
x__xgafv: string, V1 error format.
130
+
Allowed values
131
+
1 - v1 error format
132
+
2 - v2 error format
133
+
134
+
Returns:
135
+
An object of the form:
136
+
137
+
{ # The notification setting of a user in a space.
138
+
"muteSetting": "A String", # The space notification mute setting.
139
+
"name": "A String", # Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.
140
+
"notificationSetting": "A String", # The notification setting.
"description": "Read and update your space settings"
82
85
}
83
86
}
84
87
}
@@ -1309,6 +1312,69 @@
1309
1312
}
1310
1313
},
1311
1314
"resources": {
1315
+
"spaceNotificationSetting": {
1316
+
"methods": {
1317
+
"get": {
1318
+
"description": "Gets the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).",
"description": "Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - `users/me/spaces/{space}/spaceNotificationSetting`, OR - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR - `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id or email is allowed in the path.",
"description": "Updates the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).",
"description": "The notification setting of a user in a space.",
4984
+
"id": "SpaceNotificationSetting",
4985
+
"properties": {
4986
+
"muteSetting": {
4987
+
"description": "The space notification mute setting.",
4988
+
"enum": [
4989
+
"MUTE_SETTING_UNSPECIFIED",
4990
+
"UNMUTED",
4991
+
"MUTED"
4992
+
],
4993
+
"enumDescriptions": [
4994
+
"Reserved.",
4995
+
"The user will receive notifications for the space based on the notification setting.",
4996
+
"The user will not receive any notifications for the space, regardless of the notification setting."
4997
+
],
4998
+
"type": "string"
4999
+
},
5000
+
"name": {
5001
+
"description": "Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.",
5002
+
"type": "string"
5003
+
},
5004
+
"notificationSetting": {
5005
+
"description": "The notification setting.",
5006
+
"enum": [
5007
+
"NOTIFICATION_SETTING_UNSPECIFIED",
5008
+
"ALL",
5009
+
"MAIN_CONVERSATIONS",
5010
+
"FOR_YOU",
5011
+
"OFF"
5012
+
],
5013
+
"enumDescriptions": [
5014
+
"Reserved.",
5015
+
"Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user.",
5016
+
"The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages.",
5017
+
"The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages.",
5018
+
"Notification is off."
5019
+
],
5020
+
"type": "string"
5021
+
}
5022
+
},
5023
+
"type": "object"
5024
+
},
4916
5025
"SpaceReadState": {
4917
5026
"description": "A user's read state within a space, used to identify read and unread messages.",
0 commit comments