google-apps-chat-v1 0.1.2 → 0.3.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 +4 -4
- data/lib/google/apps/chat/v1/chat_service/client.rb +334 -10
- data/lib/google/apps/chat/v1/chat_service/credentials.rb +5 -0
- data/lib/google/apps/chat/v1/chat_service/paths.rb +17 -0
- data/lib/google/apps/chat/v1/chat_service/rest/client.rb +320 -10
- data/lib/google/apps/chat/v1/chat_service/rest/service_stub.rb +118 -0
- data/lib/google/apps/chat/v1/version.rb +1 -1
- data/lib/google/chat/v1/chat_service_pb.rb +2 -1
- data/lib/google/chat/v1/chat_service_services_pb.rb +33 -0
- data/lib/google/chat/v1/event_payload_pb.rb +69 -0
- data/lib/google/chat/v1/space_event_pb.rb +52 -0
- data/lib/google/chat/v1/space_pb.rb +3 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/chat/v1/attachment.rb +2 -2
- data/proto_docs/google/chat/v1/event_payload.rb +225 -0
- data/proto_docs/google/chat/v1/membership.rb +8 -2
- data/proto_docs/google/chat/v1/space.rb +66 -6
- data/proto_docs/google/chat/v1/space_event.rb +285 -0
- metadata +6 -2
@@ -203,6 +203,16 @@ module Google
|
|
203
203
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
204
204
|
}
|
205
205
|
|
206
|
+
default_config.rpcs.get_space_event.timeout = 30.0
|
207
|
+
default_config.rpcs.get_space_event.retry_policy = {
|
208
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
209
|
+
}
|
210
|
+
|
211
|
+
default_config.rpcs.list_space_events.timeout = 30.0
|
212
|
+
default_config.rpcs.list_space_events.retry_policy = {
|
213
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
214
|
+
}
|
215
|
+
|
206
216
|
default_config
|
207
217
|
end
|
208
218
|
yield @configure if block_given?
|
@@ -641,16 +651,23 @@ module Google
|
|
641
651
|
#
|
642
652
|
# To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
|
643
653
|
#
|
644
|
-
# To filter by type, set `member.type` to `HUMAN` or `BOT`.
|
654
|
+
# To filter by type, set `member.type` to `HUMAN` or `BOT`. Developer
|
655
|
+
# Preview: You can also filter for `member.type` using the `!=` operator.
|
645
656
|
#
|
646
657
|
# To filter by both role and type, use the `AND` operator. To filter by
|
647
658
|
# either role or type, use the `OR` operator.
|
648
659
|
#
|
660
|
+
# Either `member.type = "HUMAN"` or `member.type != "BOT"` is required
|
661
|
+
# when `use_admin_access` is set to true. Other member type filters will be
|
662
|
+
# rejected.
|
663
|
+
#
|
649
664
|
# For example, the following queries are valid:
|
650
665
|
#
|
651
666
|
# ```
|
652
667
|
# role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
|
653
668
|
# member.type = "HUMAN" AND role = "ROLE_MANAGER"
|
669
|
+
#
|
670
|
+
# member.type != "BOT"
|
654
671
|
# ```
|
655
672
|
#
|
656
673
|
# The following queries are invalid:
|
@@ -660,7 +677,6 @@ module Google
|
|
660
677
|
# role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
|
661
678
|
# ```
|
662
679
|
#
|
663
|
-
#
|
664
680
|
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
665
681
|
# error.
|
666
682
|
# @param show_groups [::Boolean]
|
@@ -1193,7 +1209,7 @@ module Google
|
|
1193
1209
|
#
|
1194
1210
|
# @param name [::String]
|
1195
1211
|
# Required. Resource name of the attachment, in the form
|
1196
|
-
# `spaces
|
1212
|
+
# `spaces/{space}/messages/{message}/attachments/{attachment}`.
|
1197
1213
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1198
1214
|
# @yieldparam result [::Google::Apps::Chat::V1::Attachment]
|
1199
1215
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1360,6 +1376,10 @@ module Google
|
|
1360
1376
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
1361
1377
|
# and DMs aren't listed until the first message is sent.
|
1362
1378
|
#
|
1379
|
+
# To list all named spaces by Google Workspace organization, use the
|
1380
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
1381
|
+
# method using Workspace administrator privileges instead.
|
1382
|
+
#
|
1363
1383
|
# @overload list_spaces(request, options = nil)
|
1364
1384
|
# Pass arguments to `list_spaces` via a request object, either of type
|
1365
1385
|
# {::Google::Apps::Chat::V1::ListSpacesRequest} or an equivalent Hash.
|
@@ -1504,7 +1524,7 @@ module Google
|
|
1504
1524
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1505
1525
|
#
|
1506
1526
|
# @param name [::String]
|
1507
|
-
# Required. Resource name of the space, in the form
|
1527
|
+
# Required. Resource name of the space, in the form `spaces/{space}`.
|
1508
1528
|
#
|
1509
1529
|
# Format: `spaces/{space}`
|
1510
1530
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1911,6 +1931,7 @@ module Google
|
|
1911
1931
|
# the display name is optional if the existing space already has the `SPACE`
|
1912
1932
|
# type. Trying to update the space type in other ways results in an invalid
|
1913
1933
|
# argument error).
|
1934
|
+
# `space_type` is not supported with admin access.
|
1914
1935
|
#
|
1915
1936
|
# - `space_details`
|
1916
1937
|
#
|
@@ -1919,12 +1940,27 @@ module Google
|
|
1919
1940
|
# allows users to change their history
|
1920
1941
|
# setting](https://support.google.com/a/answer/7664184).
|
1921
1942
|
# Warning: mutually exclusive with all other field paths.)
|
1922
|
-
#
|
1923
|
-
#
|
1924
|
-
#
|
1925
|
-
#
|
1926
|
-
#
|
1927
|
-
#
|
1943
|
+
# `space_history_state` is not supported with admin access.
|
1944
|
+
#
|
1945
|
+
# - `access_settings.audience` (Supports changing the [access
|
1946
|
+
# setting](https://support.google.com/chat/answer/11971020) of who can
|
1947
|
+
# discover the space, join the space, and preview the messages in space. If
|
1948
|
+
# no audience is specified in the access setting, the space's access setting
|
1949
|
+
# is updated to private. Warning: mutually exclusive with all other field
|
1950
|
+
# paths.)
|
1951
|
+
# `access_settings.audience` is not supported with admin access.
|
1952
|
+
#
|
1953
|
+
# - Developer Preview: Supports changing the [permission
|
1954
|
+
# settings](https://support.google.com/chat/answer/13340792) of a space,
|
1955
|
+
# supported field paths
|
1956
|
+
# include: `permission_settings.manage_members_and_groups`,
|
1957
|
+
# `permission_settings.modify_space_details`,
|
1958
|
+
# `permission_settings.toggle_history`,
|
1959
|
+
# `permission_settings.use_at_mention_all`,
|
1960
|
+
# `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
|
1961
|
+
# `permission_settings.reply_messages`
|
1962
|
+
# (Warning: mutually exclusive with all other non-permission settings field
|
1963
|
+
# paths). `permission_settings` is not supported with admin access.
|
1928
1964
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1929
1965
|
# @yieldparam result [::Google::Apps::Chat::V1::Space]
|
1930
1966
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -3219,6 +3255,266 @@ module Google
|
|
3219
3255
|
raise ::Google::Cloud::Error.from_error(e)
|
3220
3256
|
end
|
3221
3257
|
|
3258
|
+
##
|
3259
|
+
# Returns an event from a Google Chat space. The [event
|
3260
|
+
# payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
|
3261
|
+
# contains the most recent version of the resource that changed. For example,
|
3262
|
+
# if you request an event about a new message but the message was later
|
3263
|
+
# updated, the server returns the updated `Message` resource in the event
|
3264
|
+
# payload.
|
3265
|
+
#
|
3266
|
+
# Requires [user
|
3267
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
3268
|
+
# To get an event, the authenticated user must be a member of the space.
|
3269
|
+
#
|
3270
|
+
# For an example, see [Get details about an
|
3271
|
+
# event from a Google Chat
|
3272
|
+
# space](https://developers.google.com/workspace/chat/get-space-event).
|
3273
|
+
#
|
3274
|
+
# @overload get_space_event(request, options = nil)
|
3275
|
+
# Pass arguments to `get_space_event` via a request object, either of type
|
3276
|
+
# {::Google::Apps::Chat::V1::GetSpaceEventRequest} or an equivalent Hash.
|
3277
|
+
#
|
3278
|
+
# @param request [::Google::Apps::Chat::V1::GetSpaceEventRequest, ::Hash]
|
3279
|
+
# A request object representing the call parameters. Required. To specify no
|
3280
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3281
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3283
|
+
#
|
3284
|
+
# @overload get_space_event(name: nil)
|
3285
|
+
# Pass arguments to `get_space_event` via keyword arguments. Note that at
|
3286
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3287
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3288
|
+
#
|
3289
|
+
# @param name [::String]
|
3290
|
+
# Required. The resource name of the space event.
|
3291
|
+
#
|
3292
|
+
# Format: `spaces/{space}/spaceEvents/{spaceEvent}`
|
3293
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3294
|
+
# @yieldparam result [::Google::Apps::Chat::V1::SpaceEvent]
|
3295
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3296
|
+
#
|
3297
|
+
# @return [::Google::Apps::Chat::V1::SpaceEvent]
|
3298
|
+
#
|
3299
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3300
|
+
#
|
3301
|
+
# @example Basic example
|
3302
|
+
# require "google/apps/chat/v1"
|
3303
|
+
#
|
3304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3305
|
+
# client = Google::Apps::Chat::V1::ChatService::Rest::Client.new
|
3306
|
+
#
|
3307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3308
|
+
# request = Google::Apps::Chat::V1::GetSpaceEventRequest.new
|
3309
|
+
#
|
3310
|
+
# # Call the get_space_event method.
|
3311
|
+
# result = client.get_space_event request
|
3312
|
+
#
|
3313
|
+
# # The returned object is of type Google::Apps::Chat::V1::SpaceEvent.
|
3314
|
+
# p result
|
3315
|
+
#
|
3316
|
+
def get_space_event request, options = nil
|
3317
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3318
|
+
|
3319
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::GetSpaceEventRequest
|
3320
|
+
|
3321
|
+
# Converts hash and nil to an options object
|
3322
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3323
|
+
|
3324
|
+
# Customize the options with defaults
|
3325
|
+
call_metadata = @config.rpcs.get_space_event.metadata.to_h
|
3326
|
+
|
3327
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3328
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3329
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3330
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION,
|
3331
|
+
transports_version_send: [:rest]
|
3332
|
+
|
3333
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3334
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3335
|
+
|
3336
|
+
options.apply_defaults timeout: @config.rpcs.get_space_event.timeout,
|
3337
|
+
metadata: call_metadata,
|
3338
|
+
retry_policy: @config.rpcs.get_space_event.retry_policy
|
3339
|
+
|
3340
|
+
options.apply_defaults timeout: @config.timeout,
|
3341
|
+
metadata: @config.metadata,
|
3342
|
+
retry_policy: @config.retry_policy
|
3343
|
+
|
3344
|
+
@chat_service_stub.get_space_event request, options do |result, operation|
|
3345
|
+
yield result, operation if block_given?
|
3346
|
+
return result
|
3347
|
+
end
|
3348
|
+
rescue ::Gapic::Rest::Error => e
|
3349
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3350
|
+
end
|
3351
|
+
|
3352
|
+
##
|
3353
|
+
# Lists events from a Google Chat space. For each event, the
|
3354
|
+
# [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
|
3355
|
+
# contains the most recent version of the Chat resource. For example, if you
|
3356
|
+
# list events about new space members, the server returns `Membership`
|
3357
|
+
# resources that contain the latest membership details. If new members were
|
3358
|
+
# removed during the requested period, the event payload contains an empty
|
3359
|
+
# `Membership` resource.
|
3360
|
+
#
|
3361
|
+
# Requires [user
|
3362
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
3363
|
+
# To list events, the authenticated user must be a member of the space.
|
3364
|
+
#
|
3365
|
+
# For an example, see [List events from a Google Chat
|
3366
|
+
# space](https://developers.google.com/workspace/chat/list-space-events).
|
3367
|
+
#
|
3368
|
+
# @overload list_space_events(request, options = nil)
|
3369
|
+
# Pass arguments to `list_space_events` via a request object, either of type
|
3370
|
+
# {::Google::Apps::Chat::V1::ListSpaceEventsRequest} or an equivalent Hash.
|
3371
|
+
#
|
3372
|
+
# @param request [::Google::Apps::Chat::V1::ListSpaceEventsRequest, ::Hash]
|
3373
|
+
# A request object representing the call parameters. Required. To specify no
|
3374
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3375
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3376
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3377
|
+
#
|
3378
|
+
# @overload list_space_events(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
3379
|
+
# Pass arguments to `list_space_events` via keyword arguments. Note that at
|
3380
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3381
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3382
|
+
#
|
3383
|
+
# @param parent [::String]
|
3384
|
+
# Required. Resource name of the [Google Chat
|
3385
|
+
# space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
|
3386
|
+
# where the events occurred.
|
3387
|
+
#
|
3388
|
+
# Format: `spaces/{space}`.
|
3389
|
+
# @param page_size [::Integer]
|
3390
|
+
# Optional. The maximum number of space events returned. The service might
|
3391
|
+
# return fewer than this value.
|
3392
|
+
#
|
3393
|
+
# Negative values return an `INVALID_ARGUMENT` error.
|
3394
|
+
# @param page_token [::String]
|
3395
|
+
# A page token, received from a previous list space events call. Provide this
|
3396
|
+
# to retrieve the subsequent page.
|
3397
|
+
#
|
3398
|
+
# When paginating, all other parameters provided to list space events must
|
3399
|
+
# match the call that provided the page token. Passing different values to
|
3400
|
+
# the other parameters might lead to unexpected results.
|
3401
|
+
# @param filter [::String]
|
3402
|
+
# Required. A query filter.
|
3403
|
+
#
|
3404
|
+
# You must specify at least one event type (`event_type`)
|
3405
|
+
# using the has `:` operator. To filter by multiple event types, use the `OR`
|
3406
|
+
# operator. Omit batch event types in your filter. The request automatically
|
3407
|
+
# returns any related batch events. For example, if you filter by new
|
3408
|
+
# reactions
|
3409
|
+
# (`google.workspace.chat.reaction.v1.created`), the server also returns
|
3410
|
+
# batch new reactions events
|
3411
|
+
# (`google.workspace.chat.reaction.v1.batchCreated`). For a list of supported
|
3412
|
+
# event types, see the [`SpaceEvents` reference
|
3413
|
+
# documentation](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.event_type).
|
3414
|
+
#
|
3415
|
+
# Optionally, you can also filter by start time (`start_time`) and
|
3416
|
+
# end time (`end_time`):
|
3417
|
+
#
|
3418
|
+
# * `start_time`: Exclusive timestamp from which to start listing space
|
3419
|
+
# events.
|
3420
|
+
# You can list events that occurred up to 28 days ago. If unspecified, lists
|
3421
|
+
# space events from the past 28 days.
|
3422
|
+
# * `end_time`: Inclusive timestamp until which space events are listed.
|
3423
|
+
# If unspecified, lists events up to the time of the request.
|
3424
|
+
#
|
3425
|
+
# To specify a start or end time, use the equals `=` operator and format in
|
3426
|
+
# [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339). To filter by both
|
3427
|
+
# `start_time` and `end_time`, use the `AND` operator.
|
3428
|
+
#
|
3429
|
+
# For example, the following queries are valid:
|
3430
|
+
#
|
3431
|
+
# ```
|
3432
|
+
# start_time="2023-08-23T19:20:33+00:00" AND
|
3433
|
+
# end_time="2023-08-23T19:21:54+00:00"
|
3434
|
+
# ```
|
3435
|
+
# ```
|
3436
|
+
# start_time="2023-08-23T19:20:33+00:00" AND
|
3437
|
+
# (event_types:"google.workspace.chat.space.v1.updated" OR
|
3438
|
+
# event_types:"google.workspace.chat.message.v1.created")
|
3439
|
+
# ```
|
3440
|
+
#
|
3441
|
+
# The following queries are invalid:
|
3442
|
+
#
|
3443
|
+
# ```
|
3444
|
+
# start_time="2023-08-23T19:20:33+00:00" OR
|
3445
|
+
# end_time="2023-08-23T19:21:54+00:00"
|
3446
|
+
# ```
|
3447
|
+
# ```
|
3448
|
+
# event_types:"google.workspace.chat.space.v1.updated" AND
|
3449
|
+
# event_types:"google.workspace.chat.message.v1.created"
|
3450
|
+
# ```
|
3451
|
+
#
|
3452
|
+
# Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
3453
|
+
# error.
|
3454
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3455
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::SpaceEvent>]
|
3456
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3457
|
+
#
|
3458
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Apps::Chat::V1::SpaceEvent>]
|
3459
|
+
#
|
3460
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3461
|
+
#
|
3462
|
+
# @example Basic example
|
3463
|
+
# require "google/apps/chat/v1"
|
3464
|
+
#
|
3465
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3466
|
+
# client = Google::Apps::Chat::V1::ChatService::Rest::Client.new
|
3467
|
+
#
|
3468
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3469
|
+
# request = Google::Apps::Chat::V1::ListSpaceEventsRequest.new
|
3470
|
+
#
|
3471
|
+
# # Call the list_space_events method.
|
3472
|
+
# result = client.list_space_events request
|
3473
|
+
#
|
3474
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3475
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3476
|
+
# result.each do |item|
|
3477
|
+
# # Each element is of type ::Google::Apps::Chat::V1::SpaceEvent.
|
3478
|
+
# p item
|
3479
|
+
# end
|
3480
|
+
#
|
3481
|
+
def list_space_events request, options = nil
|
3482
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3483
|
+
|
3484
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Chat::V1::ListSpaceEventsRequest
|
3485
|
+
|
3486
|
+
# Converts hash and nil to an options object
|
3487
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3488
|
+
|
3489
|
+
# Customize the options with defaults
|
3490
|
+
call_metadata = @config.rpcs.list_space_events.metadata.to_h
|
3491
|
+
|
3492
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3493
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3494
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3495
|
+
gapic_version: ::Google::Apps::Chat::V1::VERSION,
|
3496
|
+
transports_version_send: [:rest]
|
3497
|
+
|
3498
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3499
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3500
|
+
|
3501
|
+
options.apply_defaults timeout: @config.rpcs.list_space_events.timeout,
|
3502
|
+
metadata: call_metadata,
|
3503
|
+
retry_policy: @config.rpcs.list_space_events.retry_policy
|
3504
|
+
|
3505
|
+
options.apply_defaults timeout: @config.timeout,
|
3506
|
+
metadata: @config.metadata,
|
3507
|
+
retry_policy: @config.retry_policy
|
3508
|
+
|
3509
|
+
@chat_service_stub.list_space_events request, options do |result, operation|
|
3510
|
+
result = ::Gapic::Rest::PagedEnumerable.new @chat_service_stub, :list_space_events, "space_events", request, result, options
|
3511
|
+
yield result, operation if block_given?
|
3512
|
+
return result
|
3513
|
+
end
|
3514
|
+
rescue ::Gapic::Rest::Error => e
|
3515
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3516
|
+
end
|
3517
|
+
|
3222
3518
|
##
|
3223
3519
|
# Configuration class for the ChatService REST API.
|
3224
3520
|
#
|
@@ -3482,6 +3778,16 @@ module Google
|
|
3482
3778
|
# @return [::Gapic::Config::Method]
|
3483
3779
|
#
|
3484
3780
|
attr_reader :get_thread_read_state
|
3781
|
+
##
|
3782
|
+
# RPC-specific configuration for `get_space_event`
|
3783
|
+
# @return [::Gapic::Config::Method]
|
3784
|
+
#
|
3785
|
+
attr_reader :get_space_event
|
3786
|
+
##
|
3787
|
+
# RPC-specific configuration for `list_space_events`
|
3788
|
+
# @return [::Gapic::Config::Method]
|
3789
|
+
#
|
3790
|
+
attr_reader :list_space_events
|
3485
3791
|
|
3486
3792
|
# @private
|
3487
3793
|
def initialize parent_rpcs = nil
|
@@ -3537,6 +3843,10 @@ module Google
|
|
3537
3843
|
@update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
|
3538
3844
|
get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
|
3539
3845
|
@get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
|
3846
|
+
get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
|
3847
|
+
@get_space_event = ::Gapic::Config::Method.new get_space_event_config
|
3848
|
+
list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
|
3849
|
+
@list_space_events = ::Gapic::Config::Method.new list_space_events_config
|
3540
3850
|
|
3541
3851
|
yield self if block_given?
|
3542
3852
|
end
|
@@ -1049,6 +1049,82 @@ module Google
|
|
1049
1049
|
result
|
1050
1050
|
end
|
1051
1051
|
|
1052
|
+
##
|
1053
|
+
# Baseline implementation for the get_space_event REST call
|
1054
|
+
#
|
1055
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetSpaceEventRequest]
|
1056
|
+
# A request object representing the call parameters. Required.
|
1057
|
+
# @param options [::Gapic::CallOptions]
|
1058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1059
|
+
#
|
1060
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1061
|
+
# @yieldparam result [::Google::Apps::Chat::V1::SpaceEvent]
|
1062
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1063
|
+
#
|
1064
|
+
# @return [::Google::Apps::Chat::V1::SpaceEvent]
|
1065
|
+
# A result object deserialized from the server's reply
|
1066
|
+
def get_space_event request_pb, options = nil
|
1067
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1068
|
+
|
1069
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_space_event_request request_pb
|
1070
|
+
query_string_params = if query_string_params.any?
|
1071
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1072
|
+
else
|
1073
|
+
{}
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
response = @client_stub.make_http_request(
|
1077
|
+
verb,
|
1078
|
+
uri: uri,
|
1079
|
+
body: body || "",
|
1080
|
+
params: query_string_params,
|
1081
|
+
options: options
|
1082
|
+
)
|
1083
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1084
|
+
result = ::Google::Apps::Chat::V1::SpaceEvent.decode_json response.body, ignore_unknown_fields: true
|
1085
|
+
|
1086
|
+
yield result, operation if block_given?
|
1087
|
+
result
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
##
|
1091
|
+
# Baseline implementation for the list_space_events REST call
|
1092
|
+
#
|
1093
|
+
# @param request_pb [::Google::Apps::Chat::V1::ListSpaceEventsRequest]
|
1094
|
+
# A request object representing the call parameters. Required.
|
1095
|
+
# @param options [::Gapic::CallOptions]
|
1096
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1097
|
+
#
|
1098
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1099
|
+
# @yieldparam result [::Google::Apps::Chat::V1::ListSpaceEventsResponse]
|
1100
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1101
|
+
#
|
1102
|
+
# @return [::Google::Apps::Chat::V1::ListSpaceEventsResponse]
|
1103
|
+
# A result object deserialized from the server's reply
|
1104
|
+
def list_space_events request_pb, options = nil
|
1105
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1106
|
+
|
1107
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_space_events_request request_pb
|
1108
|
+
query_string_params = if query_string_params.any?
|
1109
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1110
|
+
else
|
1111
|
+
{}
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
response = @client_stub.make_http_request(
|
1115
|
+
verb,
|
1116
|
+
uri: uri,
|
1117
|
+
body: body || "",
|
1118
|
+
params: query_string_params,
|
1119
|
+
options: options
|
1120
|
+
)
|
1121
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1122
|
+
result = ::Google::Apps::Chat::V1::ListSpaceEventsResponse.decode_json response.body, ignore_unknown_fields: true
|
1123
|
+
|
1124
|
+
yield result, operation if block_given?
|
1125
|
+
result
|
1126
|
+
end
|
1127
|
+
|
1052
1128
|
##
|
1053
1129
|
# @private
|
1054
1130
|
#
|
@@ -1605,6 +1681,48 @@ module Google
|
|
1605
1681
|
)
|
1606
1682
|
transcoder.transcode request_pb
|
1607
1683
|
end
|
1684
|
+
|
1685
|
+
##
|
1686
|
+
# @private
|
1687
|
+
#
|
1688
|
+
# GRPC transcoding helper method for the get_space_event REST call
|
1689
|
+
#
|
1690
|
+
# @param request_pb [::Google::Apps::Chat::V1::GetSpaceEventRequest]
|
1691
|
+
# A request object representing the call parameters. Required.
|
1692
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1693
|
+
# Uri, Body, Query string parameters
|
1694
|
+
def self.transcode_get_space_event_request request_pb
|
1695
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1696
|
+
.with_bindings(
|
1697
|
+
uri_method: :get,
|
1698
|
+
uri_template: "/v1/{name}",
|
1699
|
+
matches: [
|
1700
|
+
["name", %r{^spaces/[^/]+/spaceEvents/[^/]+/?$}, false]
|
1701
|
+
]
|
1702
|
+
)
|
1703
|
+
transcoder.transcode request_pb
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
##
|
1707
|
+
# @private
|
1708
|
+
#
|
1709
|
+
# GRPC transcoding helper method for the list_space_events REST call
|
1710
|
+
#
|
1711
|
+
# @param request_pb [::Google::Apps::Chat::V1::ListSpaceEventsRequest]
|
1712
|
+
# A request object representing the call parameters. Required.
|
1713
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1714
|
+
# Uri, Body, Query string parameters
|
1715
|
+
def self.transcode_list_space_events_request request_pb
|
1716
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1717
|
+
.with_bindings(
|
1718
|
+
uri_method: :get,
|
1719
|
+
uri_template: "/v1/{parent}/spaceEvents",
|
1720
|
+
matches: [
|
1721
|
+
["parent", %r{^spaces/[^/]+/?$}, false]
|
1722
|
+
]
|
1723
|
+
)
|
1724
|
+
transcoder.transcode request_pb
|
1725
|
+
end
|
1608
1726
|
end
|
1609
1727
|
end
|
1610
1728
|
end
|
@@ -11,13 +11,14 @@ require 'google/chat/v1/membership_pb'
|
|
11
11
|
require 'google/chat/v1/message_pb'
|
12
12
|
require 'google/chat/v1/reaction_pb'
|
13
13
|
require 'google/chat/v1/space_pb'
|
14
|
+
require 'google/chat/v1/space_event_pb'
|
14
15
|
require 'google/chat/v1/space_read_state_pb'
|
15
16
|
require 'google/chat/v1/space_setup_pb'
|
16
17
|
require 'google/chat/v1/thread_read_state_pb'
|
17
18
|
require 'google/protobuf/empty_pb'
|
18
19
|
|
19
20
|
|
20
|
-
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\
|
21
|
+
descriptor_data = "\n!google/chat/v1/chat_service.proto\x12\x0egoogle.chat.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/chat/v1/attachment.proto\x1a\x1fgoogle/chat/v1/membership.proto\x1a\x1cgoogle/chat/v1/message.proto\x1a\x1dgoogle/chat/v1/reaction.proto\x1a\x1agoogle/chat/v1/space.proto\x1a google/chat/v1/space_event.proto\x1a%google/chat/v1/space_read_state.proto\x1a google/chat/v1/space_setup.proto\x1a&google/chat/v1/thread_read_state.proto\x1a\x1bgoogle/protobuf/empty.proto2\x9a)\n\x0b\x43hatService\x12\x9b\x01\n\rCreateMessage\x12$.google.chat.v1.CreateMessageRequest\x1a\x17.google.chat.v1.Message\"K\xda\x41\x19parent,message,message_id\x82\xd3\xe4\x93\x02)\"\x1e/v1/{parent=spaces/*}/messages:\x07message\x12\x8a\x01\n\x0cListMessages\x12#.google.chat.v1.ListMessagesRequest\x1a$.google.chat.v1.ListMessagesResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=spaces/*}/messages\x12\x92\x01\n\x0fListMemberships\x12&.google.chat.v1.ListMembershipsRequest\x1a\'.google.chat.v1.ListMembershipsResponse\".\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=spaces/*}/members\x12\x7f\n\rGetMembership\x12$.google.chat.v1.GetMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=spaces/*/members/*}\x12w\n\nGetMessage\x12!.google.chat.v1.GetMessageRequest\x1a\x17.google.chat.v1.Message\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=spaces/*/messages/*}\x12\xd1\x01\n\rUpdateMessage\x12$.google.chat.v1.UpdateMessageRequest\x1a\x17.google.chat.v1.Message\"\x80\x01\xda\x41\x13message,update_mask\x82\xd3\xe4\x93\x02\x64\x1a&/v1/{message.name=spaces/*/messages/*}:\x07messageZ12&/v1/{message.name=spaces/*/messages/*}:\x07message\x12|\n\rDeleteMessage\x12$.google.chat.v1.DeleteMessageRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=spaces/*/messages/*}\x12\x8e\x01\n\rGetAttachment\x12$.google.chat.v1.GetAttachmentRequest\x1a\x1a.google.chat.v1.Attachment\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=spaces/*/messages/*/attachments/*}\x12\x9a\x01\n\x10UploadAttachment\x12\'.google.chat.v1.UploadAttachmentRequest\x1a(.google.chat.v1.UploadAttachmentResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1/{parent=spaces/*}/attachments:upload:\x01*\x12j\n\nListSpaces\x12!.google.chat.v1.ListSpacesRequest\x1a\".google.chat.v1.ListSpacesResponse\"\x15\xda\x41\x00\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/spaces\x12\x66\n\x08GetSpace\x12\x1f.google.chat.v1.GetSpaceRequest\x1a\x15.google.chat.v1.Space\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/{name=spaces/*}\x12k\n\x0b\x43reateSpace\x12\".google.chat.v1.CreateSpaceRequest\x1a\x15.google.chat.v1.Space\"!\xda\x41\x05space\x82\xd3\xe4\x93\x02\x13\"\n/v1/spaces:\x05space\x12\x63\n\nSetUpSpace\x12!.google.chat.v1.SetUpSpaceRequest\x1a\x15.google.chat.v1.Space\"\x1b\x82\xd3\xe4\x93\x02\x15\"\x10/v1/spaces:setup:\x01*\x12\x86\x01\n\x0bUpdateSpace\x12\".google.chat.v1.UpdateSpaceRequest\x1a\x15.google.chat.v1.Space\"<\xda\x41\x11space,update_mask\x82\xd3\xe4\x93\x02\"2\x19/v1/{space.name=spaces/*}:\x05space\x12m\n\x0b\x44\x65leteSpace\x12\".google.chat.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"\"\xda\x41\x04name\x82\xd3\xe4\x93\x02\x15*\x13/v1/{name=spaces/*}\x12\x9d\x01\n\x13\x43ompleteImportSpace\x12*.google.chat.v1.CompleteImportSpaceRequest\x1a+.google.chat.v1.CompleteImportSpaceResponse\"-\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=spaces/*}:completeImport:\x01*\x12z\n\x11\x46indDirectMessage\x12(.google.chat.v1.FindDirectMessageRequest\x1a\x15.google.chat.v1.Space\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/spaces:findDirectMessage\x12\x9e\x01\n\x10\x43reateMembership\x12\'.google.chat.v1.CreateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"E\xda\x41\x11parent,membership\x82\xd3\xe4\x93\x02+\"\x1d/v1/{parent=spaces/*}/members:\nmembership\x12\xae\x01\n\x10UpdateMembership\x12\'.google.chat.v1.UpdateMembershipRequest\x1a\x1a.google.chat.v1.Membership\"U\xda\x41\x16membership,update_mask\x82\xd3\xe4\x93\x02\x36\x32(/v1/{membership.name=spaces/*/members/*}:\nmembership\x12\x85\x01\n\x10\x44\x65leteMembership\x12\'.google.chat.v1.DeleteMembershipRequest\x1a\x1a.google.chat.v1.Membership\",\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=spaces/*/members/*}\x12\xa1\x01\n\x0e\x43reateReaction\x12%.google.chat.v1.CreateReactionRequest\x1a\x18.google.chat.v1.Reaction\"N\xda\x41\x0fparent,reaction\x82\xd3\xe4\x93\x02\x36\"*/v1/{parent=spaces/*/messages/*}/reactions:\x08reaction\x12\x99\x01\n\rListReactions\x12$.google.chat.v1.ListReactionsRequest\x1a%.google.chat.v1.ListReactionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=spaces/*/messages/*}/reactions\x12\x8a\x01\n\x0e\x44\x65leteReaction\x12%.google.chat.v1.DeleteReactionRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1/{name=spaces/*/messages/*/reactions/*}\x12\x98\x01\n\x11GetSpaceReadState\x12(.google.chat.v1.GetSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1/{name=users/*/spaces/*/spaceReadState}\x12\xd9\x01\n\x14UpdateSpaceReadState\x12+.google.chat.v1.UpdateSpaceReadStateRequest\x1a\x1e.google.chat.v1.SpaceReadState\"t\xda\x41\x1cspace_read_state,update_mask\x82\xd3\xe4\x93\x02O2;/v1/{space_read_state.name=users/*/spaces/*/spaceReadState}:\x10space_read_state\x12\xa6\x01\n\x12GetThreadReadState\x12).google.chat.v1.GetThreadReadStateRequest\x1a\x1f.google.chat.v1.ThreadReadState\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=users/*/spaces/*/threads/*/threadReadState}\x12\x83\x01\n\rGetSpaceEvent\x12$.google.chat.v1.GetSpaceEventRequest\x1a\x1a.google.chat.v1.SpaceEvent\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=spaces/*/spaceEvents/*}\x12\x9d\x01\n\x0fListSpaceEvents\x12&.google.chat.v1.ListSpaceEventsRequest\x1a\'.google.chat.v1.ListSpaceEventsResponse\"9\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=spaces/*}/spaceEvents\x1a\xa9\t\xca\x41\x13\x63hat.googleapis.com\xd2\x41\x8f\thttps://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonlyB\xa9\x01\n\x12\x63om.google.chat.v1B\x10\x43hatServiceProtoP\x01Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb\xa2\x02\x0b\x44YNAPIProto\xaa\x02\x13Google.Apps.Chat.V1\xca\x02\x13Google\\Apps\\Chat\\V1\xea\x02\x16Google::Apps::Chat::V1b\x06proto3"
|
21
22
|
|
22
23
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
24
|
|
@@ -165,6 +165,9 @@ module Google
|
|
165
165
|
# Lists spaces visible to the caller or authenticated user. Group chats
|
166
166
|
# and DMs aren't listed until the first message is sent.
|
167
167
|
#
|
168
|
+
# To list all named spaces by Google Workspace organization, use the
|
169
|
+
# [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search)
|
170
|
+
# method using Workspace administrator privileges instead.
|
168
171
|
rpc :ListSpaces, ::Google::Apps::Chat::V1::ListSpacesRequest, ::Google::Apps::Chat::V1::ListSpacesResponse
|
169
172
|
# Returns details about a space. For an example, see
|
170
173
|
# [Get details about a
|
@@ -380,6 +383,36 @@ module Google
|
|
380
383
|
# Requires [user
|
381
384
|
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
382
385
|
rpc :GetThreadReadState, ::Google::Apps::Chat::V1::GetThreadReadStateRequest, ::Google::Apps::Chat::V1::ThreadReadState
|
386
|
+
# Returns an event from a Google Chat space. The [event
|
387
|
+
# payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
|
388
|
+
# contains the most recent version of the resource that changed. For example,
|
389
|
+
# if you request an event about a new message but the message was later
|
390
|
+
# updated, the server returns the updated `Message` resource in the event
|
391
|
+
# payload.
|
392
|
+
#
|
393
|
+
# Requires [user
|
394
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
395
|
+
# To get an event, the authenticated user must be a member of the space.
|
396
|
+
#
|
397
|
+
# For an example, see [Get details about an
|
398
|
+
# event from a Google Chat
|
399
|
+
# space](https://developers.google.com/workspace/chat/get-space-event).
|
400
|
+
rpc :GetSpaceEvent, ::Google::Apps::Chat::V1::GetSpaceEventRequest, ::Google::Apps::Chat::V1::SpaceEvent
|
401
|
+
# Lists events from a Google Chat space. For each event, the
|
402
|
+
# [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload)
|
403
|
+
# contains the most recent version of the Chat resource. For example, if you
|
404
|
+
# list events about new space members, the server returns `Membership`
|
405
|
+
# resources that contain the latest membership details. If new members were
|
406
|
+
# removed during the requested period, the event payload contains an empty
|
407
|
+
# `Membership` resource.
|
408
|
+
#
|
409
|
+
# Requires [user
|
410
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
|
411
|
+
# To list events, the authenticated user must be a member of the space.
|
412
|
+
#
|
413
|
+
# For an example, see [List events from a Google Chat
|
414
|
+
# space](https://developers.google.com/workspace/chat/list-space-events).
|
415
|
+
rpc :ListSpaceEvents, ::Google::Apps::Chat::V1::ListSpaceEventsRequest, ::Google::Apps::Chat::V1::ListSpaceEventsResponse
|
383
416
|
end
|
384
417
|
|
385
418
|
Stub = Service.rpc_stub_class
|