google-apis-chat_v1 0.116.0 → 0.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f36cb01b290ba227de75fddde1b018fed9eb4add6346bb9b16718905d44bc83e
4
- data.tar.gz: 14260ea614383e8873d0b31bc9db39980b8c2a3ea4456f597c3f503cfe28d905
3
+ metadata.gz: 110f9a2d486e090fc4ba5b0df2af207c15788728f72ee22719fb2ec14f140209
4
+ data.tar.gz: 1f65800797af1fb9dd9fd7a9b6d016a0ff3fb7b7bdc780ceb6382fb51684a820
5
5
  SHA512:
6
- metadata.gz: 431bada94d65c2e3fe6af4fdbb82664185980b056e95a1f253837acc6c889bc47925893dad765459955e303eb75c348b4feb41570837c3a8709a5b03e526c3b2
7
- data.tar.gz: 3c11e0ad312861b455b8feb04d1ffc6209d2de0f9ad27211d63334fb827fdc884d00adcbfb5dc27fea3434f4aebf65ce6ffd5187a0ce9355d2e2b4809b4a0797
6
+ metadata.gz: 340ea80a41f14f6ff094f3aabbe8602a4687283f373eb8327e74d91d1b361a8f131a37de853668e948319a17266730d04378de5e49ededc2aa0c245b1ec152f5
7
+ data.tar.gz: 54af49978bc65df6c87a18abc05ade400eaa3e51b951c064c37d54c1eb84a02cec6d8569363a90f3298c4285555e4321f09cbbcc418aa42c95e067ee0d1cd052
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.117.0 (2025-03-09)
4
+
5
+ * Regenerated from discovery document revision 20250227
6
+
3
7
  ### v0.116.0 (2025-02-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20250213
@@ -5738,6 +5738,38 @@ module Google
5738
5738
  end
5739
5739
  end
5740
5740
 
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
+
5741
5773
  # A user's read state within a space, used to identify read and unread messages.
5742
5774
  class SpaceReadState
5743
5775
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChatV1
18
18
  # Version of the google-apis-chat_v1 gem
19
- GEM_VERSION = "0.116.0"
19
+ GEM_VERSION = "0.117.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250213"
25
+ REVISION = "20250227"
26
26
  end
27
27
  end
28
28
  end
@@ -796,6 +796,12 @@ module Google
796
796
  include Google::Apis::Core::JsonObjectSupport
797
797
  end
798
798
 
799
+ class SpaceNotificationSetting
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
799
805
  class SpaceReadState
800
806
  class Representation < Google::Apis::Core::JsonRepresentation; end
801
807
 
@@ -2318,6 +2324,15 @@ module Google
2318
2324
  end
2319
2325
  end
2320
2326
 
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
+
2321
2336
  class SpaceReadState
2322
2337
  # @private
2323
2338
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1791,6 +1791,79 @@ module Google
1791
1791
  execute_or_queue_command(command, &block)
1792
1792
  end
1793
1793
 
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
+
1794
1867
  # Returns details about a user's read state within a thread, used to identify
1795
1868
  # read and unread messages. For an example, see [Get details about a user's
1796
1869
  # thread read state](https://developers.google.com/workspace/chat/get-thread-
@@ -107,6 +107,9 @@ module Google
107
107
 
108
108
  # View last read time for Google Chat conversations
109
109
  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'
110
113
  end
111
114
  end
112
115
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.116.0
4
+ version: 0.117.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-03-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.116.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.117.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
62
62
  rdoc_options: []
63
63
  require_paths: