@@ -1791,6 +1791,79 @@ def update_user_space_space_read_state(name, space_read_state_object = nil, upda
17911791 execute_or_queue_command ( command , &block )
17921792 end
17931793
1794+ # Gets the space notification state setting. Requires [user authentication](
1795+ # https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1796+ # @param [String] name
1797+ # Required. Format: users/`user`/spaces/`space`/spaceNotificationSetting - `
1798+ # users/me/spaces/`space`/spaceNotificationSetting`, OR - `users/user@example.
1799+ # com/spaces/`space`/spaceNotificationSetting`, OR - `users/123456789/spaces/`
1800+ # space`/spaceNotificationSetting`. Note: Only the caller's user id or email is
1801+ # allowed in the path.
1802+ # @param [String] fields
1803+ # Selector specifying which fields to include in a partial response.
1804+ # @param [String] quota_user
1805+ # Available to use for quota purposes for server-side applications. Can be any
1806+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1807+ # @param [Google::Apis::RequestOptions] options
1808+ # Request-specific options
1809+ #
1810+ # @yield [result, err] Result & error if block supplied
1811+ # @yieldparam result [Google::Apis::ChatV1::SpaceNotificationSetting] parsed result object
1812+ # @yieldparam err [StandardError] error object if request failed
1813+ #
1814+ # @return [Google::Apis::ChatV1::SpaceNotificationSetting]
1815+ #
1816+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1817+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1818+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1819+ def get_user_space_space_notification_setting ( name , fields : nil , quota_user : nil , options : nil , &block )
1820+ command = make_simple_command ( :get , 'v1/{+name}' , options )
1821+ command . response_representation = Google ::Apis ::ChatV1 ::SpaceNotificationSetting ::Representation
1822+ command . response_class = Google ::Apis ::ChatV1 ::SpaceNotificationSetting
1823+ command . params [ 'name' ] = name unless name . nil?
1824+ command . query [ 'fields' ] = fields unless fields . nil?
1825+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1826+ execute_or_queue_command ( command , &block )
1827+ end
1828+
1829+ # Updates the space notification state setting. Requires [user authentication](
1830+ # https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
1831+ # @param [String] name
1832+ # Identifier. The resource name of the space notification setting. Format: `
1833+ # users/`user`/spaces/`space`/spaceNotificationSetting`.
1834+ # @param [Google::Apis::ChatV1::SpaceNotificationSetting] space_notification_setting_object
1835+ # @param [String] update_mask
1836+ # Required. Supported field paths: - `notification_setting` - `mute_setting`
1837+ # @param [String] fields
1838+ # Selector specifying which fields to include in a partial response.
1839+ # @param [String] quota_user
1840+ # Available to use for quota purposes for server-side applications. Can be any
1841+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1842+ # @param [Google::Apis::RequestOptions] options
1843+ # Request-specific options
1844+ #
1845+ # @yield [result, err] Result & error if block supplied
1846+ # @yieldparam result [Google::Apis::ChatV1::SpaceNotificationSetting] parsed result object
1847+ # @yieldparam err [StandardError] error object if request failed
1848+ #
1849+ # @return [Google::Apis::ChatV1::SpaceNotificationSetting]
1850+ #
1851+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1852+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1853+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1854+ def patch_user_space_space_notification_setting ( name , space_notification_setting_object = nil , update_mask : nil , fields : nil , quota_user : nil , options : nil , &block )
1855+ command = make_simple_command ( :patch , 'v1/{+name}' , options )
1856+ command . request_representation = Google ::Apis ::ChatV1 ::SpaceNotificationSetting ::Representation
1857+ command . request_object = space_notification_setting_object
1858+ command . response_representation = Google ::Apis ::ChatV1 ::SpaceNotificationSetting ::Representation
1859+ command . response_class = Google ::Apis ::ChatV1 ::SpaceNotificationSetting
1860+ command . params [ 'name' ] = name unless name . nil?
1861+ command . query [ 'updateMask' ] = update_mask unless update_mask . nil?
1862+ command . query [ 'fields' ] = fields unless fields . nil?
1863+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1864+ execute_or_queue_command ( command , &block )
1865+ end
1866+
17941867 # Returns details about a user's read state within a thread, used to identify
17951868 # read and unread messages. For an example, see [Get details about a user's
17961869 # thread read state](https://developers.google.com/workspace/chat/get-thread-
0 commit comments