google-apis-chat_v1 0.153.0 → 0.155.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: 88360559d1e18497b9058420db18bb318518fdf9352fa103b9076f2f1168ab6f
4
- data.tar.gz: 6c260dfac4349ba184062ed8a30994a82005e5a37ae49a0bacf06779877b48da
3
+ metadata.gz: 6842d654f4800b8f520b3c3610e28d1c52dc442ea7e3dc82109823d9871068cf
4
+ data.tar.gz: 77fbf116ef1fe9e016edc98fe0c1a0307037d19b4240fb0e495f320b964f3b58
5
5
  SHA512:
6
- metadata.gz: fa51ce96aad9a3268024921ae37b29e8f3ba57cd9d59371dc33b012ec8d84270275a11ad44ab64ad64634bde91a9df50945eb0d1c911fe1d4b21ea79e9e1fa8d
7
- data.tar.gz: 190e17801565bada2ec425f4722a155d20fc31255877dde41da6b22c4f8e85927071868c1c2af5267b823041b541a515142f475b1a49508bd1961ec3eb544bf1
6
+ metadata.gz: 0bd45ec119942d4613176372be61c9a4d78a8c837dd232b64b4c70869e572b85ff446a06a02e0ffe47f0769a620fd0ab4249a3f4f76f530b981d634f294f3c42
7
+ data.tar.gz: 9ef527cce36524ffb0c3e9d6ddb9e00daf601a844fac5b7290293e5c97a9290a1558297b6c7c01c7c676cbe6d4dafb8c75aa024a9c9301a89d6d86fefe5efedf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.155.0 (2026-09-20)
4
+
5
+ * Regenerated from discovery document revision 20260913
6
+
7
+ ### v0.154.0 (2026-09-06)
8
+
9
+ * Regenerated from discovery document revision 20260828
10
+
3
11
  ### v0.153.0 (2026-08-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20260815
@@ -55,6 +55,11 @@ module Google
55
55
  # @return [Google::Apis::ChatV1::AccessPermissionSetting]
56
56
  attr_accessor :join_space_setting
57
57
 
58
+ # An access permission setting.
59
+ # Corresponds to the JSON property `viewSpaceMembershipSetting`
60
+ # @return [Google::Apis::ChatV1::AccessPermissionSetting]
61
+ attr_accessor :view_space_membership_setting
62
+
58
63
  def initialize(**args)
59
64
  update!(**args)
60
65
  end
@@ -63,6 +68,7 @@ module Google
63
68
  def update!(**args)
64
69
  @discover_space_setting = args[:discover_space_setting] if args.key?(:discover_space_setting)
65
70
  @join_space_setting = args[:join_space_setting] if args.key?(:join_space_setting)
71
+ @view_space_membership_setting = args[:view_space_membership_setting] if args.key?(:view_space_membership_setting)
66
72
  end
67
73
  end
68
74
 
@@ -1406,10 +1412,11 @@ module Google
1406
1412
  # @return [String]
1407
1413
  attr_accessor :type
1408
1414
 
1409
- # A user in Google Chat. When returned as an output from a request, if your Chat
1410
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
1411
- # authenticate-authorize-chat-user), the output for a `User` resource only
1412
- # populates the user's `name` and `type`.
1415
+ # If your Chat app [authenticates as a user](https://developers.google.com/
1416
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
1417
+ # resource (such as in the Messages and Memberships APIs) only populates the `
1418
+ # name` and `type` fields for both internal and external users, unless they are
1419
+ # members of the space or have prior affinity with the calling user.
1413
1420
  # Corresponds to the JSON property `user`
1414
1421
  # @return [Google::Apis::ChatV1::User]
1415
1422
  attr_accessor :user
@@ -4904,6 +4911,32 @@ module Google
4904
4911
  end
4905
4912
  end
4906
4913
 
4914
+ # Response message for listing message pins.
4915
+ class ListMessagePinsResponse
4916
+ include Google::Apis::Core::Hashable
4917
+
4918
+ # The pinned messages from the specified space.
4919
+ # Corresponds to the JSON property `messagePins`
4920
+ # @return [Array<Google::Apis::ChatV1::MessagePin>]
4921
+ attr_accessor :message_pins
4922
+
4923
+ # You can send a token as `pageToken` to retrieve the next page of results. If
4924
+ # empty, there are no subsequent pages.
4925
+ # Corresponds to the JSON property `nextPageToken`
4926
+ # @return [String]
4927
+ attr_accessor :next_page_token
4928
+
4929
+ def initialize(**args)
4930
+ update!(**args)
4931
+ end
4932
+
4933
+ # Update properties of this object
4934
+ def update!(**args)
4935
+ @message_pins = args[:message_pins] if args.key?(:message_pins)
4936
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4937
+ end
4938
+ end
4939
+
4907
4940
  # Response message for listing messages.
4908
4941
  class ListMessagesResponse
4909
4942
  include Google::Apis::Core::Hashable
@@ -5231,10 +5264,11 @@ module Google
5231
5264
  # @return [Google::Apis::ChatV1::Group]
5232
5265
  attr_accessor :group_member
5233
5266
 
5234
- # A user in Google Chat. When returned as an output from a request, if your Chat
5235
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
5236
- # authenticate-authorize-chat-user), the output for a `User` resource only
5237
- # populates the user's `name` and `type`.
5267
+ # If your Chat app [authenticates as a user](https://developers.google.com/
5268
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
5269
+ # resource (such as in the Messages and Memberships APIs) only populates the `
5270
+ # name` and `type` fields for both internal and external users, unless they are
5271
+ # members of the space or have prior affinity with the calling user.
5238
5272
  # Corresponds to the JSON property `member`
5239
5273
  # @return [Google::Apis::ChatV1::User]
5240
5274
  attr_accessor :member
@@ -5580,10 +5614,11 @@ module Google
5580
5614
  # @return [String]
5581
5615
  attr_accessor :name
5582
5616
 
5583
- # A user in Google Chat. When returned as an output from a request, if your Chat
5584
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
5585
- # authenticate-authorize-chat-user), the output for a `User` resource only
5586
- # populates the user's `name` and `type`.
5617
+ # If your Chat app [authenticates as a user](https://developers.google.com/
5618
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
5619
+ # resource (such as in the Messages and Memberships APIs) only populates the `
5620
+ # name` and `type` fields for both internal and external users, unless they are
5621
+ # members of the space or have prior affinity with the calling user.
5587
5622
  # Corresponds to the JSON property `privateMessageViewer`
5588
5623
  # @return [Google::Apis::ChatV1::User]
5589
5624
  attr_accessor :private_message_viewer
@@ -5596,10 +5631,11 @@ module Google
5596
5631
  # @return [Google::Apis::ChatV1::QuotedMessageMetadata]
5597
5632
  attr_accessor :quoted_message_metadata
5598
5633
 
5599
- # A user in Google Chat. When returned as an output from a request, if your Chat
5600
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
5601
- # authenticate-authorize-chat-user), the output for a `User` resource only
5602
- # populates the user's `name` and `type`.
5634
+ # If your Chat app [authenticates as a user](https://developers.google.com/
5635
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
5636
+ # resource (such as in the Messages and Memberships APIs) only populates the `
5637
+ # name` and `type` fields for both internal and external users, unless they are
5638
+ # members of the space or have prior affinity with the calling user.
5603
5639
  # Corresponds to the JSON property `sender`
5604
5640
  # @return [Google::Apis::ChatV1::User]
5605
5641
  attr_accessor :sender
@@ -5789,6 +5825,37 @@ module Google
5789
5825
  end
5790
5826
  end
5791
5827
 
5828
+ # A pin on a Chat message. For more information see [Pin a message](https://
5829
+ # support.google.com/chat?p=chat-board-hc).
5830
+ class MessagePin
5831
+ include Google::Apis::Core::Hashable
5832
+
5833
+ # Required. Immutable. The resource name of the message that is pinned. Format: `
5834
+ # spaces/`space`/messages/`message``
5835
+ # Corresponds to the JSON property `message`
5836
+ # @return [String]
5837
+ attr_accessor :message
5838
+
5839
+ # Identifier. The resource name of the message pin. Format: `spaces/`space`/
5840
+ # messagePins/`message_pin`` The resource ID component matches the resource ID
5841
+ # component of the message. For example, a message with `spaces/AAA/messages/bbb.
5842
+ # ccc` corresponds to the message pin with the resource name `spaces/AAA/
5843
+ # messagePins/bbb.ccc`.
5844
+ # Corresponds to the JSON property `name`
5845
+ # @return [String]
5846
+ attr_accessor :name
5847
+
5848
+ def initialize(**args)
5849
+ update!(**args)
5850
+ end
5851
+
5852
+ # Update properties of this object
5853
+ def update!(**args)
5854
+ @message = args[:message] if args.key?(:message)
5855
+ @name = args[:name] if args.key?(:name)
5856
+ end
5857
+ end
5858
+
5792
5859
  # Event payload for an updated message. Event type: `google.workspace.chat.
5793
5860
  # message.v1.updated`
5794
5861
  class MessageUpdatedEventData
@@ -5976,6 +6043,11 @@ module Google
5976
6043
  # @return [Google::Apis::ChatV1::PermissionSetting]
5977
6044
  attr_accessor :use_at_mention_all
5978
6045
 
6046
+ # Represents a space permission setting.
6047
+ # Corresponds to the JSON property `viewSpaceMembership`
6048
+ # @return [Google::Apis::ChatV1::PermissionSetting]
6049
+ attr_accessor :view_space_membership
6050
+
5979
6051
  def initialize(**args)
5980
6052
  update!(**args)
5981
6053
  end
@@ -5990,6 +6062,7 @@ module Google
5990
6062
  @reply_messages = args[:reply_messages] if args.key?(:reply_messages)
5991
6063
  @toggle_history = args[:toggle_history] if args.key?(:toggle_history)
5992
6064
  @use_at_mention_all = args[:use_at_mention_all] if args.key?(:use_at_mention_all)
6065
+ @view_space_membership = args[:view_space_membership] if args.key?(:view_space_membership)
5993
6066
  end
5994
6067
  end
5995
6068
 
@@ -6193,10 +6266,11 @@ module Google
6193
6266
  # @return [String]
6194
6267
  attr_accessor :name
6195
6268
 
6196
- # A user in Google Chat. When returned as an output from a request, if your Chat
6197
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
6198
- # authenticate-authorize-chat-user), the output for a `User` resource only
6199
- # populates the user's `name` and `type`.
6269
+ # If your Chat app [authenticates as a user](https://developers.google.com/
6270
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
6271
+ # resource (such as in the Messages and Memberships APIs) only populates the `
6272
+ # name` and `type` fields for both internal and external users, unless they are
6273
+ # members of the space or have prior affinity with the calling user.
6200
6274
  # Corresponds to the JSON property `user`
6201
6275
  # @return [Google::Apis::ChatV1::User]
6202
6276
  attr_accessor :user
@@ -6572,7 +6646,8 @@ module Google
6572
6646
  include Google::Apis::Core::Hashable
6573
6647
 
6574
6648
  # A token that can be used to retrieve the next page. If this field is empty,
6575
- # there are no subsequent pages.
6649
+ # there are no subsequent pages. Only populated when `useAdminAccess` is set to `
6650
+ # true`.
6576
6651
  # Corresponds to the JSON property `nextPageToken`
6577
6652
  # @return [String]
6578
6653
  attr_accessor :next_page_token
@@ -6590,7 +6665,8 @@ module Google
6590
6665
  attr_accessor :spaces
6591
6666
 
6592
6667
  # The total number of spaces that match the query, across all pages. If the
6593
- # result is over 10,000 spaces, this value is an estimate.
6668
+ # result is over 10,000 spaces, this value is an estimate. Only populated when `
6669
+ # useAdminAccess` is set to `true`.
6594
6670
  # Corresponds to the JSON property `totalSize`
6595
6671
  # @return [Fixnum]
6596
6672
  attr_accessor :total_size
@@ -6713,10 +6789,19 @@ module Google
6713
6789
  # @return [Array<Google::Apis::ChatV1::Membership>]
6714
6790
  attr_accessor :memberships
6715
6791
 
6716
- # Optional. A unique identifier for this request. A random UUID is recommended.
6717
- # Specifying an existing request ID returns the space created with that ID
6718
- # instead of creating a new space. Specifying an existing request ID from the
6719
- # same Chat app with a different authenticated user returns an error.
6792
+ # Optional. A unique ID for this request. A random UUID is recommended.
6793
+ # Specifying a request ID makes the request idempotent, which ensures that
6794
+ # multiple identical requests with the same request ID result in only a single
6795
+ # space being created. Subsequent requests with the same request ID return the
6796
+ # existing space and do not update the space, even if the requested details
6797
+ # differ from the current state. To use this field effectively: - Ensure that
6798
+ # subsequent requests are identical and use the same authentication credentials
6799
+ # as the original request. - If a space was already created with the provided
6800
+ # request ID, the request returns that space. Note that the returned space might
6801
+ # not be fully populated; the API echoes the space in your request with the
6802
+ # system-assigned resource name populated. To retrieve the latest metadata for
6803
+ # the space, call `GetSpace`. - Reusing an existing request ID with a different
6804
+ # authenticated user results in an error.
6720
6805
  # Corresponds to the JSON property `requestId`
6721
6806
  # @return [String]
6722
6807
  attr_accessor :request_id
@@ -6763,10 +6848,11 @@ module Google
6763
6848
  class SlashCommandMetadata
6764
6849
  include Google::Apis::Core::Hashable
6765
6850
 
6766
- # A user in Google Chat. When returned as an output from a request, if your Chat
6767
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
6768
- # authenticate-authorize-chat-user), the output for a `User` resource only
6769
- # populates the user's `name` and `type`.
6851
+ # If your Chat app [authenticates as a user](https://developers.google.com/
6852
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
6853
+ # resource (such as in the Messages and Memberships APIs) only populates the `
6854
+ # name` and `type` fields for both internal and external users, unless they are
6855
+ # members of the space or have prior affinity with the calling user.
6770
6856
  # Corresponds to the JSON property `bot`
6771
6857
  # @return [Google::Apis::ChatV1::User]
6772
6858
  attr_accessor :bot
@@ -7636,14 +7722,23 @@ module Google
7636
7722
  end
7637
7723
  end
7638
7724
 
7639
- # A user in Google Chat. When returned as an output from a request, if your Chat
7640
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
7641
- # authenticate-authorize-chat-user), the output for a `User` resource only
7642
- # populates the user's `name` and `type`.
7725
+ # If your Chat app [authenticates as a user](https://developers.google.com/
7726
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
7727
+ # resource (such as in the Messages and Memberships APIs) only populates the `
7728
+ # name` and `type` fields for both internal and external users, unless they are
7729
+ # members of the space or have prior affinity with the calling user.
7643
7730
  class User
7644
7731
  include Google::Apis::Core::Hashable
7645
7732
 
7646
- # Output only. The user's display name.
7733
+ # Output only. The user's display name. Populated for both app authentication
7734
+ # and user authentication. This field is always populated for requests made with
7735
+ # [app authentication](https://developers.google.com/workspace/chat/authenticate-
7736
+ # authorize-chat-app). When calling the Messages and Memberships APIs with [user
7737
+ # authentication](https://developers.google.com/workspace/chat/authenticate-
7738
+ # authorize-chat-user), this field is populated for both internal and external
7739
+ # users for the `sender` of a message, users within `annotations` (such as user
7740
+ # mentions), and within `Membership` resources, provided the user is a member of
7741
+ # the space or has prior affinity with the calling user.
7647
7742
  # Corresponds to the JSON property `displayName`
7648
7743
  # @return [String]
7649
7744
  attr_accessor :display_name
@@ -7653,7 +7748,9 @@ module Google
7653
7748
  # @return [String]
7654
7749
  attr_accessor :domain_id
7655
7750
 
7656
- # Output only. When `true`, the user is deleted or their profile is not visible.
7751
+ # Output only. When `true`, the user is deleted or their profile is not visible,
7752
+ # such as when a user is mentioned in a space without being a member and without
7753
+ # prior affinity with the calling user.
7657
7754
  # Corresponds to the JSON property `isAnonymous`
7658
7755
  # @return [Boolean]
7659
7756
  attr_accessor :is_anonymous
@@ -7703,10 +7800,11 @@ module Google
7703
7800
  # @return [String]
7704
7801
  attr_accessor :type
7705
7802
 
7706
- # A user in Google Chat. When returned as an output from a request, if your Chat
7707
- # app [authenticates as a user](https://developers.google.com/workspace/chat/
7708
- # authenticate-authorize-chat-user), the output for a `User` resource only
7709
- # populates the user's `name` and `type`.
7803
+ # If your Chat app [authenticates as a user](https://developers.google.com/
7804
+ # workspace/chat/authenticate-authorize-chat-user), the output for a `User`
7805
+ # resource (such as in the Messages and Memberships APIs) only populates the `
7806
+ # name` and `type` fields for both internal and external users, unless they are
7807
+ # members of the space or have prior affinity with the calling user.
7710
7808
  # Corresponds to the JSON property `user`
7711
7809
  # @return [Google::Apis::ChatV1::User]
7712
7810
  attr_accessor :user
@@ -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.153.0"
19
+ GEM_VERSION = "0.155.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260815"
25
+ REVISION = "20260913"
26
26
  end
27
27
  end
28
28
  end
@@ -658,6 +658,12 @@ module Google
658
658
  include Google::Apis::Core::JsonObjectSupport
659
659
  end
660
660
 
661
+ class ListMessagePinsResponse
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
661
667
  class ListMessagesResponse
662
668
  class Representation < Google::Apis::Core::JsonRepresentation; end
663
669
 
@@ -814,6 +820,12 @@ module Google
814
820
  include Google::Apis::Core::JsonObjectSupport
815
821
  end
816
822
 
823
+ class MessagePin
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
817
829
  class MessageUpdatedEventData
818
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
831
 
@@ -1141,6 +1153,8 @@ module Google
1141
1153
 
1142
1154
  property :join_space_setting, as: 'joinSpaceSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
1143
1155
 
1156
+ property :view_space_membership_setting, as: 'viewSpaceMembershipSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
1157
+
1144
1158
  end
1145
1159
  end
1146
1160
 
@@ -2280,6 +2294,15 @@ module Google
2280
2294
  end
2281
2295
  end
2282
2296
 
2297
+ class ListMessagePinsResponse
2298
+ # @private
2299
+ class Representation < Google::Apis::Core::JsonRepresentation
2300
+ collection :message_pins, as: 'messagePins', class: Google::Apis::ChatV1::MessagePin, decorator: Google::Apis::ChatV1::MessagePin::Representation
2301
+
2302
+ property :next_page_token, as: 'nextPageToken'
2303
+ end
2304
+ end
2305
+
2283
2306
  class ListMessagesResponse
2284
2307
  # @private
2285
2308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2541,6 +2564,14 @@ module Google
2541
2564
  end
2542
2565
  end
2543
2566
 
2567
+ class MessagePin
2568
+ # @private
2569
+ class Representation < Google::Apis::Core::JsonRepresentation
2570
+ property :message, as: 'message'
2571
+ property :name, as: 'name'
2572
+ end
2573
+ end
2574
+
2544
2575
  class MessageUpdatedEventData
2545
2576
  # @private
2546
2577
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2609,6 +2640,8 @@ module Google
2609
2640
 
2610
2641
  property :use_at_mention_all, as: 'useAtMentionAll', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
2611
2642
 
2643
+ property :view_space_membership, as: 'viewSpaceMembership', class: Google::Apis::ChatV1::PermissionSetting, decorator: Google::Apis::ChatV1::PermissionSetting::Representation
2644
+
2612
2645
  end
2613
2646
  end
2614
2647
 
@@ -393,10 +393,19 @@ module Google
393
393
  # organization might already use this display name.
394
394
  # @param [Google::Apis::ChatV1::Space] space_object
395
395
  # @param [String] request_id
396
- # Optional. A unique identifier for this request. A random UUID is recommended.
397
- # Specifying an existing request ID returns the space created with that ID
398
- # instead of creating a new space. Specifying an existing request ID from the
399
- # same Chat app with a different authenticated user returns an error.
396
+ # Optional. A unique ID for this request. A random UUID is recommended.
397
+ # Specifying a request ID makes the request idempotent, which ensures that
398
+ # multiple identical requests with the same request ID result in only a single
399
+ # space being created. Subsequent requests with the same request ID return the
400
+ # existing space and do not update the space, even if the requested details
401
+ # differ from the current state. To use this field effectively: - Ensure that
402
+ # subsequent requests are identical and use the same authentication credentials
403
+ # as the original request. - If a space was already created with the provided
404
+ # request ID, the request returns that space. Note that the returned space might
405
+ # not be fully populated; the API echoes the space in your request with the
406
+ # system-assigned resource name populated. To retrieve the latest metadata for
407
+ # the space, call `GetSpace`. - Reusing an existing request ID with a different
408
+ # authenticated user results in an error.
400
409
  # @param [String] fields
401
410
  # Selector specifying which fields to include in a partial response.
402
411
  # @param [String] quota_user
@@ -797,15 +806,16 @@ module Google
797
806
  # audience). `access_settings.access_permission_settings` is not supported with `
798
807
  # useAdminAccess`. The supported field masks include: - `access_settings.
799
808
  # access_permission_settings.discoverSpaceSetting` - `access_settings.
800
- # access_permission_settings.joinSpaceSetting` `permission_settings`: Supports
801
- # changing the [permission settings](https://support.google.com/chat/answer/
802
- # 13340792) of a space. When updating permission settings, you can only specify `
803
- # permissionSettings` field masks; you cannot update other field masks at the
804
- # same time. The supported field masks include: - `permission_settings.
809
+ # access_permission_settings.joinSpaceSetting` - `access_settings.
810
+ # access_permission_settings.viewSpaceMembershipSetting` `permission_settings`:
811
+ # Supports changing the [permission settings](https://support.google.com/chat/
812
+ # answer/13340792) of a space. When updating permission settings, you can only
813
+ # specify `permissionSettings` field masks; you cannot update other field masks
814
+ # at the same time. The supported field masks include: - `permission_settings.
805
815
  # manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `
806
816
  # permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `
807
817
  # permission_settings.manageApps` - `permission_settings.manageWebhooks` - `
808
- # permission_settings.replyMessages`
818
+ # permission_settings.replyMessages` - `permission_settings.viewSpaceMembership`
809
819
  # @param [Boolean] use_admin_access
810
820
  # Optional. When `true`, the method runs using the user's Google Workspace
811
821
  # administrator privileges. The calling user must be a Google Workspace
@@ -879,7 +889,9 @@ module Google
879
889
  # @param [Fixnum] page_size
880
890
  # The maximum number of spaces to return. The service may return fewer than this
881
891
  # value. If unspecified, at most 100 spaces are returned. The maximum value is
882
- # 1000. If you use a value more than 1000, it's automatically changed to 1000.
892
+ # 1000 when `useAdminAccess` is set to `true`. Otherwise, the maximum value is
893
+ # 100. If you use a value more than the maximum value, it's automatically
894
+ # changed to the maximum value.
883
895
  # @param [String] page_token
884
896
  # A token, received from the previous search spaces call. Provide this parameter
885
897
  # to retrieve the subsequent page. When paginating, all other parameters
@@ -931,7 +943,9 @@ module Google
931
943
  # AND space_type = "SPACE" (display_name:"Hello" OR display_name:"Fun") AND
932
944
  # space_type = "SPACE" (external_user_allowed = "true" AND space_type = "SPACE")
933
945
  # // Returns an empty response. (external_user_allowed = "true" AND display_name:
934
- # "Hello" AND space_type = "SPACE") ```
946
+ # "Hello" AND space_type = "SPACE") ``` The maximum query length is 1,000
947
+ # characters. Invalid queries are rejected by the server with an `
948
+ # INVALID_ARGUMENT` error.
935
949
  # @param [Boolean] use_admin_access
936
950
  # When `true`, the method runs using the user's Google Workspace administrator
937
951
  # privileges. The calling user must be a Google Workspace administrator with the
@@ -1406,6 +1420,132 @@ module Google
1406
1420
  execute_or_queue_command(command, &block)
1407
1421
  end
1408
1422
 
1423
+ # Creates a message pin. Requires [user authentication](https://developers.
1424
+ # google.com/workspace/chat/authenticate-authorize-chat-user) with one of the
1425
+ # following [authorization scopes](https://developers.google.com/workspace/chat/
1426
+ # authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
1427
+ # chat.spaces.pins` - `https://www.googleapis.com/auth/chat.spaces`
1428
+ # @param [String] parent
1429
+ # Required. The parent space in which to create the message pin. Format: spaces/`
1430
+ # space`
1431
+ # @param [Google::Apis::ChatV1::MessagePin] message_pin_object
1432
+ # @param [String] fields
1433
+ # Selector specifying which fields to include in a partial response.
1434
+ # @param [String] quota_user
1435
+ # Available to use for quota purposes for server-side applications. Can be any
1436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1437
+ # @param [Google::Apis::RequestOptions] options
1438
+ # Request-specific options
1439
+ #
1440
+ # @yield [result, err] Result & error if block supplied
1441
+ # @yieldparam result [Google::Apis::ChatV1::MessagePin] parsed result object
1442
+ # @yieldparam err [StandardError] error object if request failed
1443
+ #
1444
+ # @return [Google::Apis::ChatV1::MessagePin]
1445
+ #
1446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1449
+ def create_space_message_pin(parent, message_pin_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1450
+ command = make_simple_command(:post, 'v1/{+parent}/messagePins', options)
1451
+ command.request_representation = Google::Apis::ChatV1::MessagePin::Representation
1452
+ command.request_object = message_pin_object
1453
+ command.response_representation = Google::Apis::ChatV1::MessagePin::Representation
1454
+ command.response_class = Google::Apis::ChatV1::MessagePin
1455
+ command.params['parent'] = parent unless parent.nil?
1456
+ command.query['fields'] = fields unless fields.nil?
1457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1458
+ execute_or_queue_command(command, &block)
1459
+ end
1460
+
1461
+ # Deletes a message pin. Requires [user authentication](https://developers.
1462
+ # google.com/workspace/chat/authenticate-authorize-chat-user) with one of the
1463
+ # following [authorization scopes](https://developers.google.com/workspace/chat/
1464
+ # authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
1465
+ # chat.spaces.pins` - `https://www.googleapis.com/auth/chat.spaces`
1466
+ # @param [String] name
1467
+ # Required. The resource name of the message pin to remove. Format: spaces/`
1468
+ # space`/messagePins/`message_pin`
1469
+ # @param [String] fields
1470
+ # Selector specifying which fields to include in a partial response.
1471
+ # @param [String] quota_user
1472
+ # Available to use for quota purposes for server-side applications. Can be any
1473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1474
+ # @param [Google::Apis::RequestOptions] options
1475
+ # Request-specific options
1476
+ #
1477
+ # @yield [result, err] Result & error if block supplied
1478
+ # @yieldparam result [Google::Apis::ChatV1::Empty] parsed result object
1479
+ # @yieldparam err [StandardError] error object if request failed
1480
+ #
1481
+ # @return [Google::Apis::ChatV1::Empty]
1482
+ #
1483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1486
+ def delete_space_message_pin(name, fields: nil, quota_user: nil, options: nil, &block)
1487
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1488
+ command.response_representation = Google::Apis::ChatV1::Empty::Representation
1489
+ command.response_class = Google::Apis::ChatV1::Empty
1490
+ command.params['name'] = name unless name.nil?
1491
+ command.query['fields'] = fields unless fields.nil?
1492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1493
+ execute_or_queue_command(command, &block)
1494
+ end
1495
+
1496
+ # Lists message pins in a space. Users can pin important messages in spaces for
1497
+ # easy access. For more information, see [Pin or unpin a conversation in Google
1498
+ # Chat](https://support.google.com/chat/answer/15622437). Requires [user
1499
+ # authentication](https://developers.google.com/workspace/chat/authenticate-
1500
+ # authorize-chat-user) with one of the following [authorization scopes](https://
1501
+ # developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
1502
+ # `https://www.googleapis.com/auth/chat.spaces.pins.readonly` - `https://www.
1503
+ # googleapis.com/auth/chat.spaces.pins` - `https://www.googleapis.com/auth/chat.
1504
+ # spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces`
1505
+ # @param [String] parent
1506
+ # Required. The parent space which owns the collection of pinned items Format: `
1507
+ # spaces/`space``
1508
+ # @param [Fixnum] page_size
1509
+ # Optional. The maximum number of message pins returned. The service might
1510
+ # return fewer messages than this value. The maximum value is 100. If you use a
1511
+ # value more than 100, it's automatically changed to 100. If unspecified, at
1512
+ # most 100 message pins will be returned. Negative values return an `
1513
+ # INVALID_ARGUMENT` error.
1514
+ # @param [String] page_token
1515
+ # Optional. A page token received from a previous list message pins call.
1516
+ # Provide this parameter to retrieve the subsequent page. When paginating, all
1517
+ # other parameters provided should match the call that provided the page token.
1518
+ # Passing different values to the other parameters might lead to unexpected
1519
+ # results.
1520
+ # @param [String] fields
1521
+ # Selector specifying which fields to include in a partial response.
1522
+ # @param [String] quota_user
1523
+ # Available to use for quota purposes for server-side applications. Can be any
1524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1525
+ # @param [Google::Apis::RequestOptions] options
1526
+ # Request-specific options
1527
+ #
1528
+ # @yield [result, err] Result & error if block supplied
1529
+ # @yieldparam result [Google::Apis::ChatV1::ListMessagePinsResponse] parsed result object
1530
+ # @yieldparam err [StandardError] error object if request failed
1531
+ #
1532
+ # @return [Google::Apis::ChatV1::ListMessagePinsResponse]
1533
+ #
1534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1537
+ def list_space_message_pins(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1538
+ command = make_simple_command(:get, 'v1/{+parent}/messagePins', options)
1539
+ command.response_representation = Google::Apis::ChatV1::ListMessagePinsResponse::Representation
1540
+ command.response_class = Google::Apis::ChatV1::ListMessagePinsResponse
1541
+ command.params['parent'] = parent unless parent.nil?
1542
+ command.query['pageSize'] = page_size unless page_size.nil?
1543
+ command.query['pageToken'] = page_token unless page_token.nil?
1544
+ command.query['fields'] = fields unless fields.nil?
1545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1546
+ execute_or_queue_command(command, &block)
1547
+ end
1548
+
1409
1549
  # Creates a message in a Google Chat space. For an example, see [Send a message](
1410
1550
  # https://developers.google.com/workspace/chat/create-messages). Supports the
1411
1551
  # following types of [authentication](https://developers.google.com/workspace/
@@ -1455,8 +1595,19 @@ module Google
1455
1595
  # is ignored. For interactions within a thread, the reply is created in the same
1456
1596
  # thread. Otherwise, the reply is created as a new thread.
1457
1597
  # @param [String] request_id
1458
- # Optional. A unique request ID for this message. Specifying an existing request
1459
- # ID returns the message created with that ID instead of creating a new message.
1598
+ # Optional. A unique ID for this request. A random UUID is recommended.
1599
+ # Specifying a request ID makes the request idempotent, which ensures that
1600
+ # multiple identical requests with the same request ID result in only a single
1601
+ # message being created. Subsequent requests with the same request ID return the
1602
+ # existing message and do not update the message, even if the requested details
1603
+ # differ from the current state. To use this field effectively: - Ensure that
1604
+ # subsequent requests are identical and use the same authentication credentials
1605
+ # as the original request. - If a message was already created with the provided
1606
+ # request ID, the request returns that message. Note that the returned message
1607
+ # might not be fully populated; the API echoes the message in your request with
1608
+ # the system-assigned resource names populated. To retrieve the latest metadata
1609
+ # for the message, call `GetMessage`. - Reusing an existing request ID with a
1610
+ # different authenticated user results in an error.
1460
1611
  # @param [String] thread_key
1461
1612
  # Optional. Deprecated: Use thread.thread_key instead. ID for the thread.
1462
1613
  # Supports up to 4000 characters. To start or add to a thread, create a message
@@ -123,6 +123,12 @@ module Google
123
123
  # Create new conversations and spaces in Google Chat
124
124
  AUTH_CHAT_SPACES_CREATE = 'https://www.googleapis.com/auth/chat.spaces.create'
125
125
 
126
+ # See, add, and remove pins in your Google Chat spaces
127
+ AUTH_CHAT_SPACES_PINS = 'https://www.googleapis.com/auth/chat.spaces.pins'
128
+
129
+ # See pins in your Google Chat spaces
130
+ AUTH_CHAT_SPACES_PINS_READONLY = 'https://www.googleapis.com/auth/chat.spaces.pins.readonly'
131
+
126
132
  # View chat and spaces in Google Chat
127
133
  AUTH_CHAT_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.spaces.readonly'
128
134
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.153.0
4
+ version: 0.155.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -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.153.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.155.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: