google-apis-chat_v1 0.88.0 → 0.90.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.
@@ -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
@@ -2101,10 +2125,9 @@ module Google
2101
2125
  # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2102
2126
  # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2103
2127
  # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2104
- # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write ` "name":
2105
- # "check_box", "fill": true, "weight": 300, "grade": -25 ` Available for Chat
2106
- # apps and in [Developer Preview](https://developers.google.com/workspace/
2107
- # preview) for Google Workspace Add-ons.
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):
2108
2131
  # Corresponds to the JSON property `materialIcon`
2109
2132
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1MaterialIcon]
2110
2133
  attr_accessor :material_icon
@@ -2236,15 +2259,15 @@ module Google
2236
2259
  # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2237
2260
  # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2238
2261
  # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2239
- # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write ` "name":
2240
- # "check_box", "fill": true, "weight": 300, "grade": -25 ` Available for Chat
2241
- # apps and in [Developer Preview](https://developers.google.com/workspace/
2242
- # preview) for Google Workspace Add-ons.
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):
2243
2265
  class GoogleAppsCardV1MaterialIcon
2244
2266
  include Google::Apis::Core::Hashable
2245
2267
 
2246
- # Whether it renders a filled icon. Default value is false. See Customization in
2247
- # [Google Font Icon](https://fonts.google.com/icons) for details.
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**.
2248
2271
  # Corresponds to the JSON property `fill`
2249
2272
  # @return [Boolean]
2250
2273
  attr_accessor :fill
@@ -2253,23 +2276,24 @@ module Google
2253
2276
  # Weight and grade affect a symbol’s thickness. Adjustments to grade are more
2254
2277
  # granular than adjustments to weight and have a small impact on the size of the
2255
2278
  # symbol. Choose from `-25, 0, 200`. If absent, default value is 0. If any other
2256
- # value is specified, a broken image icon is displayed. See Customization in [
2257
- # Google Font Icon](https://fonts.google.com/icons) for details.
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**.
2258
2282
  # Corresponds to the JSON property `grade`
2259
2283
  # @return [Fixnum]
2260
2284
  attr_accessor :grade
2261
2285
 
2262
- # The icon name defined in the [Google Material Icon Icon](https://fonts.google.
2263
- # com/icons) in snake_case. e.g. "check_box". Any invalid names are abandoned
2264
- # and replaced with empty string and results in the icon failing to render.
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.
2265
2289
  # Corresponds to the JSON property `name`
2266
2290
  # @return [String]
2267
2291
  attr_accessor :name
2268
2292
 
2269
2293
  # The stroke weight of the icon. Choose from `100, 200, 300, 400, 500, 600, 700`.
2270
- # If absent, default value is 400. If any other value is specified, a broken
2271
- # image icon is displayed. See Customization in [Google Font Icon](https://fonts.
2272
- # google.com/icons) for details.
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**.
2273
2297
  # Corresponds to the JSON property `weight`
2274
2298
  # @return [Fixnum]
2275
2299
  attr_accessor :weight
@@ -2516,7 +2540,7 @@ module Google
2516
2540
  attr_accessor :multi_select_max_selected_items
2517
2541
 
2518
2542
  # For multiselect menus, the number of text characters that a user inputs before
2519
- # 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
2520
2544
  # unspecified, defaults to 0 characters for static data sources and 3 characters
2521
2545
  # for external data sources.
2522
2546
  # Corresponds to the JSON property `multiSelectMinQueryLength`
@@ -3420,6 +3444,32 @@ module Google
3420
3444
  end
3421
3445
  end
3422
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
+
3423
3473
  #
3424
3474
  class ListSpacesResponse
3425
3475
  include Google::Apis::Core::Hashable
@@ -3552,10 +3602,144 @@ module Google
3552
3602
  end
3553
3603
  end
3554
3604
 
3605
+ # Event payload for multiple new memberships. Event type: `google.workspace.chat.
3606
+ # membership.v1.batchCreated`
3607
+ class MembershipBatchCreatedEventData
3608
+ include Google::Apis::Core::Hashable
3609
+
3610
+ # A list of new 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
+ # Event payload for multiple deleted memberships. Event type: `google.workspace.
3626
+ # 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
+ # Event payload for multiple updated memberships. Event type: `google.workspace.
3646
+ # 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
+ # Event payload for a new membership. Event type: `google.workspace.chat.
3666
+ # 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
+ # Event payload for a deleted membership. Event type: `google.workspace.chat.
3687
+ # 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
+ # Event payload for an updated membership. Event type: `google.workspace.chat.
3708
+ # 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
+
3555
3728
  # A message in a Google Chat space.
3556
3729
  class Message
3557
3730
  include Google::Apis::Core::Hashable
3558
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
+
3559
3743
  # Parameters that a Chat app can use to configure how its response is posted.
3560
3744
  # Corresponds to the JSON property `actionResponse`
3561
3745
  # @return [Google::Apis::ChatV1::ActionResponse]
@@ -3752,6 +3936,7 @@ module Google
3752
3936
 
3753
3937
  # Update properties of this object
3754
3938
  def update!(**args)
3939
+ @accessory_widgets = args[:accessory_widgets] if args.key?(:accessory_widgets)
3755
3940
  @action_response = args[:action_response] if args.key?(:action_response)
3756
3941
  @annotations = args[:annotations] if args.key?(:annotations)
3757
3942
  @argument_text = args[:argument_text] if args.key?(:argument_text)
@@ -3780,6 +3965,126 @@ module Google
3780
3965
  end
3781
3966
  end
3782
3967
 
3968
+ # Event payload for multiple new messages. Event type: `google.workspace.chat.
3969
+ # message.v1.batchCreated`
3970
+ class MessageBatchCreatedEventData
3971
+ include Google::Apis::Core::Hashable
3972
+
3973
+ # A list of new 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
+ # Event payload for multiple deleted messages. Event type: `google.workspace.
3989
+ # 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
+ # Event payload for multiple updated messages. Event type: `google.workspace.
4009
+ # 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
+ # Event payload for a new message. Event type: `google.workspace.chat.message.v1.
4029
+ # 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
+ # Event payload for a deleted message. Event type: `google.workspace.chat.
4049
+ # 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
+ # Event payload for an updated message. Event type: `google.workspace.chat.
4069
+ # 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
+
3783
4088
  # An `onclick` action (for example, open a link).
3784
4089
  class OnClick
3785
4090
  include Google::Apis::Core::Hashable
@@ -3887,6 +4192,86 @@ module Google
3887
4192
  end
3888
4193
  end
3889
4194
 
4195
+ # Event payload for multiple new reactions. Event type: `google.workspace.chat.
4196
+ # reaction.v1.batchCreated`
4197
+ class ReactionBatchCreatedEventData
4198
+ include Google::Apis::Core::Hashable
4199
+
4200
+ # A list of new 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
+ # Event payload for multiple deleted reactions. Event type: `google.workspace.
4216
+ # 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
+ # Event payload for a new reaction. Event type: `google.workspace.chat.reaction.
4236
+ # 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
+ # Event payload for a deleted reaction. Type: `google.workspace.chat.reaction.v1.
4256
+ # 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
+
3890
4275
  # A rich link to a resource.
3891
4276
  class RichLinkMetadata
3892
4277
  include Google::Apis::Core::Hashable
@@ -4123,11 +4508,11 @@ module Google
4123
4508
  # Immutable. Whether this space permits any Google Chat user as a member. Input
4124
4509
  # when creating a space in a Google Workspace organization. Omit this field when
4125
4510
  # creating spaces in the following conditions: * The authenticated user uses a
4126
- # Google Account. By default, the space permits any Google Chat user. * The
4127
- # space is used to [import data to Google Chat] (https://developers.google.com/
4128
- # chat/api/guides/import-data-overview). Import mode spaces must only permit
4129
- # members from the same Google Workspace organization. For existing spaces, this
4130
- # 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.
4131
4516
  # Corresponds to the JSON property `externalUserAllowed`
4132
4517
  # @return [Boolean]
4133
4518
  attr_accessor :external_user_allowed
@@ -4207,6 +4592,26 @@ module Google
4207
4592
  end
4208
4593
  end
4209
4594
 
4595
+ # Event payload for multiple updates to a space. Event type: `google.workspace.
4596
+ # 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
+
4210
4615
  # A data source that populates Google Chat spaces as selection items for a
4211
4616
  # multiselect menu. Only populates spaces that the user is a member of. [Google
4212
4617
  # Chat apps](https://developers.google.com/workspace/chat):
@@ -4258,6 +4663,214 @@ module Google
4258
4663
  end
4259
4664
  end
4260
4665
 
4666
+ # An event that represents a change or activity in a Google Chat space. To learn
4667
+ # more, see [Work with events from Google Chat](https://developers.google.com/
4668
+ # workspace/chat/events-overview).
4669
+ class SpaceEvent
4670
+ include Google::Apis::Core::Hashable
4671
+
4672
+ # Time when the event occurred.
4673
+ # Corresponds to the JSON property `eventTime`
4674
+ # @return [String]
4675
+ attr_accessor :event_time
4676
+
4677
+ # Type of space event. Each event type has a batch version, which represents
4678
+ # multiple instances of the event type that occur in a short period of time. For
4679
+ # `spaceEvents.list()` requests, omit batch event types in your query filter. By
4680
+ # default, the server returns both event type and its batch version. Supported
4681
+ # event types for [messages](https://developers.google.com/workspace/chat/api/
4682
+ # reference/rest/v1/spaces.messages): * New message: `google.workspace.chat.
4683
+ # message.v1.created` * Updated message: `google.workspace.chat.message.v1.
4684
+ # updated` * Deleted message: `google.workspace.chat.message.v1.deleted` *
4685
+ # Multiple new messages: `google.workspace.chat.message.v1.batchCreated` *
4686
+ # Multiple updated messages: `google.workspace.chat.message.v1.batchUpdated` *
4687
+ # Multiple deleted messages: `google.workspace.chat.message.v1.batchDeleted`
4688
+ # Supported event types for [memberships](https://developers.google.com/
4689
+ # workspace/chat/api/reference/rest/v1/spaces.members): * New membership: `
4690
+ # google.workspace.chat.membership.v1.created` * Updated membership: `google.
4691
+ # workspace.chat.membership.v1.updated` * Deleted membership: `google.workspace.
4692
+ # chat.membership.v1.deleted` * Multiple new memberships: `google.workspace.chat.
4693
+ # membership.v1.batchCreated` * Multiple updated memberships: `google.workspace.
4694
+ # chat.membership.v1.batchUpdated` * Multiple deleted memberships: `google.
4695
+ # workspace.chat.membership.v1.batchDeleted` Supported event types for [
4696
+ # reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/
4697
+ # spaces.messages.reactions): * New reaction: `google.workspace.chat.reaction.v1.
4698
+ # created` * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` *
4699
+ # Multiple new reactions: `google.workspace.chat.reaction.v1.batchCreated` *
4700
+ # Multiple deleted reactions: `google.workspace.chat.reaction.v1.batchDeleted`
4701
+ # Supported event types about the [space](https://developers.google.com/
4702
+ # workspace/chat/api/reference/rest/v1/spaces): * Updated space: `google.
4703
+ # workspace.chat.space.v1.updated` * Multiple space updates: `google.workspace.
4704
+ # chat.space.v1.batchUpdated`
4705
+ # Corresponds to the JSON property `eventType`
4706
+ # @return [String]
4707
+ attr_accessor :event_type
4708
+
4709
+ # Event payload for multiple new memberships. Event type: `google.workspace.chat.
4710
+ # membership.v1.batchCreated`
4711
+ # Corresponds to the JSON property `membershipBatchCreatedEventData`
4712
+ # @return [Google::Apis::ChatV1::MembershipBatchCreatedEventData]
4713
+ attr_accessor :membership_batch_created_event_data
4714
+
4715
+ # Event payload for multiple deleted memberships. Event type: `google.workspace.
4716
+ # chat.membership.v1.batchDeleted`
4717
+ # Corresponds to the JSON property `membershipBatchDeletedEventData`
4718
+ # @return [Google::Apis::ChatV1::MembershipBatchDeletedEventData]
4719
+ attr_accessor :membership_batch_deleted_event_data
4720
+
4721
+ # Event payload for multiple updated memberships. Event type: `google.workspace.
4722
+ # chat.membership.v1.batchUpdated`
4723
+ # Corresponds to the JSON property `membershipBatchUpdatedEventData`
4724
+ # @return [Google::Apis::ChatV1::MembershipBatchUpdatedEventData]
4725
+ attr_accessor :membership_batch_updated_event_data
4726
+
4727
+ # Event payload for a new membership. Event type: `google.workspace.chat.
4728
+ # membership.v1.created`.
4729
+ # Corresponds to the JSON property `membershipCreatedEventData`
4730
+ # @return [Google::Apis::ChatV1::MembershipCreatedEventData]
4731
+ attr_accessor :membership_created_event_data
4732
+
4733
+ # Event payload for a deleted membership. Event type: `google.workspace.chat.
4734
+ # membership.v1.deleted`
4735
+ # Corresponds to the JSON property `membershipDeletedEventData`
4736
+ # @return [Google::Apis::ChatV1::MembershipDeletedEventData]
4737
+ attr_accessor :membership_deleted_event_data
4738
+
4739
+ # Event payload for an updated membership. Event type: `google.workspace.chat.
4740
+ # membership.v1.updated`
4741
+ # Corresponds to the JSON property `membershipUpdatedEventData`
4742
+ # @return [Google::Apis::ChatV1::MembershipUpdatedEventData]
4743
+ attr_accessor :membership_updated_event_data
4744
+
4745
+ # Event payload for multiple new messages. Event type: `google.workspace.chat.
4746
+ # message.v1.batchCreated`
4747
+ # Corresponds to the JSON property `messageBatchCreatedEventData`
4748
+ # @return [Google::Apis::ChatV1::MessageBatchCreatedEventData]
4749
+ attr_accessor :message_batch_created_event_data
4750
+
4751
+ # Event payload for multiple deleted messages. Event type: `google.workspace.
4752
+ # chat.message.v1.batchDeleted`
4753
+ # Corresponds to the JSON property `messageBatchDeletedEventData`
4754
+ # @return [Google::Apis::ChatV1::MessageBatchDeletedEventData]
4755
+ attr_accessor :message_batch_deleted_event_data
4756
+
4757
+ # Event payload for multiple updated messages. Event type: `google.workspace.
4758
+ # chat.message.v1.batchUpdated`
4759
+ # Corresponds to the JSON property `messageBatchUpdatedEventData`
4760
+ # @return [Google::Apis::ChatV1::MessageBatchUpdatedEventData]
4761
+ attr_accessor :message_batch_updated_event_data
4762
+
4763
+ # Event payload for a new message. Event type: `google.workspace.chat.message.v1.
4764
+ # created`
4765
+ # Corresponds to the JSON property `messageCreatedEventData`
4766
+ # @return [Google::Apis::ChatV1::MessageCreatedEventData]
4767
+ attr_accessor :message_created_event_data
4768
+
4769
+ # Event payload for a deleted message. Event type: `google.workspace.chat.
4770
+ # message.v1.deleted`
4771
+ # Corresponds to the JSON property `messageDeletedEventData`
4772
+ # @return [Google::Apis::ChatV1::MessageDeletedEventData]
4773
+ attr_accessor :message_deleted_event_data
4774
+
4775
+ # Event payload for an updated message. Event type: `google.workspace.chat.
4776
+ # message.v1.updated`
4777
+ # Corresponds to the JSON property `messageUpdatedEventData`
4778
+ # @return [Google::Apis::ChatV1::MessageUpdatedEventData]
4779
+ attr_accessor :message_updated_event_data
4780
+
4781
+ # Resource name of the space event. Format: `spaces/`space`/spaceEvents/`
4782
+ # spaceEvent``
4783
+ # Corresponds to the JSON property `name`
4784
+ # @return [String]
4785
+ attr_accessor :name
4786
+
4787
+ # Event payload for multiple new reactions. Event type: `google.workspace.chat.
4788
+ # reaction.v1.batchCreated`
4789
+ # Corresponds to the JSON property `reactionBatchCreatedEventData`
4790
+ # @return [Google::Apis::ChatV1::ReactionBatchCreatedEventData]
4791
+ attr_accessor :reaction_batch_created_event_data
4792
+
4793
+ # Event payload for multiple deleted reactions. Event type: `google.workspace.
4794
+ # chat.reaction.v1.batchDeleted`
4795
+ # Corresponds to the JSON property `reactionBatchDeletedEventData`
4796
+ # @return [Google::Apis::ChatV1::ReactionBatchDeletedEventData]
4797
+ attr_accessor :reaction_batch_deleted_event_data
4798
+
4799
+ # Event payload for a new reaction. Event type: `google.workspace.chat.reaction.
4800
+ # v1.created`
4801
+ # Corresponds to the JSON property `reactionCreatedEventData`
4802
+ # @return [Google::Apis::ChatV1::ReactionCreatedEventData]
4803
+ attr_accessor :reaction_created_event_data
4804
+
4805
+ # Event payload for a deleted reaction. Type: `google.workspace.chat.reaction.v1.
4806
+ # deleted`
4807
+ # Corresponds to the JSON property `reactionDeletedEventData`
4808
+ # @return [Google::Apis::ChatV1::ReactionDeletedEventData]
4809
+ attr_accessor :reaction_deleted_event_data
4810
+
4811
+ # Event payload for multiple updates to a space. Event type: `google.workspace.
4812
+ # chat.space.v1.batchUpdated`
4813
+ # Corresponds to the JSON property `spaceBatchUpdatedEventData`
4814
+ # @return [Google::Apis::ChatV1::SpaceBatchUpdatedEventData]
4815
+ attr_accessor :space_batch_updated_event_data
4816
+
4817
+ # Event payload for an updated space. Event type: `google.workspace.chat.space.
4818
+ # v1.updated`
4819
+ # Corresponds to the JSON property `spaceUpdatedEventData`
4820
+ # @return [Google::Apis::ChatV1::SpaceUpdatedEventData]
4821
+ attr_accessor :space_updated_event_data
4822
+
4823
+ def initialize(**args)
4824
+ update!(**args)
4825
+ end
4826
+
4827
+ # Update properties of this object
4828
+ def update!(**args)
4829
+ @event_time = args[:event_time] if args.key?(:event_time)
4830
+ @event_type = args[:event_type] if args.key?(:event_type)
4831
+ @membership_batch_created_event_data = args[:membership_batch_created_event_data] if args.key?(:membership_batch_created_event_data)
4832
+ @membership_batch_deleted_event_data = args[:membership_batch_deleted_event_data] if args.key?(:membership_batch_deleted_event_data)
4833
+ @membership_batch_updated_event_data = args[:membership_batch_updated_event_data] if args.key?(:membership_batch_updated_event_data)
4834
+ @membership_created_event_data = args[:membership_created_event_data] if args.key?(:membership_created_event_data)
4835
+ @membership_deleted_event_data = args[:membership_deleted_event_data] if args.key?(:membership_deleted_event_data)
4836
+ @membership_updated_event_data = args[:membership_updated_event_data] if args.key?(:membership_updated_event_data)
4837
+ @message_batch_created_event_data = args[:message_batch_created_event_data] if args.key?(:message_batch_created_event_data)
4838
+ @message_batch_deleted_event_data = args[:message_batch_deleted_event_data] if args.key?(:message_batch_deleted_event_data)
4839
+ @message_batch_updated_event_data = args[:message_batch_updated_event_data] if args.key?(:message_batch_updated_event_data)
4840
+ @message_created_event_data = args[:message_created_event_data] if args.key?(:message_created_event_data)
4841
+ @message_deleted_event_data = args[:message_deleted_event_data] if args.key?(:message_deleted_event_data)
4842
+ @message_updated_event_data = args[:message_updated_event_data] if args.key?(:message_updated_event_data)
4843
+ @name = args[:name] if args.key?(:name)
4844
+ @reaction_batch_created_event_data = args[:reaction_batch_created_event_data] if args.key?(:reaction_batch_created_event_data)
4845
+ @reaction_batch_deleted_event_data = args[:reaction_batch_deleted_event_data] if args.key?(:reaction_batch_deleted_event_data)
4846
+ @reaction_created_event_data = args[:reaction_created_event_data] if args.key?(:reaction_created_event_data)
4847
+ @reaction_deleted_event_data = args[:reaction_deleted_event_data] if args.key?(:reaction_deleted_event_data)
4848
+ @space_batch_updated_event_data = args[:space_batch_updated_event_data] if args.key?(:space_batch_updated_event_data)
4849
+ @space_updated_event_data = args[:space_updated_event_data] if args.key?(:space_updated_event_data)
4850
+ end
4851
+ end
4852
+
4853
+ # Event payload for an updated space. Event type: `google.workspace.chat.space.
4854
+ # v1.updated`
4855
+ class SpaceUpdatedEventData
4856
+ include Google::Apis::Core::Hashable
4857
+
4858
+ # A space in Google Chat. Spaces are conversations between two or more users or
4859
+ # 1:1 messages between a user and a Chat app.
4860
+ # Corresponds to the JSON property `space`
4861
+ # @return [Google::Apis::ChatV1::Space]
4862
+ attr_accessor :space
4863
+
4864
+ def initialize(**args)
4865
+ update!(**args)
4866
+ end
4867
+
4868
+ # Update properties of this object
4869
+ def update!(**args)
4870
+ @space = args[:space] if args.key?(:space)
4871
+ end
4872
+ end
4873
+
4261
4874
  # The `Status` type defines a logical error model that is suitable for different
4262
4875
  # programming environments, including REST APIs and RPC APIs. It is used by [
4263
4876
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of