google-apis-chat_v1 0.151.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3a2804cf8bc228df47a3eb95972b1a435f2ba5cf41827e970b2765de7380b3d
|
|
4
|
+
data.tar.gz: 31e1d14982cc8fc2af1b6906319500428cdeecadf87b479d6fafd5cf01837b2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b29991469d471f4fe2f3b066e00edcfeeed8a67138a2c9f6dd28bc8493dd371be55b0705e3755cbfc0e0e09e073042898ac0f332154cee9db2b52be95e0db30
|
|
7
|
+
data.tar.gz: 989dd4ed8feb5e2edfd04af1acf591a3cc7ae6de518039a2d9a746dd183801d40c518c089e163ad7d3fd334c5944e12723733b944152ab7774483608c152f4c4
|
data/CHANGELOG.md
CHANGED
|
@@ -5555,6 +5555,11 @@ module Google
|
|
|
5555
5555
|
# @return [String]
|
|
5556
5556
|
attr_accessor :last_update_time
|
|
5557
5557
|
|
|
5558
|
+
# Optional. Specifies how the server interprets the message `text` field content.
|
|
5559
|
+
# Corresponds to the JSON property `markupSyntax`
|
|
5560
|
+
# @return [String]
|
|
5561
|
+
attr_accessor :markup_syntax
|
|
5562
|
+
|
|
5558
5563
|
# A matched URL in a Chat message. Chat apps can preview matched URLs. For more
|
|
5559
5564
|
# information, see [Preview links](https://developers.google.com/chat/how-tos/
|
|
5560
5565
|
# preview-links).
|
|
@@ -5669,6 +5674,7 @@ module Google
|
|
|
5669
5674
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
|
5670
5675
|
@formatted_text = args[:formatted_text] if args.key?(:formatted_text)
|
|
5671
5676
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
|
5677
|
+
@markup_syntax = args[:markup_syntax] if args.key?(:markup_syntax)
|
|
5672
5678
|
@matched_url = args[:matched_url] if args.key?(:matched_url)
|
|
5673
5679
|
@name = args[:name] if args.key?(:name)
|
|
5674
5680
|
@private_message_viewer = args[:private_message_viewer] if args.key?(:private_message_viewer)
|
|
@@ -6338,6 +6344,229 @@ module Google
|
|
|
6338
6344
|
end
|
|
6339
6345
|
end
|
|
6340
6346
|
|
|
6347
|
+
# A single result item from a message search.
|
|
6348
|
+
class SearchMessageResult
|
|
6349
|
+
include Google::Apis::Core::Hashable
|
|
6350
|
+
|
|
6351
|
+
# A message in a Google Chat space.
|
|
6352
|
+
# Corresponds to the JSON property `message`
|
|
6353
|
+
# @return [Google::Apis::ChatV1::Message]
|
|
6354
|
+
attr_accessor :message
|
|
6355
|
+
|
|
6356
|
+
# Indicates if the matched message is read by the calling user. Only returned if
|
|
6357
|
+
# the request view is `SEARCH_MESSAGES_VIEW_FULL` and the calling credentials
|
|
6358
|
+
# include one of the following [authorization scopes](https://developers.google.
|
|
6359
|
+
# com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.
|
|
6360
|
+
# googleapis.com/auth/chat.users.readstate.readonly` - `https://www.googleapis.
|
|
6361
|
+
# com/auth/chat.users.readstate`
|
|
6362
|
+
# Corresponds to the JSON property `read`
|
|
6363
|
+
# @return [Boolean]
|
|
6364
|
+
attr_accessor :read
|
|
6365
|
+
alias_method :read?, :read
|
|
6366
|
+
|
|
6367
|
+
# The mute setting of the calling user for the space where the message is posted.
|
|
6368
|
+
# The caller app can use this information to decide how to process the message
|
|
6369
|
+
# depending on whether the space is muted for the user or not. Only returned if
|
|
6370
|
+
# the request view is `SEARCH_MESSAGES_VIEW_FULL` and the calling credentials
|
|
6371
|
+
# include the following [authorization scope](https://developers.google.com/
|
|
6372
|
+
# workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.
|
|
6373
|
+
# googleapis.com/auth/chat.users.spacesettings`
|
|
6374
|
+
# Corresponds to the JSON property `spaceMuteSetting`
|
|
6375
|
+
# @return [String]
|
|
6376
|
+
attr_accessor :space_mute_setting
|
|
6377
|
+
|
|
6378
|
+
def initialize(**args)
|
|
6379
|
+
update!(**args)
|
|
6380
|
+
end
|
|
6381
|
+
|
|
6382
|
+
# Update properties of this object
|
|
6383
|
+
def update!(**args)
|
|
6384
|
+
@message = args[:message] if args.key?(:message)
|
|
6385
|
+
@read = args[:read] if args.key?(:read)
|
|
6386
|
+
@space_mute_setting = args[:space_mute_setting] if args.key?(:space_mute_setting)
|
|
6387
|
+
end
|
|
6388
|
+
end
|
|
6389
|
+
|
|
6390
|
+
# Request message for searching messages.
|
|
6391
|
+
class SearchMessagesRequest
|
|
6392
|
+
include Google::Apis::Core::Hashable
|
|
6393
|
+
|
|
6394
|
+
# Required. A search query. The query can specify one or more search keywords,
|
|
6395
|
+
# which are used to filter the results, You can also filter the results using
|
|
6396
|
+
# the following message fields: - `create_time`: Accepts a timestamp in [RFC-
|
|
6397
|
+
# 3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
|
|
6398
|
+
# comparison operators are: `<` and `>=`. - `sender.name`: The resource name of
|
|
6399
|
+
# the sender (`users/`user``). Only supports `=`. You can use the e-mail as an
|
|
6400
|
+
# alias for ``user``. For example, `users/example@gmail.com`, where `example@
|
|
6401
|
+
# gmail.com` is the e-mail of the Google Chat user. - `space.name`: The resource
|
|
6402
|
+
# name of the space where the message is posted. (`spaces/`space``). Only
|
|
6403
|
+
# supports `=`. If this filter is not set, the search is performed across all
|
|
6404
|
+
# direct messages and spaces the user has access to as a space member. - `space.
|
|
6405
|
+
# display_name`: Supports the operator `:` (has) and filters spaces based on a
|
|
6406
|
+
# partial match of their display name. Results are limited to the top five space
|
|
6407
|
+
# matches. For example, `space.display_name:Project` searches for messages in
|
|
6408
|
+
# the top five spaces that contain the word "Project" in their display names. - `
|
|
6409
|
+
# attachment`: Supports the operator `:*` (has any) to check for the presence of
|
|
6410
|
+
# attachments. If `attachment:*` is specified, only messages that have at least
|
|
6411
|
+
# one attachment are returned. - `annotations.user_mentions.user.name`: The
|
|
6412
|
+
# resource name of the mentioned user (`users/`user``). Only supports `:` (has).
|
|
6413
|
+
# For example: `annotations.user_mentions.user.name:"users/1234567890"` returns
|
|
6414
|
+
# only messages that contain a mention to the specified user. Alternatively, the
|
|
6415
|
+
# alias `me` can be used to filter for messages that mention the caller user,
|
|
6416
|
+
# for example: `annotations.user_mentions.user.name:users/me`. You can also use
|
|
6417
|
+
# the e-mail as an alias for ``user``, for example, `users/example@gmail.com`.
|
|
6418
|
+
# For advanced filtering, the following functions are also available: - `
|
|
6419
|
+
# has_link()`: Returns only messages that have at least one hyperlink in the
|
|
6420
|
+
# message text. - `is_unread()`: Filters out messages that have been read by the
|
|
6421
|
+
# calling user. Using the `space.display_name` filter requires that the calling
|
|
6422
|
+
# credentials include one of the following [authorization scopes](https://
|
|
6423
|
+
# developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
|
|
6424
|
+
# `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.
|
|
6425
|
+
# googleapis.com/auth/chat.spaces` Using the `is_unread()` filter requires that
|
|
6426
|
+
# the calling credentials include one of the following [authorization scopes](
|
|
6427
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-
|
|
6428
|
+
# scopes): - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - `
|
|
6429
|
+
# https://www.googleapis.com/auth/chat.users.readstate` Across different fields,
|
|
6430
|
+
# only `AND` operators are supported. A valid example is `sender.name = "users/
|
|
6431
|
+
# 1234567890" AND is_unread()`. The word `AND` is optional and is implied if
|
|
6432
|
+
# omitted. For example, `sender.name = "users/1234567890" is_unread()` is valid
|
|
6433
|
+
# and is equivalent to the previous example. An invalid example is `sender.name =
|
|
6434
|
+
# "users/1234567890" OR is_unread()` because `OR` is not supported between
|
|
6435
|
+
# different fields. Among the same field: - `create_time` supports only `AND`,
|
|
6436
|
+
# and can only be used to represent an interval, such as `create_time >= "2022-
|
|
6437
|
+
# 01-01T00:00:00+00:00" AND create_time < "2023-01-01T00:00:00+00:00"`. - `
|
|
6438
|
+
# sender.name` supports only the `OR` operator, for example: `sender.name = "
|
|
6439
|
+
# users/1234567890" OR sender.name = "users/0987654321"`. - `space.name`
|
|
6440
|
+
# supports only the `OR` operator, for example: `space.name = "spaces/ABCDEFGH"
|
|
6441
|
+
# OR space.name = "spaces/QWERTYUI"`. - `space.display_name` supports the
|
|
6442
|
+
# operators `AND` and `OR`, but not a mix of both. For example: `space.
|
|
6443
|
+
# display_name:Project AND space.display_name:Tasks` returns messages that are
|
|
6444
|
+
# in spaces with display names containing both `Project` and `Tasks`, whereas `
|
|
6445
|
+
# space.display_name:Project OR space.display_name:Tasks` returns messages that
|
|
6446
|
+
# are in spaces with display names containing either `Project` or `Tasks` or
|
|
6447
|
+
# both. - `annotations.user_mentions.user.name` supports the operators `AND` and
|
|
6448
|
+
# `OR`, but not a mix of both. For example: `annotations.user_mentions.user.name:
|
|
6449
|
+
# "users/1234567890" AND annotations.user_mentions.user.name:"users/0987654321"`
|
|
6450
|
+
# returns only messages that mentions both users, whereas `annotations.
|
|
6451
|
+
# user_mentions.user.name:"users/1234567890" OR annotations.user_mentions.user.
|
|
6452
|
+
# name:"users/0987654321"` returns messages that mention either user or both.
|
|
6453
|
+
# Parentheses are required to disambiguate operator precedence when combining `
|
|
6454
|
+
# AND` and `OR` operators in the same query. For example: `(sender.name="users/
|
|
6455
|
+
# me" OR sender.name="users/123456") AND is_unread()`. Otherwise, parentheses
|
|
6456
|
+
# are optional. The following example queries are valid: ``` "Pending reports"
|
|
6457
|
+
# AND create_time >= "2023-01-01T00:00:00Z" sender.name = "users/example@gmail.
|
|
6458
|
+
# com" annotations.user_mentions.user.name:"users/0987654321" attachment:* AND
|
|
6459
|
+
# space.name = "spaces/ABCDEFGH" tasks AND is_unread() AND sender.name = "users/
|
|
6460
|
+
# 1234567890" "things to do" "urgent" (sender.name = "users/1234567890") AND (
|
|
6461
|
+
# create_time < "2023-05-01T00:00:00Z") tasks AND space.name = "spaces/ABCDEFGH"
|
|
6462
|
+
# AND has_link() "project one" is_unread() space.display_name:Project tasks ```
|
|
6463
|
+
# The maximum query length is 1,000 characters. Invalid queries are rejected by
|
|
6464
|
+
# the server with an `INVALID_ARGUMENT` error.
|
|
6465
|
+
# Corresponds to the JSON property `filter`
|
|
6466
|
+
# @return [String]
|
|
6467
|
+
attr_accessor :filter
|
|
6468
|
+
|
|
6469
|
+
# Optional. Specifies the desired output syntax for the Chat message `
|
|
6470
|
+
# formatted_text` field.
|
|
6471
|
+
# Corresponds to the JSON property `markupSyntax`
|
|
6472
|
+
# @return [String]
|
|
6473
|
+
attr_accessor :markup_syntax
|
|
6474
|
+
|
|
6475
|
+
# Optional. How the results list is ordered. Supported attributes to order by
|
|
6476
|
+
# are: - `create_time`: Sorts the results by the time of the message creation.
|
|
6477
|
+
# Default value. - `relevance`: Sorts the results by relevance. [Developer
|
|
6478
|
+
# Preview](https://developers.google.com/workspace/preview). The default
|
|
6479
|
+
# ordering is `create_time desc`. Only a single order per query (`create_time`
|
|
6480
|
+
# or `relevance`) is supported. Only descending order (`desc`) is supported, and
|
|
6481
|
+
# it must be specified after the order attribute.
|
|
6482
|
+
# Corresponds to the JSON property `orderBy`
|
|
6483
|
+
# @return [String]
|
|
6484
|
+
attr_accessor :order_by
|
|
6485
|
+
|
|
6486
|
+
# Optional. The maximum number of results to return. The service may return
|
|
6487
|
+
# fewer than this value. If unspecified, at most 25 are returned. The maximum
|
|
6488
|
+
# value is 100. If you use a value more than 100, it's automatically changed to
|
|
6489
|
+
# 100.
|
|
6490
|
+
# Corresponds to the JSON property `pageSize`
|
|
6491
|
+
# @return [Fixnum]
|
|
6492
|
+
attr_accessor :page_size
|
|
6493
|
+
|
|
6494
|
+
# Optional. A token, received from the previous search messages call. Provide
|
|
6495
|
+
# this parameter to retrieve the subsequent page. When paginating, all other
|
|
6496
|
+
# parameters provided should match the call that provided the page token.
|
|
6497
|
+
# Passing different values to the other parameters might lead to unexpected
|
|
6498
|
+
# results.
|
|
6499
|
+
# Corresponds to the JSON property `pageToken`
|
|
6500
|
+
# @return [String]
|
|
6501
|
+
attr_accessor :page_token
|
|
6502
|
+
|
|
6503
|
+
# Optional. Specifies what kind of search results view to return. The default is
|
|
6504
|
+
# `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
6505
|
+
# Corresponds to the JSON property `view`
|
|
6506
|
+
# @return [String]
|
|
6507
|
+
attr_accessor :view
|
|
6508
|
+
|
|
6509
|
+
def initialize(**args)
|
|
6510
|
+
update!(**args)
|
|
6511
|
+
end
|
|
6512
|
+
|
|
6513
|
+
# Update properties of this object
|
|
6514
|
+
def update!(**args)
|
|
6515
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
6516
|
+
@markup_syntax = args[:markup_syntax] if args.key?(:markup_syntax)
|
|
6517
|
+
@order_by = args[:order_by] if args.key?(:order_by)
|
|
6518
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
|
6519
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
|
6520
|
+
@view = args[:view] if args.key?(:view)
|
|
6521
|
+
end
|
|
6522
|
+
end
|
|
6523
|
+
|
|
6524
|
+
# Response message for searching messages.
|
|
6525
|
+
class SearchMessagesResponse
|
|
6526
|
+
include Google::Apis::Core::Hashable
|
|
6527
|
+
|
|
6528
|
+
# A token that can be used to retrieve the next page. If this field is empty,
|
|
6529
|
+
# there are no subsequent pages.
|
|
6530
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
6531
|
+
# @return [String]
|
|
6532
|
+
attr_accessor :next_page_token
|
|
6533
|
+
|
|
6534
|
+
# The list of search results that matched the query.
|
|
6535
|
+
# Corresponds to the JSON property `results`
|
|
6536
|
+
# @return [Array<Google::Apis::ChatV1::SearchMessageResult>]
|
|
6537
|
+
attr_accessor :results
|
|
6538
|
+
|
|
6539
|
+
def initialize(**args)
|
|
6540
|
+
update!(**args)
|
|
6541
|
+
end
|
|
6542
|
+
|
|
6543
|
+
# Update properties of this object
|
|
6544
|
+
def update!(**args)
|
|
6545
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
6546
|
+
@results = args[:results] if args.key?(:results)
|
|
6547
|
+
end
|
|
6548
|
+
end
|
|
6549
|
+
|
|
6550
|
+
# A single result item from a space search.
|
|
6551
|
+
class SearchSpaceResult
|
|
6552
|
+
include Google::Apis::Core::Hashable
|
|
6553
|
+
|
|
6554
|
+
# A space in Google Chat. Spaces are conversations between two or more users or
|
|
6555
|
+
# 1:1 messages between a user and a Chat app.
|
|
6556
|
+
# Corresponds to the JSON property `space`
|
|
6557
|
+
# @return [Google::Apis::ChatV1::Space]
|
|
6558
|
+
attr_accessor :space
|
|
6559
|
+
|
|
6560
|
+
def initialize(**args)
|
|
6561
|
+
update!(**args)
|
|
6562
|
+
end
|
|
6563
|
+
|
|
6564
|
+
# Update properties of this object
|
|
6565
|
+
def update!(**args)
|
|
6566
|
+
@space = args[:space] if args.key?(:space)
|
|
6567
|
+
end
|
|
6568
|
+
end
|
|
6569
|
+
|
|
6341
6570
|
# Response with a list of spaces corresponding to the search spaces request.
|
|
6342
6571
|
class SearchSpacesResponse
|
|
6343
6572
|
include Google::Apis::Core::Hashable
|
|
@@ -6348,6 +6577,11 @@ module Google
|
|
|
6348
6577
|
# @return [String]
|
|
6349
6578
|
attr_accessor :next_page_token
|
|
6350
6579
|
|
|
6580
|
+
# Output only. The list of search results that matched the query.
|
|
6581
|
+
# Corresponds to the JSON property `results`
|
|
6582
|
+
# @return [Array<Google::Apis::ChatV1::SearchSpaceResult>]
|
|
6583
|
+
attr_accessor :results
|
|
6584
|
+
|
|
6351
6585
|
# Deprecated: Please use the new `results` field instead. A page of the
|
|
6352
6586
|
# requested spaces. This field will be populated only when `useAdminAccess` is
|
|
6353
6587
|
# set to `true` and deprecated in favor of the new `results` field.
|
|
@@ -6368,6 +6602,7 @@ module Google
|
|
|
6368
6602
|
# Update properties of this object
|
|
6369
6603
|
def update!(**args)
|
|
6370
6604
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
6605
|
+
@results = args[:results] if args.key?(:results)
|
|
6371
6606
|
@spaces = args[:spaces] if args.key?(:spaces)
|
|
6372
6607
|
@total_size = args[:total_size] if args.key?(:total_size)
|
|
6373
6608
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module ChatV1
|
|
18
18
|
# Version of the google-apis-chat_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.152.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260728"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -922,6 +922,30 @@ module Google
|
|
|
922
922
|
include Google::Apis::Core::JsonObjectSupport
|
|
923
923
|
end
|
|
924
924
|
|
|
925
|
+
class SearchMessageResult
|
|
926
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
927
|
+
|
|
928
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
class SearchMessagesRequest
|
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
933
|
+
|
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
class SearchMessagesResponse
|
|
938
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
939
|
+
|
|
940
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
class SearchSpaceResult
|
|
944
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
945
|
+
|
|
946
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
947
|
+
end
|
|
948
|
+
|
|
925
949
|
class SearchSpacesResponse
|
|
926
950
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
927
951
|
|
|
@@ -2455,6 +2479,7 @@ module Google
|
|
|
2455
2479
|
property :fallback_text, as: 'fallbackText'
|
|
2456
2480
|
property :formatted_text, as: 'formattedText'
|
|
2457
2481
|
property :last_update_time, as: 'lastUpdateTime'
|
|
2482
|
+
property :markup_syntax, as: 'markupSyntax'
|
|
2458
2483
|
property :matched_url, as: 'matchedUrl', class: Google::Apis::ChatV1::MatchedUrl, decorator: Google::Apis::ChatV1::MatchedUrl::Representation
|
|
2459
2484
|
|
|
2460
2485
|
property :name, as: 'name'
|
|
@@ -2696,10 +2721,51 @@ module Google
|
|
|
2696
2721
|
end
|
|
2697
2722
|
end
|
|
2698
2723
|
|
|
2724
|
+
class SearchMessageResult
|
|
2725
|
+
# @private
|
|
2726
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2727
|
+
property :message, as: 'message', class: Google::Apis::ChatV1::Message, decorator: Google::Apis::ChatV1::Message::Representation
|
|
2728
|
+
|
|
2729
|
+
property :read, as: 'read'
|
|
2730
|
+
property :space_mute_setting, as: 'spaceMuteSetting'
|
|
2731
|
+
end
|
|
2732
|
+
end
|
|
2733
|
+
|
|
2734
|
+
class SearchMessagesRequest
|
|
2735
|
+
# @private
|
|
2736
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2737
|
+
property :filter, as: 'filter'
|
|
2738
|
+
property :markup_syntax, as: 'markupSyntax'
|
|
2739
|
+
property :order_by, as: 'orderBy'
|
|
2740
|
+
property :page_size, as: 'pageSize'
|
|
2741
|
+
property :page_token, as: 'pageToken'
|
|
2742
|
+
property :view, as: 'view'
|
|
2743
|
+
end
|
|
2744
|
+
end
|
|
2745
|
+
|
|
2746
|
+
class SearchMessagesResponse
|
|
2747
|
+
# @private
|
|
2748
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2749
|
+
property :next_page_token, as: 'nextPageToken'
|
|
2750
|
+
collection :results, as: 'results', class: Google::Apis::ChatV1::SearchMessageResult, decorator: Google::Apis::ChatV1::SearchMessageResult::Representation
|
|
2751
|
+
|
|
2752
|
+
end
|
|
2753
|
+
end
|
|
2754
|
+
|
|
2755
|
+
class SearchSpaceResult
|
|
2756
|
+
# @private
|
|
2757
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2758
|
+
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
|
2759
|
+
|
|
2760
|
+
end
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2699
2763
|
class SearchSpacesResponse
|
|
2700
2764
|
# @private
|
|
2701
2765
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2702
2766
|
property :next_page_token, as: 'nextPageToken'
|
|
2767
|
+
collection :results, as: 'results', class: Google::Apis::ChatV1::SearchSpaceResult, decorator: Google::Apis::ChatV1::SearchSpaceResult::Representation
|
|
2768
|
+
|
|
2703
2769
|
collection :spaces, as: 'spaces', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
|
2704
2770
|
|
|
2705
2771
|
property :total_size, as: 'totalSize'
|
|
@@ -850,7 +850,6 @@ module Google
|
|
|
850
850
|
# chat/search-manage-admin). When `use_admin_access` is set to `false`, the
|
|
851
851
|
# results are limited to spaces where the calling user is a joined member. To
|
|
852
852
|
# search with administrator privileges, set `use_admin_access` to `true`.
|
|
853
|
-
# Setting `use_admin_access` to `false` is available under Developer Preview.
|
|
854
853
|
# Supports the following types of [authentication](https://developers.google.com/
|
|
855
854
|
# workspace/chat/authenticate-authorize): - [User authentication](https://
|
|
856
855
|
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) with
|
|
@@ -938,9 +937,7 @@ module Google
|
|
|
938
937
|
# [manage chat and spaces conversations privilege](https://support.google.com/a/
|
|
939
938
|
# answer/13369245). Requires either the `chat.admin.spaces.readonly` or `chat.
|
|
940
939
|
# admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/
|
|
941
|
-
# authenticate-authorize#chat-api-scopes).
|
|
942
|
-
# is available under Developer Preview. [Developer Preview](https://developers.
|
|
943
|
-
# google.com/workspace/preview).
|
|
940
|
+
# authenticate-authorize#chat-api-scopes).
|
|
944
941
|
# @param [String] fields
|
|
945
942
|
# Selector specifying which fields to include in a partial response.
|
|
946
943
|
# @param [String] quota_user
|
|
@@ -1574,6 +1571,9 @@ module Google
|
|
|
1574
1571
|
# from the `clientAssignedMessageId` field for ``message``. For details, see [
|
|
1575
1572
|
# Name a message] (https://developers.google.com/workspace/chat/create-messages#
|
|
1576
1573
|
# name_a_created_message).
|
|
1574
|
+
# @param [String] markup_syntax
|
|
1575
|
+
# Optional. Specifies the desired output syntax for the Chat message `
|
|
1576
|
+
# formatted_text` field.
|
|
1577
1577
|
# @param [String] fields
|
|
1578
1578
|
# Selector specifying which fields to include in a partial response.
|
|
1579
1579
|
# @param [String] quota_user
|
|
@@ -1591,11 +1591,12 @@ module Google
|
|
|
1591
1591
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1592
1592
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1593
1593
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1594
|
-
def get_space_message(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1594
|
+
def get_space_message(name, markup_syntax: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1595
1595
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1596
1596
|
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
1597
1597
|
command.response_class = Google::Apis::ChatV1::Message
|
|
1598
1598
|
command.params['name'] = name unless name.nil?
|
|
1599
|
+
command.query['markupSyntax'] = markup_syntax unless markup_syntax.nil?
|
|
1599
1600
|
command.query['fields'] = fields unless fields.nil?
|
|
1600
1601
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1601
1602
|
execute_or_queue_command(command, &block)
|
|
@@ -1640,6 +1641,9 @@ module Google
|
|
|
1640
1641
|
# 01-01T00:00:00+00:00" AND thread.name = spaces/AAAAAAAAAAA/threads/123 thread.
|
|
1641
1642
|
# name = spaces/AAAAAAAAAAA/threads/123 ``` Invalid queries are rejected by the
|
|
1642
1643
|
# server with an `INVALID_ARGUMENT` error.
|
|
1644
|
+
# @param [String] markup_syntax
|
|
1645
|
+
# Optional. Specifies the desired output syntax for the Chat message `
|
|
1646
|
+
# formatted_text` field.
|
|
1643
1647
|
# @param [String] order_by
|
|
1644
1648
|
# Optional. How the list of messages is ordered. Specify a value to order by an
|
|
1645
1649
|
# ordering operation. Valid ordering operation values are as follows: - `ASC`
|
|
@@ -1677,12 +1681,13 @@ module Google
|
|
|
1677
1681
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1678
1682
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1679
1683
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1680
|
-
def list_space_messages(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1684
|
+
def list_space_messages(parent, filter: nil, markup_syntax: nil, order_by: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1681
1685
|
command = make_simple_command(:get, 'v1/{+parent}/messages', options)
|
|
1682
1686
|
command.response_representation = Google::Apis::ChatV1::ListMessagesResponse::Representation
|
|
1683
1687
|
command.response_class = Google::Apis::ChatV1::ListMessagesResponse
|
|
1684
1688
|
command.params['parent'] = parent unless parent.nil?
|
|
1685
1689
|
command.query['filter'] = filter unless filter.nil?
|
|
1690
|
+
command.query['markupSyntax'] = markup_syntax unless markup_syntax.nil?
|
|
1686
1691
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1687
1692
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1688
1693
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1760,6 +1765,58 @@ module Google
|
|
|
1760
1765
|
execute_or_queue_command(command, &block)
|
|
1761
1766
|
end
|
|
1762
1767
|
|
|
1768
|
+
# Searches for messages in Google Chat that the calling user has access to.
|
|
1769
|
+
# Returns a list of messages matching the search criteria. To search across all
|
|
1770
|
+
# spaces the user has access to, set `parent` to `spaces/-`. Using any other
|
|
1771
|
+
# value for `parent` results in an `INVALID_ARGUMENT` error. The returned
|
|
1772
|
+
# messages have their `name` field populated with the full resource name, which
|
|
1773
|
+
# includes the specific `space` in which the message resides. This API doesn't
|
|
1774
|
+
# return all message types. The types of messages listed below aren't included
|
|
1775
|
+
# in the response. Use ListMessages to list all messages. - Private Messages
|
|
1776
|
+
# that are visible to the authenticated user. - Messages posted by Chat apps in
|
|
1777
|
+
# spaces or group chats. - Messages in a Chat app DM. - Messages from blocked
|
|
1778
|
+
# users. - Messages in spaces that the caller has muted. Requires [user
|
|
1779
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
|
1780
|
+
# authorize-chat-user) with one of the following [authorization scopes](https://
|
|
1781
|
+
# developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
|
|
1782
|
+
# `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.
|
|
1783
|
+
# googleapis.com/auth/chat.messages`
|
|
1784
|
+
# @param [String] parent
|
|
1785
|
+
# Required. The resource name of the space to search within. To search across
|
|
1786
|
+
# all spaces the user has access to, set this field to `spaces/-`. Using any
|
|
1787
|
+
# other value for `parent` results in an `INVALID_ARGUMENT` error. To limit the
|
|
1788
|
+
# search to one or more spaces, use `space.name` or `space.display_name` in the `
|
|
1789
|
+
# filter`.
|
|
1790
|
+
# @param [Google::Apis::ChatV1::SearchMessagesRequest] search_messages_request_object
|
|
1791
|
+
# @param [String] fields
|
|
1792
|
+
# Selector specifying which fields to include in a partial response.
|
|
1793
|
+
# @param [String] quota_user
|
|
1794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1796
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1797
|
+
# Request-specific options
|
|
1798
|
+
#
|
|
1799
|
+
# @yield [result, err] Result & error if block supplied
|
|
1800
|
+
# @yieldparam result [Google::Apis::ChatV1::SearchMessagesResponse] parsed result object
|
|
1801
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1802
|
+
#
|
|
1803
|
+
# @return [Google::Apis::ChatV1::SearchMessagesResponse]
|
|
1804
|
+
#
|
|
1805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1808
|
+
def search_messages(parent, search_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1809
|
+
command = make_simple_command(:post, 'v1/{+parent}/messages:search', options)
|
|
1810
|
+
command.request_representation = Google::Apis::ChatV1::SearchMessagesRequest::Representation
|
|
1811
|
+
command.request_object = search_messages_request_object
|
|
1812
|
+
command.response_representation = Google::Apis::ChatV1::SearchMessagesResponse::Representation
|
|
1813
|
+
command.response_class = Google::Apis::ChatV1::SearchMessagesResponse
|
|
1814
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1815
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1817
|
+
execute_or_queue_command(command, &block)
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1763
1820
|
# Updates a message. There's a difference between the `patch` and `update`
|
|
1764
1821
|
# methods. The `patch` method uses a `patch` request while the `update` method
|
|
1765
1822
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
data/lib/google/apis/chat_v1.rb
CHANGED
|
@@ -45,6 +45,15 @@ module Google
|
|
|
45
45
|
# View display name, description, and other metadata for all Google Chat conversations owned by your organization
|
|
46
46
|
AUTH_CHAT_ADMIN_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.admin.spaces.readonly'
|
|
47
47
|
|
|
48
|
+
# On their own behalf, apps in Google Chat can see all members in Google Chat spaces and conversations throughout your Workspace organization, even when the Chat app isn't a member
|
|
49
|
+
AUTH_CHAT_APP_ALL_MEMBERSHIPS_READONLY = 'https://www.googleapis.com/auth/chat.app.all.memberships.readonly'
|
|
50
|
+
|
|
51
|
+
# On their own behalf, apps in Google Chat can see all messages and reactions throughout your Workspace organization, even when the Chat app isn't a member of a space or conversation
|
|
52
|
+
AUTH_CHAT_APP_ALL_MESSAGES_READONLY = 'https://www.googleapis.com/auth/chat.app.all.messages.readonly'
|
|
53
|
+
|
|
54
|
+
# On their own behalf, apps in Google Chat can see metadata about all spaces and conversations in Google Chat throughout your Workspace organization, even when the Chat app isn't a member
|
|
55
|
+
AUTH_CHAT_APP_ALL_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.app.all.spaces.readonly'
|
|
56
|
+
|
|
48
57
|
# On their own behalf, apps in Google Chat can delete conversations and spaces and remove access to associated files
|
|
49
58
|
AUTH_CHAT_APP_DELETE = 'https://www.googleapis.com/auth/chat.app.delete'
|
|
50
59
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-chat_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.152.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.152.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|