google-apis-chat_v1 0.87.0 → 0.89.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module ChatV1
24
24
 
25
+ # One or more interactive widgets that appear at the bottom of a message. For
26
+ # details, see [Add interactive widgets at the bottom of a message](https://
27
+ # developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
28
+ class AccessoryWidget
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # A list of buttons layed out horizontally. For an example in Google Chat apps,
32
+ # see [Button list](https://developers.google.com/chat/ui/widgets/button-list). [
33
+ # Google Workspace Add-ons and Chat apps](https://developers.google.com/
34
+ # workspace/extend):
35
+ # Corresponds to the JSON property `buttonList`
36
+ # @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
37
+ attr_accessor :button_list
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @button_list = args[:button_list] if args.key?(:button_list)
46
+ end
47
+ end
48
+
25
49
  # List of string parameters to supply when the action method is invoked. For
26
50
  # example, consider three snooze buttons: snooze now, snooze one day, snooze
27
51
  # next week. You might use `action method = snooze()`, passing the snooze type
@@ -817,10 +841,13 @@ module Google
817
841
 
818
842
  # A Google Chat app interaction event. To learn about interaction events, see [
819
843
  # Receive and respond to interactions with your Google Chat app](https://
820
- # developers.google.com/chat/api/guides/message-formats). To learn about event
821
- # types and for example event payloads, see [Types of Google Chat app
822
- # interaction events](https://developers.google.com/chat/api/guides/message-
823
- # formats/events).
844
+ # developers.google.com/workspace/chat/api/guides/message-formats). To learn
845
+ # about event types and for example event payloads, see [Types of Google Chat
846
+ # app interaction events](https://developers.google.com/workspace/chat/events).
847
+ # In addition to receiving events from user interactions, Chat apps can receive
848
+ # events about changes to spaces, such as when a new member is added to a space.
849
+ # To learn about space events, see [Work with events from Google Chat](https://
850
+ # developers.google.com/workspace/chat/events-overview).
824
851
  class DeprecatedEvent
825
852
  include Google::Apis::Core::Hashable
826
853
 
@@ -894,8 +921,7 @@ module Google
894
921
  attr_accessor :token
895
922
 
896
923
  # The type of interaction event. For details, see [Types of Google Chat app
897
- # interaction events](https://developers.google.com/chat/api/guides/message-
898
- # formats/events).
924
+ # interaction events](https://developers.google.com/workspace/chat/events).
899
925
  # Corresponds to the JSON property `type`
900
926
  # @return [String]
901
927
  attr_accessor :type
@@ -2096,6 +2122,16 @@ module Google
2096
2122
  # @return [String]
2097
2123
  attr_accessor :known_icon
2098
2124
 
2125
+ # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2126
+ # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2127
+ # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2128
+ # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write the
2129
+ # following: ``` ` "name": "check_box", "fill": true, "weight": 300, "grade": -
2130
+ # 25 ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
2131
+ # Corresponds to the JSON property `materialIcon`
2132
+ # @return [Google::Apis::ChatV1::GoogleAppsCardV1MaterialIcon]
2133
+ attr_accessor :material_icon
2134
+
2099
2135
  def initialize(**args)
2100
2136
  update!(**args)
2101
2137
  end
@@ -2106,6 +2142,7 @@ module Google
2106
2142
  @icon_url = args[:icon_url] if args.key?(:icon_url)
2107
2143
  @image_type = args[:image_type] if args.key?(:image_type)
2108
2144
  @known_icon = args[:known_icon] if args.key?(:known_icon)
2145
+ @material_icon = args[:material_icon] if args.key?(:material_icon)
2109
2146
  end
2110
2147
  end
2111
2148
 
@@ -2219,6 +2256,61 @@ module Google
2219
2256
  end
2220
2257
  end
2221
2258
 
2259
+ # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2260
+ # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2261
+ # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2262
+ # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write the
2263
+ # following: ``` ` "name": "check_box", "fill": true, "weight": 300, "grade": -
2264
+ # 25 ` ``` [Google Chat apps](https://developers.google.com/workspace/chat):
2265
+ class GoogleAppsCardV1MaterialIcon
2266
+ include Google::Apis::Core::Hashable
2267
+
2268
+ # Whether the icon renders as filled. Default value is false. To preview
2269
+ # different icon settings, go to [Google Font Icons](https://fonts.google.com/
2270
+ # icons) and adjust the settings under **Customize**.
2271
+ # Corresponds to the JSON property `fill`
2272
+ # @return [Boolean]
2273
+ attr_accessor :fill
2274
+ alias_method :fill?, :fill
2275
+
2276
+ # Weight and grade affect a symbol’s thickness. Adjustments to grade are more
2277
+ # granular than adjustments to weight and have a small impact on the size of the
2278
+ # symbol. Choose from `-25, 0, 200`. If absent, default value is 0. If any other
2279
+ # value is specified, the default value is used. To preview different icon
2280
+ # settings, go to [Google Font Icons](https://fonts.google.com/icons) and adjust
2281
+ # the settings under **Customize**.
2282
+ # Corresponds to the JSON property `grade`
2283
+ # @return [Fixnum]
2284
+ attr_accessor :grade
2285
+
2286
+ # The icon name defined in the [Google Material Icon](https://fonts.google.com/
2287
+ # icons), for example, `check_box`. Any invalid names are abandoned and replaced
2288
+ # with empty string and results in the icon failing to render.
2289
+ # Corresponds to the JSON property `name`
2290
+ # @return [String]
2291
+ attr_accessor :name
2292
+
2293
+ # The stroke weight of the icon. Choose from `100, 200, 300, 400, 500, 600, 700`.
2294
+ # If absent, default value is 400. If any other value is specified, the default
2295
+ # value is used. To preview different icon settings, go to [Google Font Icons](
2296
+ # https://fonts.google.com/icons) and adjust the settings under **Customize**.
2297
+ # Corresponds to the JSON property `weight`
2298
+ # @return [Fixnum]
2299
+ attr_accessor :weight
2300
+
2301
+ def initialize(**args)
2302
+ update!(**args)
2303
+ end
2304
+
2305
+ # Update properties of this object
2306
+ def update!(**args)
2307
+ @fill = args[:fill] if args.key?(:fill)
2308
+ @grade = args[:grade] if args.key?(:grade)
2309
+ @name = args[:name] if args.key?(:name)
2310
+ @weight = args[:weight] if args.key?(:weight)
2311
+ end
2312
+ end
2313
+
2222
2314
  # Represents how to respond when users click an interactive element on a card,
2223
2315
  # such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
2224
2316
  # google.com/workspace/extend):
@@ -2448,7 +2540,7 @@ module Google
2448
2540
  attr_accessor :multi_select_max_selected_items
2449
2541
 
2450
2542
  # For multiselect menus, the number of text characters that a user inputs before
2451
- # the Chat app queries autocomplete and displays suggested items in the menu. If
2543
+ # the app queries autocomplete and displays suggested items in the menu. If
2452
2544
  # unspecified, defaults to 0 characters for static data sources and 3 characters
2453
2545
  # for external data sources.
2454
2546
  # Corresponds to the JSON property `multiSelectMinQueryLength`
@@ -3352,6 +3444,32 @@ module Google
3352
3444
  end
3353
3445
  end
3354
3446
 
3447
+ # Response message for listing space events.
3448
+ class ListSpaceEventsResponse
3449
+ include Google::Apis::Core::Hashable
3450
+
3451
+ # Continuation token used to fetch more events. If this field is omitted, there
3452
+ # are no subsequent pages.
3453
+ # Corresponds to the JSON property `nextPageToken`
3454
+ # @return [String]
3455
+ attr_accessor :next_page_token
3456
+
3457
+ # Results are returned in chronological order (oldest event first).
3458
+ # Corresponds to the JSON property `spaceEvents`
3459
+ # @return [Array<Google::Apis::ChatV1::SpaceEvent>]
3460
+ attr_accessor :space_events
3461
+
3462
+ def initialize(**args)
3463
+ update!(**args)
3464
+ end
3465
+
3466
+ # Update properties of this object
3467
+ def update!(**args)
3468
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3469
+ @space_events = args[:space_events] if args.key?(:space_events)
3470
+ end
3471
+ end
3472
+
3355
3473
  #
3356
3474
  class ListSpacesResponse
3357
3475
  include Google::Apis::Core::Hashable
@@ -3484,10 +3602,144 @@ module Google
3484
3602
  end
3485
3603
  end
3486
3604
 
3605
+ # Payload for batch new membership events where the `EventType` field is `google.
3606
+ # workspace.chat.membership.v1.batchCreated`.
3607
+ class MembershipBatchCreatedEventData
3608
+ include Google::Apis::Core::Hashable
3609
+
3610
+ # A list of created memberships.
3611
+ # Corresponds to the JSON property `memberships`
3612
+ # @return [Array<Google::Apis::ChatV1::MembershipCreatedEventData>]
3613
+ attr_accessor :memberships
3614
+
3615
+ def initialize(**args)
3616
+ update!(**args)
3617
+ end
3618
+
3619
+ # Update properties of this object
3620
+ def update!(**args)
3621
+ @memberships = args[:memberships] if args.key?(:memberships)
3622
+ end
3623
+ end
3624
+
3625
+ # Payload for batch deleted membership events where the `EventType` field is `
3626
+ # google.workspace.chat.membership.v1.batchDeleted`.
3627
+ class MembershipBatchDeletedEventData
3628
+ include Google::Apis::Core::Hashable
3629
+
3630
+ # A list of deleted memberships.
3631
+ # Corresponds to the JSON property `memberships`
3632
+ # @return [Array<Google::Apis::ChatV1::MembershipDeletedEventData>]
3633
+ attr_accessor :memberships
3634
+
3635
+ def initialize(**args)
3636
+ update!(**args)
3637
+ end
3638
+
3639
+ # Update properties of this object
3640
+ def update!(**args)
3641
+ @memberships = args[:memberships] if args.key?(:memberships)
3642
+ end
3643
+ end
3644
+
3645
+ # Payload for batch updated membership events where the `EventType` field is `
3646
+ # google.workspace.chat.membership.v1.batchUpdated`.
3647
+ class MembershipBatchUpdatedEventData
3648
+ include Google::Apis::Core::Hashable
3649
+
3650
+ # A list of updated memberships.
3651
+ # Corresponds to the JSON property `memberships`
3652
+ # @return [Array<Google::Apis::ChatV1::MembershipUpdatedEventData>]
3653
+ attr_accessor :memberships
3654
+
3655
+ def initialize(**args)
3656
+ update!(**args)
3657
+ end
3658
+
3659
+ # Update properties of this object
3660
+ def update!(**args)
3661
+ @memberships = args[:memberships] if args.key?(:memberships)
3662
+ end
3663
+ end
3664
+
3665
+ # Payload for new membership events where the `EventType` field is `google.
3666
+ # workspace.chat.membership.v1.created`.
3667
+ class MembershipCreatedEventData
3668
+ include Google::Apis::Core::Hashable
3669
+
3670
+ # Represents a membership relation in Google Chat, such as whether a user or
3671
+ # Chat app is invited to, part of, or absent from a space.
3672
+ # Corresponds to the JSON property `membership`
3673
+ # @return [Google::Apis::ChatV1::Membership]
3674
+ attr_accessor :membership
3675
+
3676
+ def initialize(**args)
3677
+ update!(**args)
3678
+ end
3679
+
3680
+ # Update properties of this object
3681
+ def update!(**args)
3682
+ @membership = args[:membership] if args.key?(:membership)
3683
+ end
3684
+ end
3685
+
3686
+ # Payload for deleted membership events where the `EventType` field is `google.
3687
+ # workspace.chat.membership.v1.deleted`.
3688
+ class MembershipDeletedEventData
3689
+ include Google::Apis::Core::Hashable
3690
+
3691
+ # Represents a membership relation in Google Chat, such as whether a user or
3692
+ # Chat app is invited to, part of, or absent from a space.
3693
+ # Corresponds to the JSON property `membership`
3694
+ # @return [Google::Apis::ChatV1::Membership]
3695
+ attr_accessor :membership
3696
+
3697
+ def initialize(**args)
3698
+ update!(**args)
3699
+ end
3700
+
3701
+ # Update properties of this object
3702
+ def update!(**args)
3703
+ @membership = args[:membership] if args.key?(:membership)
3704
+ end
3705
+ end
3706
+
3707
+ # Payload for updated membership events where the `EventType` field is `google.
3708
+ # workspace.chat.membership.v1.updated`.
3709
+ class MembershipUpdatedEventData
3710
+ include Google::Apis::Core::Hashable
3711
+
3712
+ # Represents a membership relation in Google Chat, such as whether a user or
3713
+ # Chat app is invited to, part of, or absent from a space.
3714
+ # Corresponds to the JSON property `membership`
3715
+ # @return [Google::Apis::ChatV1::Membership]
3716
+ attr_accessor :membership
3717
+
3718
+ def initialize(**args)
3719
+ update!(**args)
3720
+ end
3721
+
3722
+ # Update properties of this object
3723
+ def update!(**args)
3724
+ @membership = args[:membership] if args.key?(:membership)
3725
+ end
3726
+ end
3727
+
3487
3728
  # A message in a Google Chat space.
3488
3729
  class Message
3489
3730
  include Google::Apis::Core::Hashable
3490
3731
 
3732
+ # One or more interactive widgets that appear at the bottom of a message. You
3733
+ # can add accessory widgets to messages that contain text, cards, or both text
3734
+ # and cards. Not supported for messages that contain dialogs. For details, see [
3735
+ # Add interactive widgets at the bottom of a message](https://developers.google.
3736
+ # com/workspace/chat/create-messages#add-accessory-widgets). Creating a message
3737
+ # with accessory widgets requires [app authentication] (https://developers.
3738
+ # google.com/chat/api/guides/auth/service-accounts).
3739
+ # Corresponds to the JSON property `accessoryWidgets`
3740
+ # @return [Array<Google::Apis::ChatV1::AccessoryWidget>]
3741
+ attr_accessor :accessory_widgets
3742
+
3491
3743
  # Parameters that a Chat app can use to configure how its response is posted.
3492
3744
  # Corresponds to the JSON property `actionResponse`
3493
3745
  # @return [Google::Apis::ChatV1::ActionResponse]
@@ -3684,6 +3936,7 @@ module Google
3684
3936
 
3685
3937
  # Update properties of this object
3686
3938
  def update!(**args)
3939
+ @accessory_widgets = args[:accessory_widgets] if args.key?(:accessory_widgets)
3687
3940
  @action_response = args[:action_response] if args.key?(:action_response)
3688
3941
  @annotations = args[:annotations] if args.key?(:annotations)
3689
3942
  @argument_text = args[:argument_text] if args.key?(:argument_text)
@@ -3712,6 +3965,126 @@ module Google
3712
3965
  end
3713
3966
  end
3714
3967
 
3968
+ # Payload for batch new message events where the `EventType` field is `google.
3969
+ # workspace.chat.message.v1.batchCreated`.
3970
+ class MessageBatchCreatedEventData
3971
+ include Google::Apis::Core::Hashable
3972
+
3973
+ # A list of created messages.
3974
+ # Corresponds to the JSON property `messages`
3975
+ # @return [Array<Google::Apis::ChatV1::MessageCreatedEventData>]
3976
+ attr_accessor :messages
3977
+
3978
+ def initialize(**args)
3979
+ update!(**args)
3980
+ end
3981
+
3982
+ # Update properties of this object
3983
+ def update!(**args)
3984
+ @messages = args[:messages] if args.key?(:messages)
3985
+ end
3986
+ end
3987
+
3988
+ # Payload for batch deleted message events where the `EventType` field is `
3989
+ # google.workspace.chat.message.v1.batchDeleted`.
3990
+ class MessageBatchDeletedEventData
3991
+ include Google::Apis::Core::Hashable
3992
+
3993
+ # A list of deleted messages.
3994
+ # Corresponds to the JSON property `messages`
3995
+ # @return [Array<Google::Apis::ChatV1::MessageDeletedEventData>]
3996
+ attr_accessor :messages
3997
+
3998
+ def initialize(**args)
3999
+ update!(**args)
4000
+ end
4001
+
4002
+ # Update properties of this object
4003
+ def update!(**args)
4004
+ @messages = args[:messages] if args.key?(:messages)
4005
+ end
4006
+ end
4007
+
4008
+ # Payload for batch updated message events where the `EventType` field is `
4009
+ # google.workspace.chat.message.v1.batchUpdated`.
4010
+ class MessageBatchUpdatedEventData
4011
+ include Google::Apis::Core::Hashable
4012
+
4013
+ # A list of updated messages.
4014
+ # Corresponds to the JSON property `messages`
4015
+ # @return [Array<Google::Apis::ChatV1::MessageUpdatedEventData>]
4016
+ attr_accessor :messages
4017
+
4018
+ def initialize(**args)
4019
+ update!(**args)
4020
+ end
4021
+
4022
+ # Update properties of this object
4023
+ def update!(**args)
4024
+ @messages = args[:messages] if args.key?(:messages)
4025
+ end
4026
+ end
4027
+
4028
+ # Payload for new message events where the `EventType` field is `google.
4029
+ # workspace.chat.message.v1.created`.
4030
+ class MessageCreatedEventData
4031
+ include Google::Apis::Core::Hashable
4032
+
4033
+ # A message in a Google Chat space.
4034
+ # Corresponds to the JSON property `message`
4035
+ # @return [Google::Apis::ChatV1::Message]
4036
+ attr_accessor :message
4037
+
4038
+ def initialize(**args)
4039
+ update!(**args)
4040
+ end
4041
+
4042
+ # Update properties of this object
4043
+ def update!(**args)
4044
+ @message = args[:message] if args.key?(:message)
4045
+ end
4046
+ end
4047
+
4048
+ # Payload for deleted message events where the `EventType` field is `google.
4049
+ # workspace.chat.message.v1.deleted`.
4050
+ class MessageDeletedEventData
4051
+ include Google::Apis::Core::Hashable
4052
+
4053
+ # A message in a Google Chat space.
4054
+ # Corresponds to the JSON property `message`
4055
+ # @return [Google::Apis::ChatV1::Message]
4056
+ attr_accessor :message
4057
+
4058
+ def initialize(**args)
4059
+ update!(**args)
4060
+ end
4061
+
4062
+ # Update properties of this object
4063
+ def update!(**args)
4064
+ @message = args[:message] if args.key?(:message)
4065
+ end
4066
+ end
4067
+
4068
+ # Payload for updated message events where the `EventType` field is `google.
4069
+ # workspace.chat.message.v1.updated`.
4070
+ class MessageUpdatedEventData
4071
+ include Google::Apis::Core::Hashable
4072
+
4073
+ # A message in a Google Chat space.
4074
+ # Corresponds to the JSON property `message`
4075
+ # @return [Google::Apis::ChatV1::Message]
4076
+ attr_accessor :message
4077
+
4078
+ def initialize(**args)
4079
+ update!(**args)
4080
+ end
4081
+
4082
+ # Update properties of this object
4083
+ def update!(**args)
4084
+ @message = args[:message] if args.key?(:message)
4085
+ end
4086
+ end
4087
+
3715
4088
  # An `onclick` action (for example, open a link).
3716
4089
  class OnClick
3717
4090
  include Google::Apis::Core::Hashable
@@ -3819,6 +4192,86 @@ module Google
3819
4192
  end
3820
4193
  end
3821
4194
 
4195
+ # Payload for batch new reaction events where the `EventType` field is `google.
4196
+ # workspace.chat.reaction.v1.batchCreated`.
4197
+ class ReactionBatchCreatedEventData
4198
+ include Google::Apis::Core::Hashable
4199
+
4200
+ # A list of created reactions.
4201
+ # Corresponds to the JSON property `reactions`
4202
+ # @return [Array<Google::Apis::ChatV1::ReactionCreatedEventData>]
4203
+ attr_accessor :reactions
4204
+
4205
+ def initialize(**args)
4206
+ update!(**args)
4207
+ end
4208
+
4209
+ # Update properties of this object
4210
+ def update!(**args)
4211
+ @reactions = args[:reactions] if args.key?(:reactions)
4212
+ end
4213
+ end
4214
+
4215
+ # Payload for batch deleted reaction events where the `EventType` field is `
4216
+ # google.workspace.chat.reaction.v1.batchDeleted`.
4217
+ class ReactionBatchDeletedEventData
4218
+ include Google::Apis::Core::Hashable
4219
+
4220
+ # A list of deleted reactions.
4221
+ # Corresponds to the JSON property `reactions`
4222
+ # @return [Array<Google::Apis::ChatV1::ReactionDeletedEventData>]
4223
+ attr_accessor :reactions
4224
+
4225
+ def initialize(**args)
4226
+ update!(**args)
4227
+ end
4228
+
4229
+ # Update properties of this object
4230
+ def update!(**args)
4231
+ @reactions = args[:reactions] if args.key?(:reactions)
4232
+ end
4233
+ end
4234
+
4235
+ # Payload for new reaction events where the `EventType` field is `google.
4236
+ # workspace.chat.reaction.v1.created`.
4237
+ class ReactionCreatedEventData
4238
+ include Google::Apis::Core::Hashable
4239
+
4240
+ # A reaction to a message.
4241
+ # Corresponds to the JSON property `reaction`
4242
+ # @return [Google::Apis::ChatV1::Reaction]
4243
+ attr_accessor :reaction
4244
+
4245
+ def initialize(**args)
4246
+ update!(**args)
4247
+ end
4248
+
4249
+ # Update properties of this object
4250
+ def update!(**args)
4251
+ @reaction = args[:reaction] if args.key?(:reaction)
4252
+ end
4253
+ end
4254
+
4255
+ # Payload for deleted reaction events where the `EventType` field is `google.
4256
+ # workspace.chat.reaction.v1.deleted`.
4257
+ class ReactionDeletedEventData
4258
+ include Google::Apis::Core::Hashable
4259
+
4260
+ # A reaction to a message.
4261
+ # Corresponds to the JSON property `reaction`
4262
+ # @return [Google::Apis::ChatV1::Reaction]
4263
+ attr_accessor :reaction
4264
+
4265
+ def initialize(**args)
4266
+ update!(**args)
4267
+ end
4268
+
4269
+ # Update properties of this object
4270
+ def update!(**args)
4271
+ @reaction = args[:reaction] if args.key?(:reaction)
4272
+ end
4273
+ end
4274
+
3822
4275
  # A rich link to a resource.
3823
4276
  class RichLinkMetadata
3824
4277
  include Google::Apis::Core::Hashable
@@ -4055,11 +4508,11 @@ module Google
4055
4508
  # Immutable. Whether this space permits any Google Chat user as a member. Input
4056
4509
  # when creating a space in a Google Workspace organization. Omit this field when
4057
4510
  # creating spaces in the following conditions: * The authenticated user uses a
4058
- # Google Account. By default, the space permits any Google Chat user. * The
4059
- # space is used to [import data to Google Chat] (https://developers.google.com/
4060
- # chat/api/guides/import-data-overview). Import mode spaces must only permit
4061
- # members from the same Google Workspace organization. For existing spaces, this
4062
- # field is output only.
4511
+ # consumer account (unmanaged user account). By default, a space created by a
4512
+ # consumer account permits any Google Chat user. * The space is used to [import
4513
+ # data to Google Chat] (https://developers.google.com/chat/api/guides/import-
4514
+ # data-overview). Import mode spaces must only permit members from the same
4515
+ # Google Workspace organization. For existing spaces, this field is output only.
4063
4516
  # Corresponds to the JSON property `externalUserAllowed`
4064
4517
  # @return [Boolean]
4065
4518
  attr_accessor :external_user_allowed
@@ -4139,6 +4592,26 @@ module Google
4139
4592
  end
4140
4593
  end
4141
4594
 
4595
+ # Payload for batch updated space events where the `EventType` field is `google.
4596
+ # workspace.chat.space.v1.batchUpdated`.
4597
+ class SpaceBatchUpdatedEventData
4598
+ include Google::Apis::Core::Hashable
4599
+
4600
+ # A list of updated spaces.
4601
+ # Corresponds to the JSON property `spaces`
4602
+ # @return [Array<Google::Apis::ChatV1::SpaceUpdatedEventData>]
4603
+ attr_accessor :spaces
4604
+
4605
+ def initialize(**args)
4606
+ update!(**args)
4607
+ end
4608
+
4609
+ # Update properties of this object
4610
+ def update!(**args)
4611
+ @spaces = args[:spaces] if args.key?(:spaces)
4612
+ end
4613
+ end
4614
+
4142
4615
  # A data source that populates Google Chat spaces as selection items for a
4143
4616
  # multiselect menu. Only populates spaces that the user is a member of. [Google
4144
4617
  # Chat apps](https://developers.google.com/workspace/chat):
@@ -4190,6 +4663,199 @@ module Google
4190
4663
  end
4191
4664
  end
4192
4665
 
4666
+ # An event that happens in a specific space.
4667
+ class SpaceEvent
4668
+ include Google::Apis::Core::Hashable
4669
+
4670
+ # Time of the event.
4671
+ # Corresponds to the JSON property `eventTime`
4672
+ # @return [String]
4673
+ attr_accessor :event_time
4674
+
4675
+ # Type of the space event. The following event types are supported: * New
4676
+ # membership: `google.workspace.chat.membership.v1.created` * Deleted membership:
4677
+ # `google.workspace.chat.membership.v1.deleted` * Updated membership: `google.
4678
+ # workspace.chat.membership.v1.updated` * New message: `google.workspace.chat.
4679
+ # message.v1.created` * Deleted message: `google.workspace.chat.message.v1.
4680
+ # deleted` * Updated message: `google.workspace.chat.message.v1.updated` * New
4681
+ # reaction: `google.workspace.chat.reaction.v1.created` * Deleted reaction: `
4682
+ # google.workspace.chat.reaction.v1.deleted` * Updated space: `google.workspace.
4683
+ # chat.space.v1.updated` Note that requesting or subscribing to the preceding
4684
+ # event types automatically sets up the subscription or response to also return
4685
+ # batched versions of the event type. For example, if you subscribe to `google.
4686
+ # workspace.chat.membership.v1.created`, you also receive events for `google.
4687
+ # workspace.chat.membership.v1.batchCreated`. For more details see https://
4688
+ # developers.google.com/workspace/events/guides/events-chat#
4689
+ # output_only_event_types.
4690
+ # Corresponds to the JSON property `eventType`
4691
+ # @return [String]
4692
+ attr_accessor :event_type
4693
+
4694
+ # Payload for batch new membership events where the `EventType` field is `google.
4695
+ # workspace.chat.membership.v1.batchCreated`.
4696
+ # Corresponds to the JSON property `membershipBatchCreatedEventData`
4697
+ # @return [Google::Apis::ChatV1::MembershipBatchCreatedEventData]
4698
+ attr_accessor :membership_batch_created_event_data
4699
+
4700
+ # Payload for batch deleted membership events where the `EventType` field is `
4701
+ # google.workspace.chat.membership.v1.batchDeleted`.
4702
+ # Corresponds to the JSON property `membershipBatchDeletedEventData`
4703
+ # @return [Google::Apis::ChatV1::MembershipBatchDeletedEventData]
4704
+ attr_accessor :membership_batch_deleted_event_data
4705
+
4706
+ # Payload for batch updated membership events where the `EventType` field is `
4707
+ # google.workspace.chat.membership.v1.batchUpdated`.
4708
+ # Corresponds to the JSON property `membershipBatchUpdatedEventData`
4709
+ # @return [Google::Apis::ChatV1::MembershipBatchUpdatedEventData]
4710
+ attr_accessor :membership_batch_updated_event_data
4711
+
4712
+ # Payload for new membership events where the `EventType` field is `google.
4713
+ # workspace.chat.membership.v1.created`.
4714
+ # Corresponds to the JSON property `membershipCreatedEventData`
4715
+ # @return [Google::Apis::ChatV1::MembershipCreatedEventData]
4716
+ attr_accessor :membership_created_event_data
4717
+
4718
+ # Payload for deleted membership events where the `EventType` field is `google.
4719
+ # workspace.chat.membership.v1.deleted`.
4720
+ # Corresponds to the JSON property `membershipDeletedEventData`
4721
+ # @return [Google::Apis::ChatV1::MembershipDeletedEventData]
4722
+ attr_accessor :membership_deleted_event_data
4723
+
4724
+ # Payload for updated membership events where the `EventType` field is `google.
4725
+ # workspace.chat.membership.v1.updated`.
4726
+ # Corresponds to the JSON property `membershipUpdatedEventData`
4727
+ # @return [Google::Apis::ChatV1::MembershipUpdatedEventData]
4728
+ attr_accessor :membership_updated_event_data
4729
+
4730
+ # Payload for batch new message events where the `EventType` field is `google.
4731
+ # workspace.chat.message.v1.batchCreated`.
4732
+ # Corresponds to the JSON property `messageBatchCreatedEventData`
4733
+ # @return [Google::Apis::ChatV1::MessageBatchCreatedEventData]
4734
+ attr_accessor :message_batch_created_event_data
4735
+
4736
+ # Payload for batch deleted message events where the `EventType` field is `
4737
+ # google.workspace.chat.message.v1.batchDeleted`.
4738
+ # Corresponds to the JSON property `messageBatchDeletedEventData`
4739
+ # @return [Google::Apis::ChatV1::MessageBatchDeletedEventData]
4740
+ attr_accessor :message_batch_deleted_event_data
4741
+
4742
+ # Payload for batch updated message events where the `EventType` field is `
4743
+ # google.workspace.chat.message.v1.batchUpdated`.
4744
+ # Corresponds to the JSON property `messageBatchUpdatedEventData`
4745
+ # @return [Google::Apis::ChatV1::MessageBatchUpdatedEventData]
4746
+ attr_accessor :message_batch_updated_event_data
4747
+
4748
+ # Payload for new message events where the `EventType` field is `google.
4749
+ # workspace.chat.message.v1.created`.
4750
+ # Corresponds to the JSON property `messageCreatedEventData`
4751
+ # @return [Google::Apis::ChatV1::MessageCreatedEventData]
4752
+ attr_accessor :message_created_event_data
4753
+
4754
+ # Payload for deleted message events where the `EventType` field is `google.
4755
+ # workspace.chat.message.v1.deleted`.
4756
+ # Corresponds to the JSON property `messageDeletedEventData`
4757
+ # @return [Google::Apis::ChatV1::MessageDeletedEventData]
4758
+ attr_accessor :message_deleted_event_data
4759
+
4760
+ # Payload for updated message events where the `EventType` field is `google.
4761
+ # workspace.chat.message.v1.updated`.
4762
+ # Corresponds to the JSON property `messageUpdatedEventData`
4763
+ # @return [Google::Apis::ChatV1::MessageUpdatedEventData]
4764
+ attr_accessor :message_updated_event_data
4765
+
4766
+ # The resource name of the space event. Format: `spaces/`space`/spaceEvents/`
4767
+ # spaceEvent``
4768
+ # Corresponds to the JSON property `name`
4769
+ # @return [String]
4770
+ attr_accessor :name
4771
+
4772
+ # Payload for batch new reaction events where the `EventType` field is `google.
4773
+ # workspace.chat.reaction.v1.batchCreated`.
4774
+ # Corresponds to the JSON property `reactionBatchCreatedEventData`
4775
+ # @return [Google::Apis::ChatV1::ReactionBatchCreatedEventData]
4776
+ attr_accessor :reaction_batch_created_event_data
4777
+
4778
+ # Payload for batch deleted reaction events where the `EventType` field is `
4779
+ # google.workspace.chat.reaction.v1.batchDeleted`.
4780
+ # Corresponds to the JSON property `reactionBatchDeletedEventData`
4781
+ # @return [Google::Apis::ChatV1::ReactionBatchDeletedEventData]
4782
+ attr_accessor :reaction_batch_deleted_event_data
4783
+
4784
+ # Payload for new reaction events where the `EventType` field is `google.
4785
+ # workspace.chat.reaction.v1.created`.
4786
+ # Corresponds to the JSON property `reactionCreatedEventData`
4787
+ # @return [Google::Apis::ChatV1::ReactionCreatedEventData]
4788
+ attr_accessor :reaction_created_event_data
4789
+
4790
+ # Payload for deleted reaction events where the `EventType` field is `google.
4791
+ # workspace.chat.reaction.v1.deleted`.
4792
+ # Corresponds to the JSON property `reactionDeletedEventData`
4793
+ # @return [Google::Apis::ChatV1::ReactionDeletedEventData]
4794
+ attr_accessor :reaction_deleted_event_data
4795
+
4796
+ # Payload for batch updated space events where the `EventType` field is `google.
4797
+ # workspace.chat.space.v1.batchUpdated`.
4798
+ # Corresponds to the JSON property `spaceBatchUpdatedEventData`
4799
+ # @return [Google::Apis::ChatV1::SpaceBatchUpdatedEventData]
4800
+ attr_accessor :space_batch_updated_event_data
4801
+
4802
+ # Payload for updated space events where the `EventType` field is `google.
4803
+ # workspace.chat.space.v1.updated`.
4804
+ # Corresponds to the JSON property `spaceUpdatedEventData`
4805
+ # @return [Google::Apis::ChatV1::SpaceUpdatedEventData]
4806
+ attr_accessor :space_updated_event_data
4807
+
4808
+ def initialize(**args)
4809
+ update!(**args)
4810
+ end
4811
+
4812
+ # Update properties of this object
4813
+ def update!(**args)
4814
+ @event_time = args[:event_time] if args.key?(:event_time)
4815
+ @event_type = args[:event_type] if args.key?(:event_type)
4816
+ @membership_batch_created_event_data = args[:membership_batch_created_event_data] if args.key?(:membership_batch_created_event_data)
4817
+ @membership_batch_deleted_event_data = args[:membership_batch_deleted_event_data] if args.key?(:membership_batch_deleted_event_data)
4818
+ @membership_batch_updated_event_data = args[:membership_batch_updated_event_data] if args.key?(:membership_batch_updated_event_data)
4819
+ @membership_created_event_data = args[:membership_created_event_data] if args.key?(:membership_created_event_data)
4820
+ @membership_deleted_event_data = args[:membership_deleted_event_data] if args.key?(:membership_deleted_event_data)
4821
+ @membership_updated_event_data = args[:membership_updated_event_data] if args.key?(:membership_updated_event_data)
4822
+ @message_batch_created_event_data = args[:message_batch_created_event_data] if args.key?(:message_batch_created_event_data)
4823
+ @message_batch_deleted_event_data = args[:message_batch_deleted_event_data] if args.key?(:message_batch_deleted_event_data)
4824
+ @message_batch_updated_event_data = args[:message_batch_updated_event_data] if args.key?(:message_batch_updated_event_data)
4825
+ @message_created_event_data = args[:message_created_event_data] if args.key?(:message_created_event_data)
4826
+ @message_deleted_event_data = args[:message_deleted_event_data] if args.key?(:message_deleted_event_data)
4827
+ @message_updated_event_data = args[:message_updated_event_data] if args.key?(:message_updated_event_data)
4828
+ @name = args[:name] if args.key?(:name)
4829
+ @reaction_batch_created_event_data = args[:reaction_batch_created_event_data] if args.key?(:reaction_batch_created_event_data)
4830
+ @reaction_batch_deleted_event_data = args[:reaction_batch_deleted_event_data] if args.key?(:reaction_batch_deleted_event_data)
4831
+ @reaction_created_event_data = args[:reaction_created_event_data] if args.key?(:reaction_created_event_data)
4832
+ @reaction_deleted_event_data = args[:reaction_deleted_event_data] if args.key?(:reaction_deleted_event_data)
4833
+ @space_batch_updated_event_data = args[:space_batch_updated_event_data] if args.key?(:space_batch_updated_event_data)
4834
+ @space_updated_event_data = args[:space_updated_event_data] if args.key?(:space_updated_event_data)
4835
+ end
4836
+ end
4837
+
4838
+ # Payload for updated space events where the `EventType` field is `google.
4839
+ # workspace.chat.space.v1.updated`.
4840
+ class SpaceUpdatedEventData
4841
+ include Google::Apis::Core::Hashable
4842
+
4843
+ # A space in Google Chat. Spaces are conversations between two or more users or
4844
+ # 1:1 messages between a user and a Chat app.
4845
+ # Corresponds to the JSON property `space`
4846
+ # @return [Google::Apis::ChatV1::Space]
4847
+ attr_accessor :space
4848
+
4849
+ def initialize(**args)
4850
+ update!(**args)
4851
+ end
4852
+
4853
+ # Update properties of this object
4854
+ def update!(**args)
4855
+ @space = args[:space] if args.key?(:space)
4856
+ end
4857
+ end
4858
+
4193
4859
  # The `Status` type defines a logical error model that is suitable for different
4194
4860
  # programming environments, including REST APIs and RPC APIs. It is used by [
4195
4861
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of