google-apis-chat_v1 0.107.0 → 0.108.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: 5cfb98466265afa85a7b9792db1d61b0e4a68d3b70aecaa0cd1b76568b590049
4
- data.tar.gz: 3a9b29370c6c03e5cb8d46473585ea50b6d82134dc257a21ad820c326e55c70e
3
+ metadata.gz: b3b10a9560d99c1c4f2e55cf71b2b46c25c4f660e03a17189c45cbc60812f20f
4
+ data.tar.gz: b199d92704e5e04ea1173a057c8e5b874d41051a368ad77ccdece5a2306f5c2a
5
5
  SHA512:
6
- metadata.gz: 9d2eccfce5c94e5069a0ce27fb31bcc068ea6d38efdddad396d21f69e1e277d41eeb006f7ce3021e228a7698ac7c623d4c77a2c0c567817aeb6674414c21ef0c
7
- data.tar.gz: 88347c249f09a21af1c56404ac1eb54dbdcfbc20f9a9b13662ff3f12c1c7efe38b7094d6cd07244249ff2aed801a7ca02ebbf6b7fceb7c22d477382d920b8e7c
6
+ metadata.gz: bca48dbf825a068b3e40fee6863867f608cea46c67f28279841f15088a821754c3140466449637e1bd021914a3c6f85e4d83f964cd4a43bc48d9d55b9a5c430b
7
+ data.tar.gz: fd9a4b78f7842545660e1bf408976734e11c0f11929a4eb69c38208b6c2828f87db5d12c99be2b541d00266393097b8427cf5b2e34cd2f8bb4b138ab1f1201da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.108.0 (2024-10-13)
4
+
5
+ * Regenerated from discovery document revision 20241008
6
+
3
7
  ### v0.107.0 (2024-10-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20241001
@@ -3573,7 +3573,9 @@ module Google
3573
3573
  # @return [String]
3574
3574
  attr_accessor :next_page_token
3575
3575
 
3576
- # Results are returned in chronological order (oldest event first).
3576
+ # Results are returned in chronological order (oldest event first). Note: The `
3577
+ # permissionSettings` field is not returned in the Space object for list
3578
+ # requests.
3577
3579
  # Corresponds to the JSON property `spaceEvents`
3578
3580
  # @return [Array<Google::Apis::ChatV1::SpaceEvent>]
3579
3581
  attr_accessor :space_events
@@ -3599,7 +3601,8 @@ module Google
3599
3601
  # @return [String]
3600
3602
  attr_accessor :next_page_token
3601
3603
 
3602
- # List of spaces in the requested (or first) page.
3604
+ # List of spaces in the requested (or first) page. Note: The `permissionSettings`
3605
+ # field is not returned in the Space object for list requests.
3603
3606
  # Corresponds to the JSON property `spaces`
3604
3607
  # @return [Array<Google::Apis::ChatV1::Space>]
3605
3608
  attr_accessor :spaces
@@ -4304,9 +4307,10 @@ module Google
4304
4307
  end
4305
4308
  end
4306
4309
 
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
+ # [Permission settings](https://support.google.com/chat/answer/13340792) that
4311
+ # you can specify when updating an existing named space. To set permission
4312
+ # settings when creating a space, specify the `PredefinedPermissionSettings`
4313
+ # field in your request.
4310
4314
  class PermissionSettings
4311
4315
  include Google::Apis::Core::Hashable
4312
4316
 
@@ -4832,16 +4836,18 @@ module Google
4832
4836
  # @return [String]
4833
4837
  attr_accessor :name
4834
4838
 
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.
4839
+ # [Permission settings](https://support.google.com/chat/answer/13340792) that
4840
+ # you can specify when updating an existing named space. To set permission
4841
+ # settings when creating a space, specify the `PredefinedPermissionSettings`
4842
+ # field in your request.
4838
4843
  # Corresponds to the JSON property `permissionSettings`
4839
4844
  # @return [Google::Apis::ChatV1::PermissionSettings]
4840
4845
  attr_accessor :permission_settings
4841
4846
 
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.
4847
+ # Optional. Input only. Predefined space permission settings, input only when
4848
+ # creating a space. If the field is not set, a collaboration space is created.
4849
+ # After you create the space, settings are populated in the `PermissionSettings`
4850
+ # field.
4845
4851
  # Corresponds to the JSON property `predefinedPermissionSettings`
4846
4852
  # @return [String]
4847
4853
  attr_accessor :predefined_permission_settings
@@ -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.107.0"
19
+ GEM_VERSION = "0.108.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 = "20241001"
25
+ REVISION = "20241008"
26
26
  end
27
27
  end
28
28
  end
@@ -141,8 +141,9 @@ module Google
141
141
  end
142
142
 
143
143
  # Completes the [import process](https://developers.google.com/workspace/chat/
144
- # import-data) for the specified space and makes it visible to users. Requires
145
- # app authentication and domain-wide delegation. For more information, see [
144
+ # import-data) for the specified space and makes it visible to users. Requires [
145
+ # app authentication](https://developers.google.com/workspace/chat/authenticate-
146
+ # authorize-chat-app) and domain-wide delegation. For more information, see [
146
147
  # Authorize Google Chat apps to import data](https://developers.google.com/
147
148
  # workspace/chat/authorize-import).
148
149
  # @param [String] name
@@ -237,7 +238,9 @@ module Google
237
238
  # workspace/chat/authenticate-authorize-chat-app) with [administrator approval](
238
239
  # https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://
239
240
  # developers.google.com/workspace/preview) - [User authentication](https://
240
- # developers.google.com/workspace/chat/authenticate-authorize-chat-user)
241
+ # developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can
242
+ # authenticate and authorize this method with administrator privileges by
243
+ # setting the `use_admin_access` field in the request.
241
244
  # @param [String] name
242
245
  # Required. Resource name of the space to delete. Format: `spaces/`space``
243
246
  # @param [Boolean] use_admin_access
@@ -331,6 +334,8 @@ module Google
331
334
  # chat/authenticate-authorize): - [App authentication](https://developers.google.
332
335
  # com/workspace/chat/authenticate-authorize-chat-app) - [User authentication](
333
336
  # https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
337
+ # You can authenticate and authorize this method with administrator privileges
338
+ # by setting the `use_admin_access` field in the request.
334
339
  # @param [String] name
335
340
  # Required. Resource name of the space, in the form `spaces/`space``. Format: `
336
341
  # spaces/`space``
@@ -375,12 +380,10 @@ module Google
375
380
  # types of [authentication](https://developers.google.com/workspace/chat/
376
381
  # authenticate-authorize): - [App authentication](https://developers.google.com/
377
382
  # 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
383
- # administrator privileges instead.
383
+ # /developers.google.com/workspace/chat/authenticate-authorize-chat-user) To
384
+ # list all named spaces by Google Workspace organization, use the [`spaces.
385
+ # search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/
386
+ # spaces/search) method using Workspace administrator privileges instead.
384
387
  # @param [String] filter
385
388
  # Optional. A query filter. You can filter spaces by the space type ([`
386
389
  # space_type`](https://developers.google.com/workspace/chat/api/reference/rest/
@@ -439,7 +442,9 @@ module Google
439
442
  # authorize-chat-app) with [administrator approval](https://support.google.com/a?
440
443
  # p=chat-app-auth) in [Developer Preview](https://developers.google.com/
441
444
  # workspace/preview) - [User authentication](https://developers.google.com/
442
- # workspace/chat/authenticate-authorize-chat-user)
445
+ # workspace/chat/authenticate-authorize-chat-user) You can authenticate and
446
+ # authorize this method with administrator privileges by setting the `
447
+ # use_admin_access` field in the request.
443
448
  # @param [String] name
444
449
  # Resource name of the space. Format: `spaces/`space`` Where ``space``
445
450
  # represents the system-assigned ID for the space. You can obtain the space ID
@@ -449,14 +454,45 @@ module Google
449
454
  # the space ID is `AAAAAAAAA`.
450
455
  # @param [Google::Apis::ChatV1::Space] space_object
451
456
  # @param [String] update_mask
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.
457
+ # Required. The updated field paths, comma separated if there are multiple. You
458
+ # can update the following fields for a space: `space_details`: Updates the
459
+ # space's description. Supports up to 150 characters. `display_name`: Only
460
+ # supports updating the display name for spaces where `spaceType` field is `
461
+ # SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different
462
+ # value. An existing space within the Google Workspace organization might
463
+ # already use this display name. `space_type`: Only supports changing a `
464
+ # GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `
465
+ # space_type` in the update mask and ensure that the specified space has a non-
466
+ # empty display name and the `SPACE` space type. Including the `space_type` mask
467
+ # and the `SPACE` type in the specified space when updating the display name is
468
+ # optional if the existing space already has the `SPACE` type. Trying to update
469
+ # the space type in other ways results in an invalid argument error. `space_type`
470
+ # is not supported with `useAdminAccess`. `space_history_state`: Updates [space
471
+ # history settings](https://support.google.com/chat/answer/7664687) by turning
472
+ # history on or off for the space. Only supported if history settings are
473
+ # enabled for the Google Workspace organization. To update the space history
474
+ # state, you must omit all other field masks in your request. `
475
+ # space_history_state` is not supported with `useAdminAccess`. `access_settings.
476
+ # audience`: Updates the [access setting](https://support.google.com/chat/answer/
477
+ # 11971020) of who can discover the space, join the space, and preview the
478
+ # messages in named space where `spaceType` field is `SPACE`. If the existing
479
+ # space has a target audience, you can remove the audience and restrict space
480
+ # access by omitting a value for this field mask. To update access settings for
481
+ # a space, the authenticating user must be a space manager and omit all other
482
+ # field masks in your request. You can't update this field if the space is in [
483
+ # import mode](https://developers.google.com/workspace/chat/import-data-overview)
484
+ # . To learn more, see [Make a space discoverable to specific users](https://
485
+ # developers.google.com/workspace/chat/space-target-audience). `access_settings.
486
+ # audience` is not supported with `useAdminAccess`. `permission_settings`:
487
+ # Supports changing the [permission settings](https://support.google.com/chat/
488
+ # answer/13340792) of a space. When updating permission settings, you can only
489
+ # specify `permissionSettings` field masks; you cannot update other field masks
490
+ # at the same time. `permissionSettings` is not supported with `useAdminAccess`.
491
+ # The supported field masks include: - `permission_settings.
492
+ # manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `
493
+ # permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `
494
+ # permission_settings.manageApps` - `permission_settings.manageWebhooks` - `
495
+ # permission_settings.replyMessages`
460
496
  # @param [Boolean] use_admin_access
461
497
  # When `true`, the method runs using the user's Google Workspace administrator
462
498
  # privileges. The calling user must be a Google Workspace administrator with the
@@ -674,12 +710,14 @@ module Google
674
710
  # with [administrator approval](https://support.google.com/a?p=chat-app-auth) in
675
711
  # [Developer Preview](https://developers.google.com/workspace/preview) - [User
676
712
  # 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).
713
+ # authorize-chat-user) You can authenticate and authorize this method with
714
+ # administrator privileges by setting the `use_admin_access` field in the
715
+ # request. For example usage, see: - [Invite or add a user to a space](https://
716
+ # developers.google.com/workspace/chat/create-members#create-user-membership). -
717
+ # [Invite or add a Google Group to a space](https://developers.google.com/
718
+ # workspace/chat/create-members#create-group-membership). - [Add the Chat app to
719
+ # a space](https://developers.google.com/workspace/chat/create-members#create-
720
+ # membership-calling-api).
683
721
  # @param [String] parent
684
722
  # Required. The resource name of the space for which to create the membership.
685
723
  # Format: spaces/`space`
@@ -731,7 +769,9 @@ module Google
731
769
  # administrator approval](https://support.google.com/a?p=chat-app-auth) in [
732
770
  # Developer Preview](https://developers.google.com/workspace/preview) - [User
733
771
  # authentication](https://developers.google.com/workspace/chat/authenticate-
734
- # authorize-chat-user)
772
+ # authorize-chat-user) You can authenticate and authorize this method with
773
+ # administrator privileges by setting the `use_admin_access` field in the
774
+ # request.
735
775
  # @param [String] name
736
776
  # Required. Resource name of the membership to delete. Chat apps can delete
737
777
  # human users' or their own memberships. Chat apps can't delete other apps'
@@ -784,7 +824,9 @@ module Google
784
824
  # https://developers.google.com/workspace/chat/authenticate-authorize): - [App
785
825
  # authentication](https://developers.google.com/workspace/chat/authenticate-
786
826
  # authorize-chat-app) - [User authentication](https://developers.google.com/
787
- # workspace/chat/authenticate-authorize-chat-user)
827
+ # workspace/chat/authenticate-authorize-chat-user) You can authenticate and
828
+ # authorize this method with administrator privileges by setting the `
829
+ # use_admin_access` field in the request.
788
830
  # @param [String] name
789
831
  # Required. Resource name of the membership to retrieve. To get the app's own
790
832
  # membership [by using user authentication](https://developers.google.com/
@@ -840,7 +882,9 @@ module Google
840
882
  # types of [authentication](https://developers.google.com/workspace/chat/
841
883
  # authenticate-authorize): - [App authentication](https://developers.google.com/
842
884
  # workspace/chat/authenticate-authorize-chat-app) - [User authentication](https:/
843
- # /developers.google.com/workspace/chat/authenticate-authorize-chat-user)
885
+ # /developers.google.com/workspace/chat/authenticate-authorize-chat-user) You
886
+ # can authenticate and authorize this method with administrator privileges by
887
+ # setting the `use_admin_access` field in the request.
844
888
  # @param [String] parent
845
889
  # Required. The resource name of the space for which to fetch a membership list.
846
890
  # Format: spaces/`space`
@@ -931,7 +975,9 @@ module Google
931
975
  # administrator approval](https://support.google.com/a?p=chat-app-auth) in [
932
976
  # Developer Preview](https://developers.google.com/workspace/preview) - [User
933
977
  # authentication](https://developers.google.com/workspace/chat/authenticate-
934
- # authorize-chat-user)
978
+ # authorize-chat-user) You can authenticate and authorize this method with
979
+ # administrator privileges by setting the `use_admin_access` field in the
980
+ # request.
935
981
  # @param [String] name
936
982
  # Resource name of the membership, assigned by the server. Format: `spaces/`
937
983
  # space`/members/`member``
@@ -979,19 +1025,22 @@ module Google
979
1025
 
980
1026
  # Creates a message in a Google Chat space. For an example, see [Send a message](
981
1027
  # https://developers.google.com/workspace/chat/create-messages). The `create()`
982
- # method requires either user or app authentication. Chat attributes the message
983
- # sender differently depending on the type of authentication that you use in
984
- # your request. The following image shows how Chat attributes a message when you
985
- # use app authentication. Chat displays the Chat app as the message sender. The
986
- # content of the message can contain text (`text`), cards (`cardsV2`), and
987
- # accessory widgets (`accessoryWidgets`). ![Message sent with app authentication]
988
- # (https://developers.google.com/workspace/chat/images/message-app-auth.svg) The
989
- # following image shows how Chat attributes a message when you use user
990
- # authentication. Chat displays the user as the message sender and attributes
991
- # the Chat app to the message by displaying its name. The content of message can
992
- # only contain text (`text`). ![Message sent with user authentication](https://
993
- # developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum
994
- # message size, including the message contents, is 32,000 bytes.
1028
+ # method requires either [user authentication](https://developers.google.com/
1029
+ # workspace/chat/authenticate-authorize-chat-user) or [app authentication](https:
1030
+ # //developers.google.com/workspace/chat/authorize-import). Chat attributes the
1031
+ # message sender differently depending on the type of authentication that you
1032
+ # use in your request. The following image shows how Chat attributes a message
1033
+ # when you use app authentication. Chat displays the Chat app as the message
1034
+ # sender. The content of the message can contain text (`text`), cards (`cardsV2`)
1035
+ # , and accessory widgets (`accessoryWidgets`). ![Message sent with app
1036
+ # authentication](https://developers.google.com/workspace/chat/images/message-
1037
+ # app-auth.svg) The following image shows how Chat attributes a message when you
1038
+ # use user authentication. Chat displays the user as the message sender and
1039
+ # attributes the Chat app to the message by displaying its name. The content of
1040
+ # message can only contain text (`text`). ![Message sent with user
1041
+ # authentication](https://developers.google.com/workspace/chat/images/message-
1042
+ # user-auth.svg) The maximum message size, including the message contents, is 32,
1043
+ # 000 bytes.
995
1044
  # @param [String] parent
996
1045
  # Required. The resource name of the space in which to create a message. Format:
997
1046
  # `spaces/`space``
@@ -1527,11 +1576,13 @@ module Google
1527
1576
  # SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the
1528
1577
  # resource that changed. For example, if you request an event about a new
1529
1578
  # message but the message was later updated, the server returns the updated `
1530
- # Message` resource in the event payload. Requires [user authentication](https://
1531
- # developers.google.com/workspace/chat/authenticate-authorize-chat-user). To get
1532
- # an event, the authenticated user must be a member of the space. For an example,
1533
- # see [Get details about an event from a Google Chat space](https://developers.
1534
- # google.com/workspace/chat/get-space-event).
1579
+ # Message` resource in the event payload. Note: The `permissionSettings` field
1580
+ # is not returned in the Space object of the Space event data for this request.
1581
+ # Requires [user authentication](https://developers.google.com/workspace/chat/
1582
+ # authenticate-authorize-chat-user). To get an event, the authenticated user
1583
+ # must be a member of the space. For an example, see [Get details about an event
1584
+ # from a Google Chat space](https://developers.google.com/workspace/chat/get-
1585
+ # space-event).
1535
1586
  # @param [String] name
1536
1587
  # Required. The resource name of the space event. Format: `spaces/`space`/
1537
1588
  # spaceEvents/`spaceEvent``
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.107.0
4
+ version: 0.108.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-10-06 00:00:00.000000000 Z
11
+ date: 2024-10-13 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.107.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.108.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Chat API V1