Skip to content

Commit fd61962

Browse files
feat: Automated regeneration of chat v1 client (googleapis#21991)
Auto-created at 2025-03-09 09:52:11 +0000 using the toys pull request generator.
1 parent 5c8e7ce commit fd61962

File tree

7 files changed

+138
-2
lines changed

7 files changed

+138
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55619,6 +55619,10 @@
5561955619
"/chat:v1/SpaceEvent/reactionDeletedEventData": reaction_deleted_event_data
5562055620
"/chat:v1/SpaceEvent/spaceBatchUpdatedEventData": space_batch_updated_event_data
5562155621
"/chat:v1/SpaceEvent/spaceUpdatedEventData": space_updated_event_data
55622+
"/chat:v1/SpaceNotificationSetting": space_notification_setting
55623+
"/chat:v1/SpaceNotificationSetting/muteSetting": mute_setting
55624+
"/chat:v1/SpaceNotificationSetting/name": name
55625+
"/chat:v1/SpaceNotificationSetting/notificationSetting": notification_setting
5562255626
"/chat:v1/SpaceReadState": space_read_state
5562355627
"/chat:v1/SpaceReadState/lastReadTime": last_read_time
5562455628
"/chat:v1/SpaceReadState/name": name
@@ -55824,6 +55828,11 @@
5582455828
"/chat:v1/chat.spaces.webhooks/threadKey": thread_key
5582555829
"/chat:v1/chat.users.spaces.getSpaceReadState": get_user_space_space_read_state
5582655830
"/chat:v1/chat.users.spaces.getSpaceReadState/name": name
55831+
"/chat:v1/chat.users.spaces.spaceNotificationSetting.get": get_user_space_space_notification_setting
55832+
"/chat:v1/chat.users.spaces.spaceNotificationSetting.get/name": name
55833+
"/chat:v1/chat.users.spaces.spaceNotificationSetting.patch": patch_user_space_space_notification_setting
55834+
"/chat:v1/chat.users.spaces.spaceNotificationSetting.patch/name": name
55835+
"/chat:v1/chat.users.spaces.spaceNotificationSetting.patch/updateMask": update_mask
5582755836
"/chat:v1/chat.users.spaces.threads.getThreadReadState": get_user_space_thread_thread_read_state
5582855837
"/chat:v1/chat.users.spaces.threads.getThreadReadState/name": name
5582955838
"/chat:v1/chat.users.spaces.updateSpaceReadState": update_user_space_space_read_state

generated/google-apis-chat_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-chat_v1
22

3+
### v0.117.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250227
6+
37
### v0.116.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250213

generated/google-apis-chat_v1/lib/google/apis/chat_v1.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ module ChatV1
107107

108108
# View last read time for Google Chat conversations
109109
AUTH_CHAT_USERS_READSTATE_READONLY = 'https://www.googleapis.com/auth/chat.users.readstate.readonly'
110+
111+
# Read and update your space settings
112+
AUTH_CHAT_USERS_SPACESETTINGS = 'https://www.googleapis.com/auth/chat.users.spacesettings'
110113
end
111114
end
112115
end

generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5738,6 +5738,38 @@ def update!(**args)
57385738
end
57395739
end
57405740

5741+
# The notification setting of a user in a space.
5742+
class SpaceNotificationSetting
5743+
include Google::Apis::Core::Hashable
5744+
5745+
# The space notification mute setting.
5746+
# Corresponds to the JSON property `muteSetting`
5747+
# @return [String]
5748+
attr_accessor :mute_setting
5749+
5750+
# Identifier. The resource name of the space notification setting. Format: `
5751+
# users/`user`/spaces/`space`/spaceNotificationSetting`.
5752+
# Corresponds to the JSON property `name`
5753+
# @return [String]
5754+
attr_accessor :name
5755+
5756+
# The notification setting.
5757+
# Corresponds to the JSON property `notificationSetting`
5758+
# @return [String]
5759+
attr_accessor :notification_setting
5760+
5761+
def initialize(**args)
5762+
update!(**args)
5763+
end
5764+
5765+
# Update properties of this object
5766+
def update!(**args)
5767+
@mute_setting = args[:mute_setting] if args.key?(:mute_setting)
5768+
@name = args[:name] if args.key?(:name)
5769+
@notification_setting = args[:notification_setting] if args.key?(:notification_setting)
5770+
end
5771+
end
5772+
57415773
# A user's read state within a space, used to identify read and unread messages.
57425774
class SpaceReadState
57435775
include Google::Apis::Core::Hashable

generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ChatV1
1818
# Version of the google-apis-chat_v1 gem
19-
GEM_VERSION = "0.116.0"
19+
GEM_VERSION = "0.117.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250213"
25+
REVISION = "20250227"
2626
end
2727
end
2828
end

generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
796796
include Google::Apis::Core::JsonObjectSupport
797797
end
798798

799+
class SpaceNotificationSetting
800+
class Representation < Google::Apis::Core::JsonRepresentation; end
801+
802+
include Google::Apis::Core::JsonObjectSupport
803+
end
804+
799805
class SpaceReadState
800806
class Representation < Google::Apis::Core::JsonRepresentation; end
801807

@@ -2318,6 +2324,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
23182324
end
23192325
end
23202326

2327+
class SpaceNotificationSetting
2328+
# @private
2329+
class Representation < Google::Apis::Core::JsonRepresentation
2330+
property :mute_setting, as: 'muteSetting'
2331+
property :name, as: 'name'
2332+
property :notification_setting, as: 'notificationSetting'
2333+
end
2334+
end
2335+
23212336
class SpaceReadState
23222337
# @private
23232338
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-chat_v1/lib/google/apis/chat_v1/service.rb

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)