google-apis-chat_v1 0.106.0 → 0.107.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/chat_v1/classes.rb +120 -4
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +45 -0
- data/lib/google/apis/chat_v1/service.rb +118 -116
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cfb98466265afa85a7b9792db1d61b0e4a68d3b70aecaa0cd1b76568b590049
|
4
|
+
data.tar.gz: 3a9b29370c6c03e5cb8d46473585ea50b6d82134dc257a21ad820c326e55c70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2eccfce5c94e5069a0ce27fb31bcc068ea6d38efdddad396d21f69e1e277d41eeb006f7ce3021e228a7698ac7c623d4c77a2c0c567817aeb6674414c21ef0c
|
7
|
+
data.tar.gz: 88347c249f09a21af1c56404ac1eb54dbdcfbc20f9a9b13662ff3f12c1c7efe38b7094d6cd07244249ff2aed801a7ca02ebbf6b7fceb7c22d477382d920b8e7c
|
data/CHANGELOG.md
CHANGED
@@ -39,9 +39,17 @@ module Google
|
|
39
39
|
# Make a space discoverable to a target audience](https://developers.google.com/
|
40
40
|
# workspace/chat/space-target-audience). Format: `audiences/`audience`` To use
|
41
41
|
# the default target audience for the Google Workspace organization, set to `
|
42
|
-
# audiences/default`.
|
43
|
-
#
|
44
|
-
#
|
42
|
+
# audiences/default`. Reading the target audience supports: - [User
|
43
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
44
|
+
# authorize-chat-user) - [App authentication](https://developers.google.com/
|
45
|
+
# workspace/chat/authenticate-authorize-chat-app) with [administrator approval](
|
46
|
+
# https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope
|
47
|
+
# in [Developer Preview](https://developers.google.com/workspace/preview). This
|
48
|
+
# field is not populated when using the `chat.bot` scope with [app
|
49
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
50
|
+
# authorize-chat-app). Setting the target audience requires [user authentication]
|
51
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
52
|
+
# .
|
45
53
|
# Corresponds to the JSON property `audience`
|
46
54
|
# @return [String]
|
47
55
|
attr_accessor :audience
|
@@ -4269,6 +4277,96 @@ module Google
|
|
4269
4277
|
end
|
4270
4278
|
end
|
4271
4279
|
|
4280
|
+
# Represents a space permission setting.
|
4281
|
+
class PermissionSetting
|
4282
|
+
include Google::Apis::Core::Hashable
|
4283
|
+
|
4284
|
+
# Whether spaces managers have this permission.
|
4285
|
+
# Corresponds to the JSON property `managersAllowed`
|
4286
|
+
# @return [Boolean]
|
4287
|
+
attr_accessor :managers_allowed
|
4288
|
+
alias_method :managers_allowed?, :managers_allowed
|
4289
|
+
|
4290
|
+
# Whether non-manager members have this permission.
|
4291
|
+
# Corresponds to the JSON property `membersAllowed`
|
4292
|
+
# @return [Boolean]
|
4293
|
+
attr_accessor :members_allowed
|
4294
|
+
alias_method :members_allowed?, :members_allowed
|
4295
|
+
|
4296
|
+
def initialize(**args)
|
4297
|
+
update!(**args)
|
4298
|
+
end
|
4299
|
+
|
4300
|
+
# Update properties of this object
|
4301
|
+
def update!(**args)
|
4302
|
+
@managers_allowed = args[:managers_allowed] if args.key?(:managers_allowed)
|
4303
|
+
@members_allowed = args[:members_allowed] if args.key?(:members_allowed)
|
4304
|
+
end
|
4305
|
+
end
|
4306
|
+
|
4307
|
+
# [Permission settings](https://support.google.com/chat/answer/13340792) for a
|
4308
|
+
# named space. To set permission settings when creating a space, specify the `
|
4309
|
+
# PredefinedPermissionSettings` field in your request.
|
4310
|
+
class PermissionSettings
|
4311
|
+
include Google::Apis::Core::Hashable
|
4312
|
+
|
4313
|
+
# Represents a space permission setting.
|
4314
|
+
# Corresponds to the JSON property `manageApps`
|
4315
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4316
|
+
attr_accessor :manage_apps
|
4317
|
+
|
4318
|
+
# Represents a space permission setting.
|
4319
|
+
# Corresponds to the JSON property `manageMembersAndGroups`
|
4320
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4321
|
+
attr_accessor :manage_members_and_groups
|
4322
|
+
|
4323
|
+
# Represents a space permission setting.
|
4324
|
+
# Corresponds to the JSON property `manageWebhooks`
|
4325
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4326
|
+
attr_accessor :manage_webhooks
|
4327
|
+
|
4328
|
+
# Represents a space permission setting.
|
4329
|
+
# Corresponds to the JSON property `modifySpaceDetails`
|
4330
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4331
|
+
attr_accessor :modify_space_details
|
4332
|
+
|
4333
|
+
# Represents a space permission setting.
|
4334
|
+
# Corresponds to the JSON property `postMessages`
|
4335
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4336
|
+
attr_accessor :post_messages
|
4337
|
+
|
4338
|
+
# Represents a space permission setting.
|
4339
|
+
# Corresponds to the JSON property `replyMessages`
|
4340
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4341
|
+
attr_accessor :reply_messages
|
4342
|
+
|
4343
|
+
# Represents a space permission setting.
|
4344
|
+
# Corresponds to the JSON property `toggleHistory`
|
4345
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4346
|
+
attr_accessor :toggle_history
|
4347
|
+
|
4348
|
+
# Represents a space permission setting.
|
4349
|
+
# Corresponds to the JSON property `useAtMentionAll`
|
4350
|
+
# @return [Google::Apis::ChatV1::PermissionSetting]
|
4351
|
+
attr_accessor :use_at_mention_all
|
4352
|
+
|
4353
|
+
def initialize(**args)
|
4354
|
+
update!(**args)
|
4355
|
+
end
|
4356
|
+
|
4357
|
+
# Update properties of this object
|
4358
|
+
def update!(**args)
|
4359
|
+
@manage_apps = args[:manage_apps] if args.key?(:manage_apps)
|
4360
|
+
@manage_members_and_groups = args[:manage_members_and_groups] if args.key?(:manage_members_and_groups)
|
4361
|
+
@manage_webhooks = args[:manage_webhooks] if args.key?(:manage_webhooks)
|
4362
|
+
@modify_space_details = args[:modify_space_details] if args.key?(:modify_space_details)
|
4363
|
+
@post_messages = args[:post_messages] if args.key?(:post_messages)
|
4364
|
+
@reply_messages = args[:reply_messages] if args.key?(:reply_messages)
|
4365
|
+
@toggle_history = args[:toggle_history] if args.key?(:toggle_history)
|
4366
|
+
@use_at_mention_all = args[:use_at_mention_all] if args.key?(:use_at_mention_all)
|
4367
|
+
end
|
4368
|
+
end
|
4369
|
+
|
4272
4370
|
# Information about a quoted message.
|
4273
4371
|
class QuotedMessageMetadata
|
4274
4372
|
include Google::Apis::Core::Hashable
|
@@ -4706,7 +4804,9 @@ module Google
|
|
4706
4804
|
|
4707
4805
|
# Optional. Whether this space is created in `Import Mode` as part of a data
|
4708
4806
|
# migration into Google Workspace. While spaces are being imported, they aren't
|
4709
|
-
# visible to users until the import is complete.
|
4807
|
+
# visible to users until the import is complete. Creating a space in `Import
|
4808
|
+
# Mode`requires [user authentication](https://developers.google.com/workspace/
|
4809
|
+
# chat/authenticate-authorize-chat-user).
|
4710
4810
|
# Corresponds to the JSON property `importMode`
|
4711
4811
|
# @return [Boolean]
|
4712
4812
|
attr_accessor :import_mode
|
@@ -4732,6 +4832,20 @@ module Google
|
|
4732
4832
|
# @return [String]
|
4733
4833
|
attr_accessor :name
|
4734
4834
|
|
4835
|
+
# [Permission settings](https://support.google.com/chat/answer/13340792) for a
|
4836
|
+
# named space. To set permission settings when creating a space, specify the `
|
4837
|
+
# PredefinedPermissionSettings` field in your request.
|
4838
|
+
# Corresponds to the JSON property `permissionSettings`
|
4839
|
+
# @return [Google::Apis::ChatV1::PermissionSettings]
|
4840
|
+
attr_accessor :permission_settings
|
4841
|
+
|
4842
|
+
# Optional. Input only. Space permission settings. Input for creating a space, a
|
4843
|
+
# collaboration space is created if this field is not set. After you create the
|
4844
|
+
# space, settings are populated in the `PermissionSettings` field.
|
4845
|
+
# Corresponds to the JSON property `predefinedPermissionSettings`
|
4846
|
+
# @return [String]
|
4847
|
+
attr_accessor :predefined_permission_settings
|
4848
|
+
|
4735
4849
|
# Optional. Whether the space is a DM between a Chat app and a single human.
|
4736
4850
|
# Corresponds to the JSON property `singleUserBotDm`
|
4737
4851
|
# @return [Boolean]
|
@@ -4791,6 +4905,8 @@ module Google
|
|
4791
4905
|
@last_active_time = args[:last_active_time] if args.key?(:last_active_time)
|
4792
4906
|
@membership_count = args[:membership_count] if args.key?(:membership_count)
|
4793
4907
|
@name = args[:name] if args.key?(:name)
|
4908
|
+
@permission_settings = args[:permission_settings] if args.key?(:permission_settings)
|
4909
|
+
@predefined_permission_settings = args[:predefined_permission_settings] if args.key?(:predefined_permission_settings)
|
4794
4910
|
@single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm)
|
4795
4911
|
@space_details = args[:space_details] if args.key?(:space_details)
|
4796
4912
|
@space_history_state = args[:space_history_state] if args.key?(:space_history_state)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.107.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241001"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -610,6 +610,18 @@ module Google
|
|
610
610
|
include Google::Apis::Core::JsonObjectSupport
|
611
611
|
end
|
612
612
|
|
613
|
+
class PermissionSetting
|
614
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
|
+
|
616
|
+
include Google::Apis::Core::JsonObjectSupport
|
617
|
+
end
|
618
|
+
|
619
|
+
class PermissionSettings
|
620
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
621
|
+
|
622
|
+
include Google::Apis::Core::JsonObjectSupport
|
623
|
+
end
|
624
|
+
|
613
625
|
class QuotedMessageMetadata
|
614
626
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
627
|
|
@@ -1862,6 +1874,36 @@ module Google
|
|
1862
1874
|
end
|
1863
1875
|
end
|
1864
1876
|
|
1877
|
+
class PermissionSetting
|
1878
|
+
# @private
|
1879
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1880
|
+
property :managers_allowed, as: 'managersAllowed'
|
1881
|
+
property :members_allowed, as: 'membersAllowed'
|
1882
|
+
end
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
class PermissionSettings
|
1886
|
+
# @private
|
1887
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1888
|
+
property :manage_apps, as: 'manageApps', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1889
|
+
|
1890
|
+
property :manage_members_and_groups, as: 'manageMembersAndGroups', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1891
|
+
|
1892
|
+
property :manage_webhooks, as: 'manageWebhooks', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1893
|
+
|
1894
|
+
property :modify_space_details, as: 'modifySpaceDetails', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1895
|
+
|
1896
|
+
property :post_messages, as: 'postMessages', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1897
|
+
|
1898
|
+
property :reply_messages, as: 'replyMessages', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1899
|
+
|
1900
|
+
property :toggle_history, as: 'toggleHistory', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1901
|
+
|
1902
|
+
property :use_at_mention_all, as: 'useAtMentionAll', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
|
1903
|
+
|
1904
|
+
end
|
1905
|
+
end
|
1906
|
+
|
1865
1907
|
class QuotedMessageMetadata
|
1866
1908
|
# @private
|
1867
1909
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1996,6 +2038,9 @@ module Google
|
|
1996
2038
|
property :membership_count, as: 'membershipCount', class: Google::Apis::ChatV1::MembershipCount, decorator: Google::Apis::ChatV1::MembershipCount::Representation
|
1997
2039
|
|
1998
2040
|
property :name, as: 'name'
|
2041
|
+
property :permission_settings, as: 'permissionSettings', class: Google::Apis::ChatV1::PermissionSettings, decorator: Google::Apis::ChatV1::PermissionSettings::Representation
|
2042
|
+
|
2043
|
+
property :predefined_permission_settings, as: 'predefinedPermissionSettings'
|
1999
2044
|
property :single_user_bot_dm, as: 'singleUserBotDm'
|
2000
2045
|
property :space_details, as: 'spaceDetails', class: Google::Apis::ChatV1::SpaceDetails, decorator: Google::Apis::ChatV1::SpaceDetails::Representation
|
2001
2046
|
|
@@ -184,9 +184,15 @@ module Google
|
|
184
184
|
# displayName`. An existing space within the Google Workspace organization might
|
185
185
|
# already use this display name. If you're a member of the [Developer Preview
|
186
186
|
# program](https://developers.google.com/workspace/preview), you can create a
|
187
|
-
# group chat in import mode using `spaceType.GROUP_CHAT`.
|
188
|
-
# authentication](https://developers.google.com/workspace/chat/
|
189
|
-
# authorize-
|
187
|
+
# group chat in import mode using `spaceType.GROUP_CHAT`. Supports the following
|
188
|
+
# types of [authentication](https://developers.google.com/workspace/chat/
|
189
|
+
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
190
|
+
# workspace/chat/authenticate-authorize-chat-app) with [administrator approval](
|
191
|
+
# https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://
|
192
|
+
# developers.google.com/workspace/preview) - [User authentication](https://
|
193
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) When
|
194
|
+
# authenticating as an app, the `space.customer` field must be set in the
|
195
|
+
# request.
|
190
196
|
# @param [Google::Apis::ChatV1::Space] space_object
|
191
197
|
# @param [String] request_id
|
192
198
|
# Optional. A unique identifier for this request. A random UUID is recommended.
|
@@ -225,9 +231,13 @@ module Google
|
|
225
231
|
# Deletes a named space. Always performs a cascading delete, which means that
|
226
232
|
# the space's child resources—like messages posted in the space and memberships
|
227
233
|
# in the space—are also deleted. For an example, see [Delete a space](https://
|
228
|
-
# developers.google.com/workspace/chat/delete-spaces).
|
229
|
-
# authentication](https://developers.google.com/workspace/chat/
|
230
|
-
# authorize
|
234
|
+
# developers.google.com/workspace/chat/delete-spaces). Supports the following
|
235
|
+
# types of [authentication](https://developers.google.com/workspace/chat/
|
236
|
+
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
237
|
+
# workspace/chat/authenticate-authorize-chat-app) with [administrator approval](
|
238
|
+
# https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://
|
239
|
+
# developers.google.com/workspace/preview) - [User authentication](https://
|
240
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
231
241
|
# @param [String] name
|
232
242
|
# Required. Resource name of the space to delete. Format: `spaces/`space``
|
233
243
|
# @param [Boolean] use_admin_access
|
@@ -267,14 +277,16 @@ module Google
|
|
267
277
|
# Returns the existing direct message with the specified user. If no direct
|
268
278
|
# message space is found, returns a `404 NOT_FOUND` error. For an example, see [
|
269
279
|
# Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [
|
270
|
-
#
|
271
|
-
# authorize-chat-
|
272
|
-
# user and the
|
273
|
-
# google.com/workspace/chat/authenticate-authorize-chat-
|
274
|
-
# message space between the specified user and the
|
275
|
-
#
|
276
|
-
#
|
277
|
-
# workspace/chat/authenticate-authorize-chat-app)
|
280
|
+
# app authentication](https://developers.google.com/workspace/chat/authenticate-
|
281
|
+
# authorize-chat-app), returns the direct message space between the specified
|
282
|
+
# user and the calling Chat app. With [user authentication](https://developers.
|
283
|
+
# google.com/workspace/chat/authenticate-authorize-chat-user), returns the
|
284
|
+
# direct message space between the specified user and the authenticated user. //
|
285
|
+
# Supports the following types of [authentication](https://developers.google.com/
|
286
|
+
# workspace/chat/authenticate-authorize): - [App authentication](https://
|
287
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-app) - [User
|
288
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
289
|
+
# authorize-chat-user)
|
278
290
|
# @param [String] name
|
279
291
|
# Required. Resource name of the user to find direct message with. Format: `
|
280
292
|
# users/`user``, where ``user`` is either the `id` for the [person](https://
|
@@ -314,11 +326,11 @@ module Google
|
|
314
326
|
end
|
315
327
|
|
316
328
|
# Returns details about a space. For an example, see [Get details about a space](
|
317
|
-
# https://developers.google.com/workspace/chat/get-spaces).
|
318
|
-
# authentication](https://developers.google.com/workspace/
|
319
|
-
# authorize)
|
320
|
-
# workspace/chat/authenticate-authorize-chat-app)
|
321
|
-
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
329
|
+
# https://developers.google.com/workspace/chat/get-spaces). Supports the
|
330
|
+
# following types of [authentication](https://developers.google.com/workspace/
|
331
|
+
# chat/authenticate-authorize): - [App authentication](https://developers.google.
|
332
|
+
# com/workspace/chat/authenticate-authorize-chat-app) - [User authentication](
|
333
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
322
334
|
# @param [String] name
|
323
335
|
# Required. Resource name of the space, in the form `spaces/`space``. Format: `
|
324
336
|
# spaces/`space``
|
@@ -359,15 +371,15 @@ module Google
|
|
359
371
|
|
360
372
|
# Lists spaces the caller is a member of. Group chats and DMs aren't listed
|
361
373
|
# until the first message is sent. For an example, see [List spaces](https://
|
362
|
-
# developers.google.com/workspace/chat/list-spaces).
|
363
|
-
# https://developers.google.com/workspace/chat/
|
364
|
-
# [
|
365
|
-
# authorize-chat-app)
|
366
|
-
# workspace/chat/authenticate-authorize-chat-user)
|
367
|
-
# caller or authenticated user. Group chats and DMs aren't
|
368
|
-
# first message is sent. To list all named spaces by Google
|
369
|
-
# organization, use the [`spaces.search()`](https://developers.google.
|
370
|
-
# workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace
|
374
|
+
# developers.google.com/workspace/chat/list-spaces). Supports the following
|
375
|
+
# types of [authentication](https://developers.google.com/workspace/chat/
|
376
|
+
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
377
|
+
# workspace/chat/authenticate-authorize-chat-app) - [User authentication](https:/
|
378
|
+
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user) Lists
|
379
|
+
# spaces visible to the caller or authenticated user. Group chats and DMs aren't
|
380
|
+
# listed until the first message is sent. To list all named spaces by Google
|
381
|
+
# Workspace organization, use the [`spaces.search()`](https://developers.google.
|
382
|
+
# com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace
|
371
383
|
# administrator privileges instead.
|
372
384
|
# @param [String] filter
|
373
385
|
# Optional. A query filter. You can filter spaces by the space type ([`
|
@@ -421,8 +433,13 @@ module Google
|
|
421
433
|
# google.com/workspace/chat/update-spaces). If you're updating the `displayName`
|
422
434
|
# field and receive the error message `ALREADY_EXISTS`, try a different display
|
423
435
|
# name.. An existing space within the Google Workspace organization might
|
424
|
-
# already use this display name.
|
425
|
-
# developers.google.com/workspace/chat/authenticate-authorize-
|
436
|
+
# already use this display name. Supports the following types of [authentication]
|
437
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize): - [App
|
438
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
439
|
+
# authorize-chat-app) with [administrator approval](https://support.google.com/a?
|
440
|
+
# p=chat-app-auth) in [Developer Preview](https://developers.google.com/
|
441
|
+
# workspace/preview) - [User authentication](https://developers.google.com/
|
442
|
+
# workspace/chat/authenticate-authorize-chat-user)
|
426
443
|
# @param [String] name
|
427
444
|
# Resource name of the space. Format: `spaces/`space`` Where ``space``
|
428
445
|
# represents the system-assigned ID for the space. You can obtain the space ID
|
@@ -432,43 +449,14 @@ module Google
|
|
432
449
|
# the space ID is `AAAAAAAAA`.
|
433
450
|
# @param [Google::Apis::ChatV1::Space] space_object
|
434
451
|
# @param [String] update_mask
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
# empty display name and the `SPACE` space type. Including the `space_type` mask
|
444
|
-
# and the `SPACE` type in the specified space when updating the display name is
|
445
|
-
# optional if the existing space already has the `SPACE` type. Trying to update
|
446
|
-
# the space type in other ways results in an invalid argument error. `space_type`
|
447
|
-
# is not supported with admin access. - `space_history_state`: Updates [space
|
448
|
-
# history settings](https://support.google.com/chat/answer/7664687) by turning
|
449
|
-
# history on or off for the space. Only supported if history settings are
|
450
|
-
# enabled for the Google Workspace organization. To update the space history
|
451
|
-
# state, you must omit all other field masks in your request. `
|
452
|
-
# space_history_state` is not supported with admin access. - `access_settings.
|
453
|
-
# audience`: Updates the [access setting](https://support.google.com/chat/answer/
|
454
|
-
# 11971020) of who can discover the space, join the space, and preview the
|
455
|
-
# messages in named space where `spaceType` field is `SPACE`. If the existing
|
456
|
-
# space has a target audience, you can remove the audience and restrict space
|
457
|
-
# access by omitting a value for this field mask. To update access settings for
|
458
|
-
# a space, the authenticating user must be a space manager and omit all other
|
459
|
-
# field masks in your request. You can't update this field if the space is in [
|
460
|
-
# import mode](https://developers.google.com/workspace/chat/import-data-overview)
|
461
|
-
# . To learn more, see [Make a space discoverable to specific users](https://
|
462
|
-
# developers.google.com/workspace/chat/space-target-audience). `access_settings.
|
463
|
-
# audience` is not supported with admin access. - Developer Preview: Supports
|
464
|
-
# changing the [permission settings](https://support.google.com/chat/answer/
|
465
|
-
# 13340792) of a space, supported field paths include: `permission_settings.
|
466
|
-
# manage_members_and_groups`, `permission_settings.modify_space_details`, `
|
467
|
-
# permission_settings.toggle_history`, `permission_settings.use_at_mention_all`,
|
468
|
-
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`, `
|
469
|
-
# permission_settings.reply_messages` (Warning: mutually exclusive with all
|
470
|
-
# other non-permission settings field paths). `permission_settings` is not
|
471
|
-
# supported with admin access.
|
452
|
+
# - Supports changing the [permission settings](https://support.google.com/chat/
|
453
|
+
# answer/13340792) of a space, supported field paths include: `
|
454
|
+
# permission_settings.manage_members_and_groups`, `permission_settings.
|
455
|
+
# modify_space_details`, `permission_settings.toggle_history`, `
|
456
|
+
# permission_settings.use_at_mention_all`, `permission_settings.manage_apps`, `
|
457
|
+
# permission_settings.manage_webhooks`, `permission_settings.reply_messages` (
|
458
|
+
# Warning: mutually exclusive with all other non-permission settings field paths)
|
459
|
+
# . `permission_settings` is not supported with admin access.
|
472
460
|
# @param [Boolean] use_admin_access
|
473
461
|
# When `true`, the method runs using the user's Google Workspace administrator
|
474
462
|
# privileges. The calling user must be a Google Workspace administrator with the
|
@@ -680,13 +668,18 @@ module Google
|
|
680
668
|
# membership, if the specified member has their auto-accept policy turned off,
|
681
669
|
# then they're invited, and must accept the space invitation before joining.
|
682
670
|
# Otherwise, creating a membership adds the member directly to the specified
|
683
|
-
# space.
|
684
|
-
# chat/authenticate-authorize
|
685
|
-
#
|
686
|
-
#
|
687
|
-
# https://developers.google.com/workspace/
|
688
|
-
#
|
689
|
-
#
|
671
|
+
# space. Supports the following types of [authentication](https://developers.
|
672
|
+
# google.com/workspace/chat/authenticate-authorize): - [App authentication](
|
673
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
674
|
+
# with [administrator approval](https://support.google.com/a?p=chat-app-auth) in
|
675
|
+
# [Developer Preview](https://developers.google.com/workspace/preview) - [User
|
676
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
677
|
+
# authorize-chat-user) For example usage, see: - [Invite or add a user to a
|
678
|
+
# space](https://developers.google.com/workspace/chat/create-members#create-user-
|
679
|
+
# membership). - [Invite or add a Google Group to a space](https://developers.
|
680
|
+
# google.com/workspace/chat/create-members#create-group-membership). - [Add the
|
681
|
+
# Chat app to a space](https://developers.google.com/workspace/chat/create-
|
682
|
+
# members#create-membership-calling-api).
|
690
683
|
# @param [String] parent
|
691
684
|
# Required. The resource name of the space for which to create the membership.
|
692
685
|
# Format: spaces/`space`
|
@@ -732,8 +725,13 @@ module Google
|
|
732
725
|
|
733
726
|
# Deletes a membership. For an example, see [Remove a user or a Google Chat app
|
734
727
|
# from a space](https://developers.google.com/workspace/chat/delete-members).
|
735
|
-
#
|
736
|
-
# authenticate-authorize-
|
728
|
+
# Supports the following types of [authentication](https://developers.google.com/
|
729
|
+
# workspace/chat/authenticate-authorize): - [App authentication](https://
|
730
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [
|
731
|
+
# administrator approval](https://support.google.com/a?p=chat-app-auth) in [
|
732
|
+
# Developer Preview](https://developers.google.com/workspace/preview) - [User
|
733
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
734
|
+
# authorize-chat-user)
|
737
735
|
# @param [String] name
|
738
736
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
739
737
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
@@ -782,21 +780,19 @@ module Google
|
|
782
780
|
|
783
781
|
# Returns details about a membership. For an example, see [Get details about a
|
784
782
|
# user's or Google Chat app's membership](https://developers.google.com/
|
785
|
-
# workspace/chat/get-members).
|
786
|
-
# google.com/workspace/chat/authenticate-authorize)
|
783
|
+
# workspace/chat/get-members). Supports the following types of [authentication](
|
784
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize): - [App
|
787
785
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
788
|
-
# authorize-chat-app)
|
789
|
-
# workspace/chat/authenticate-authorize-chat-user)
|
786
|
+
# authorize-chat-app) - [User authentication](https://developers.google.com/
|
787
|
+
# workspace/chat/authenticate-authorize-chat-user)
|
790
788
|
# @param [String] name
|
791
789
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
792
790
|
# membership [by using user authentication](https://developers.google.com/
|
793
791
|
# workspace/chat/authenticate-authorize-chat-user), you can optionally use `
|
794
792
|
# spaces/`space`/members/app`. Format: `spaces/`space`/members/`member`` or `
|
795
|
-
# spaces/`space`/members/app`
|
796
|
-
#
|
797
|
-
#
|
798
|
-
# example@gmail.com` where `example@gmail.com` is the email of the Google Chat
|
799
|
-
# user.
|
793
|
+
# spaces/`space`/members/app` You can use the user's email as an alias for ``
|
794
|
+
# member``. For example, `spaces/`space`/members/example@gmail.com` where `
|
795
|
+
# example@gmail.com` is the email of the Google Chat user.
|
800
796
|
# @param [Boolean] use_admin_access
|
801
797
|
# When `true`, the method runs using the user's Google Workspace administrator
|
802
798
|
# privileges. The calling user must be a Google Workspace administrator with the
|
@@ -840,11 +836,11 @@ module Google
|
|
840
836
|
# that the Chat app has access to, but excludes Chat app memberships, including
|
841
837
|
# its own. Listing memberships with [User authentication](https://developers.
|
842
838
|
# google.com/workspace/chat/authenticate-authorize-chat-user) lists memberships
|
843
|
-
# in spaces that the authenticated user has access to.
|
844
|
-
# https://developers.google.com/workspace/chat/
|
845
|
-
# [
|
846
|
-
# authorize-chat-app)
|
847
|
-
# workspace/chat/authenticate-authorize-chat-user)
|
839
|
+
# in spaces that the authenticated user has access to. Supports the following
|
840
|
+
# types of [authentication](https://developers.google.com/workspace/chat/
|
841
|
+
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
842
|
+
# workspace/chat/authenticate-authorize-chat-app) - [User authentication](https:/
|
843
|
+
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
848
844
|
# @param [String] parent
|
849
845
|
# Required. The resource name of the space for which to fetch a membership list.
|
850
846
|
# Format: spaces/`space`
|
@@ -928,9 +924,14 @@ module Google
|
|
928
924
|
end
|
929
925
|
|
930
926
|
# Updates a membership. For an example, see [Update a user's membership in a
|
931
|
-
# space](https://developers.google.com/workspace/chat/update-members).
|
932
|
-
#
|
933
|
-
#
|
927
|
+
# space](https://developers.google.com/workspace/chat/update-members). Supports
|
928
|
+
# the following types of [authentication](https://developers.google.com/
|
929
|
+
# workspace/chat/authenticate-authorize): - [App authentication](https://
|
930
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [
|
931
|
+
# administrator approval](https://support.google.com/a?p=chat-app-auth) in [
|
932
|
+
# Developer Preview](https://developers.google.com/workspace/preview) - [User
|
933
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
934
|
+
# authorize-chat-user)
|
934
935
|
# @param [String] name
|
935
936
|
# Resource name of the membership, assigned by the server. Format: `spaces/`
|
936
937
|
# space`/members/`member``
|
@@ -1051,13 +1052,13 @@ module Google
|
|
1051
1052
|
end
|
1052
1053
|
|
1053
1054
|
# Deletes a message. For an example, see [Delete a message](https://developers.
|
1054
|
-
# google.com/workspace/chat/delete-messages).
|
1055
|
-
# developers.google.com/workspace/chat/authenticate-authorize). Supports [app
|
1055
|
+
# google.com/workspace/chat/delete-messages). Supports the following types of [
|
1056
1056
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
1057
|
-
# authorize
|
1058
|
-
#
|
1059
|
-
#
|
1060
|
-
# app
|
1057
|
+
# authorize): - [App authentication](https://developers.google.com/workspace/
|
1058
|
+
# chat/authenticate-authorize-chat-app) - [User authentication](https://
|
1059
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) When
|
1060
|
+
# using app authentication, requests can only delete messages created by the
|
1061
|
+
# calling Chat app.
|
1061
1062
|
# @param [String] name
|
1062
1063
|
# Required. Resource name of the message. Format: `spaces/`space`/messages/`
|
1063
1064
|
# message`` If you've set a custom ID for your message, you can use the value
|
@@ -1100,12 +1101,13 @@ module Google
|
|
1100
1101
|
end
|
1101
1102
|
|
1102
1103
|
# Returns details about a message. For an example, see [Get details about a
|
1103
|
-
# message](https://developers.google.com/workspace/chat/get-messages).
|
1104
|
+
# message](https://developers.google.com/workspace/chat/get-messages). Supports
|
1105
|
+
# the following types of [authentication](https://developers.google.com/
|
1106
|
+
# workspace/chat/authenticate-authorize): - [App authentication](https://
|
1107
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-app) - [User
|
1104
1108
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
1105
|
-
# authorize)
|
1106
|
-
#
|
1107
|
-
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
1108
|
-
# Note: Might return a message from a blocked member or space.
|
1109
|
+
# authorize-chat-user) Note: Might return a message from a blocked member or
|
1110
|
+
# space.
|
1109
1111
|
# @param [String] name
|
1110
1112
|
# Required. Resource name of the message. Format: `spaces/`space`/messages/`
|
1111
1113
|
# message`` If you've set a custom ID for your message, you can use the value
|
@@ -1222,12 +1224,12 @@ module Google
|
|
1222
1224
|
# methods. The `patch` method uses a `patch` request while the `update` method
|
1223
1225
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
1224
1226
|
# see [Update a message](https://developers.google.com/workspace/chat/update-
|
1225
|
-
# messages).
|
1226
|
-
# chat/authenticate-authorize)
|
1227
|
-
# google.com/workspace/chat/authenticate-authorize-chat-app)
|
1228
|
-
# authentication](https://developers.google.com/workspace/chat/
|
1229
|
-
# authorize-chat-user)
|
1230
|
-
# messages created by the calling Chat app.
|
1227
|
+
# messages). Supports the following types of [authentication](https://developers.
|
1228
|
+
# google.com/workspace/chat/authenticate-authorize): - [App authentication](
|
1229
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) -
|
1230
|
+
# [User authentication](https://developers.google.com/workspace/chat/
|
1231
|
+
# authenticate-authorize-chat-user) When using app authentication, requests can
|
1232
|
+
# only update messages created by the calling Chat app.
|
1231
1233
|
# @param [String] name
|
1232
1234
|
# Resource name of the message. Format: `spaces/`space`/messages/`message``
|
1233
1235
|
# Where ``space`` is the ID of the space where the message is posted and ``
|
@@ -1286,12 +1288,12 @@ module Google
|
|
1286
1288
|
# methods. The `patch` method uses a `patch` request while the `update` method
|
1287
1289
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
1288
1290
|
# see [Update a message](https://developers.google.com/workspace/chat/update-
|
1289
|
-
# messages).
|
1290
|
-
# chat/authenticate-authorize)
|
1291
|
-
# google.com/workspace/chat/authenticate-authorize-chat-app)
|
1292
|
-
# authentication](https://developers.google.com/workspace/chat/
|
1293
|
-
# authorize-chat-user)
|
1294
|
-
# messages created by the calling Chat app.
|
1291
|
+
# messages). Supports the following types of [authentication](https://developers.
|
1292
|
+
# google.com/workspace/chat/authenticate-authorize): - [App authentication](
|
1293
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) -
|
1294
|
+
# [User authentication](https://developers.google.com/workspace/chat/
|
1295
|
+
# authenticate-authorize-chat-user) When using app authentication, requests can
|
1296
|
+
# only update messages created by the calling Chat app.
|
1295
1297
|
# @param [String] name
|
1296
1298
|
# Resource name of the message. Format: `spaces/`space`/messages/`message``
|
1297
1299
|
# Where ``space`` is the ID of the space where the message is posted and ``
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chat_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.107.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.107.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|