google-apis-chat_v1 0.150.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/chat_v1/classes.rb +340 -0
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +125 -0
- data/lib/google/apis/chat_v1/service.rb +132 -61
- data/lib/google/apis/chat_v1.rb +9 -0
- metadata +2 -2
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
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-chat_v1
|
|
2
2
|
|
|
3
|
+
### v0.152.0 (2026-08-02)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260728
|
|
6
|
+
|
|
7
|
+
### v0.151.0 (2026-07-19)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260714
|
|
10
|
+
|
|
3
11
|
### v0.150.0 (2026-06-28)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260623
|
|
@@ -22,11 +22,60 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ChatV1
|
|
24
24
|
|
|
25
|
+
# An access permission setting.
|
|
26
|
+
class AccessPermissionSetting
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Optional. Unordered list. Allowed principals for this permission.
|
|
30
|
+
# Corresponds to the JSON property `principals`
|
|
31
|
+
# @return [Array<Google::Apis::ChatV1::Principal>]
|
|
32
|
+
attr_accessor :principals
|
|
33
|
+
|
|
34
|
+
def initialize(**args)
|
|
35
|
+
update!(**args)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Update properties of this object
|
|
39
|
+
def update!(**args)
|
|
40
|
+
@principals = args[:principals] if args.key?(:principals)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Access permission settings for a space.
|
|
45
|
+
class AccessPermissionSettings
|
|
46
|
+
include Google::Apis::Core::Hashable
|
|
47
|
+
|
|
48
|
+
# An access permission setting.
|
|
49
|
+
# Corresponds to the JSON property `discoverSpaceSetting`
|
|
50
|
+
# @return [Google::Apis::ChatV1::AccessPermissionSetting]
|
|
51
|
+
attr_accessor :discover_space_setting
|
|
52
|
+
|
|
53
|
+
# An access permission setting.
|
|
54
|
+
# Corresponds to the JSON property `joinSpaceSetting`
|
|
55
|
+
# @return [Google::Apis::ChatV1::AccessPermissionSetting]
|
|
56
|
+
attr_accessor :join_space_setting
|
|
57
|
+
|
|
58
|
+
def initialize(**args)
|
|
59
|
+
update!(**args)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Update properties of this object
|
|
63
|
+
def update!(**args)
|
|
64
|
+
@discover_space_setting = args[:discover_space_setting] if args.key?(:discover_space_setting)
|
|
65
|
+
@join_space_setting = args[:join_space_setting] if args.key?(:join_space_setting)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
25
69
|
# Represents the [access setting](https://support.google.com/chat/answer/
|
|
26
70
|
# 11971020) of the space.
|
|
27
71
|
class AccessSettings
|
|
28
72
|
include Google::Apis::Core::Hashable
|
|
29
73
|
|
|
74
|
+
# Access permission settings for a space.
|
|
75
|
+
# Corresponds to the JSON property `accessPermissionSettings`
|
|
76
|
+
# @return [Google::Apis::ChatV1::AccessPermissionSettings]
|
|
77
|
+
attr_accessor :access_permission_settings
|
|
78
|
+
|
|
30
79
|
# Output only. Indicates the access state of the space.
|
|
31
80
|
# Corresponds to the JSON property `accessState`
|
|
32
81
|
# @return [String]
|
|
@@ -59,6 +108,7 @@ module Google
|
|
|
59
108
|
|
|
60
109
|
# Update properties of this object
|
|
61
110
|
def update!(**args)
|
|
111
|
+
@access_permission_settings = args[:access_permission_settings] if args.key?(:access_permission_settings)
|
|
62
112
|
@access_state = args[:access_state] if args.key?(:access_state)
|
|
63
113
|
@audience = args[:audience] if args.key?(:audience)
|
|
64
114
|
end
|
|
@@ -389,6 +439,36 @@ module Google
|
|
|
389
439
|
end
|
|
390
440
|
end
|
|
391
441
|
|
|
442
|
+
# A target audience in Google Chat. A target audience represents a group of
|
|
443
|
+
# users within a Google Workspace organization, defined by an administrator.
|
|
444
|
+
# Target audiences are used to configure access and visibility settings for
|
|
445
|
+
# resources, such as making a space discoverable to a specific group of users.
|
|
446
|
+
# For more details, see [Target audiences](https://support.google.com/a/answer/
|
|
447
|
+
# 9934697) and [Make a space discoverable to a target audience](https://
|
|
448
|
+
# developers.google.com/workspace/chat/space-target-audience).
|
|
449
|
+
class Audience
|
|
450
|
+
include Google::Apis::Core::Hashable
|
|
451
|
+
|
|
452
|
+
# The resource name of the [target audience](https://support.google.com/a/answer/
|
|
453
|
+
# 9934697) who can discover or join the space. For details, see [Make a space
|
|
454
|
+
# discoverable to a target audience](https://developers.google.com/workspace/
|
|
455
|
+
# chat/space-target-audience). Format: `audiences/`audience`` To use the default
|
|
456
|
+
# target audience for the Google Workspace organization, set to `audiences/
|
|
457
|
+
# default`.
|
|
458
|
+
# Corresponds to the JSON property `name`
|
|
459
|
+
# @return [String]
|
|
460
|
+
attr_accessor :name
|
|
461
|
+
|
|
462
|
+
def initialize(**args)
|
|
463
|
+
update!(**args)
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
# Update properties of this object
|
|
467
|
+
def update!(**args)
|
|
468
|
+
@name = args[:name] if args.key?(:name)
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
|
|
392
472
|
# Represents a user's current availability information in Google Chat, including
|
|
393
473
|
# their state (for example, Active, Away, Do Not Disturb) and any custom status.
|
|
394
474
|
class Availability
|
|
@@ -5475,6 +5555,11 @@ module Google
|
|
|
5475
5555
|
# @return [String]
|
|
5476
5556
|
attr_accessor :last_update_time
|
|
5477
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
|
+
|
|
5478
5563
|
# A matched URL in a Chat message. Chat apps can preview matched URLs. For more
|
|
5479
5564
|
# information, see [Preview links](https://developers.google.com/chat/how-tos/
|
|
5480
5565
|
# preview-links).
|
|
@@ -5589,6 +5674,7 @@ module Google
|
|
|
5589
5674
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
|
5590
5675
|
@formatted_text = args[:formatted_text] if args.key?(:formatted_text)
|
|
5591
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)
|
|
5592
5678
|
@matched_url = args[:matched_url] if args.key?(:matched_url)
|
|
5593
5679
|
@name = args[:name] if args.key?(:name)
|
|
5594
5680
|
@private_message_viewer = args[:private_message_viewer] if args.key?(:private_message_viewer)
|
|
@@ -5964,6 +6050,31 @@ module Google
|
|
|
5964
6050
|
end
|
|
5965
6051
|
end
|
|
5966
6052
|
|
|
6053
|
+
# A principal representing an entity granted access.
|
|
6054
|
+
class Principal
|
|
6055
|
+
include Google::Apis::Core::Hashable
|
|
6056
|
+
|
|
6057
|
+
# A target audience in Google Chat. A target audience represents a group of
|
|
6058
|
+
# users within a Google Workspace organization, defined by an administrator.
|
|
6059
|
+
# Target audiences are used to configure access and visibility settings for
|
|
6060
|
+
# resources, such as making a space discoverable to a specific group of users.
|
|
6061
|
+
# For more details, see [Target audiences](https://support.google.com/a/answer/
|
|
6062
|
+
# 9934697) and [Make a space discoverable to a target audience](https://
|
|
6063
|
+
# developers.google.com/workspace/chat/space-target-audience).
|
|
6064
|
+
# Corresponds to the JSON property `audience`
|
|
6065
|
+
# @return [Google::Apis::ChatV1::Audience]
|
|
6066
|
+
attr_accessor :audience
|
|
6067
|
+
|
|
6068
|
+
def initialize(**args)
|
|
6069
|
+
update!(**args)
|
|
6070
|
+
end
|
|
6071
|
+
|
|
6072
|
+
# Update properties of this object
|
|
6073
|
+
def update!(**args)
|
|
6074
|
+
@audience = args[:audience] if args.key?(:audience)
|
|
6075
|
+
end
|
|
6076
|
+
end
|
|
6077
|
+
|
|
5967
6078
|
# Information about a message that another message quotes. When you update a
|
|
5968
6079
|
# message, you can't add or replace the `quotedMessageMetadata` field, but you
|
|
5969
6080
|
# can remove it. For example usage, see [Quote another message](https://
|
|
@@ -6233,6 +6344,229 @@ module Google
|
|
|
6233
6344
|
end
|
|
6234
6345
|
end
|
|
6235
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
|
+
|
|
6236
6570
|
# Response with a list of spaces corresponding to the search spaces request.
|
|
6237
6571
|
class SearchSpacesResponse
|
|
6238
6572
|
include Google::Apis::Core::Hashable
|
|
@@ -6243,6 +6577,11 @@ module Google
|
|
|
6243
6577
|
# @return [String]
|
|
6244
6578
|
attr_accessor :next_page_token
|
|
6245
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
|
+
|
|
6246
6585
|
# Deprecated: Please use the new `results` field instead. A page of the
|
|
6247
6586
|
# requested spaces. This field will be populated only when `useAdminAccess` is
|
|
6248
6587
|
# set to `true` and deprecated in favor of the new `results` field.
|
|
@@ -6263,6 +6602,7 @@ module Google
|
|
|
6263
6602
|
# Update properties of this object
|
|
6264
6603
|
def update!(**args)
|
|
6265
6604
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
6605
|
+
@results = args[:results] if args.key?(:results)
|
|
6266
6606
|
@spaces = args[:spaces] if args.key?(:spaces)
|
|
6267
6607
|
@total_size = args[:total_size] if args.key?(:total_size)
|
|
6268
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
|
|
@@ -22,6 +22,18 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ChatV1
|
|
24
24
|
|
|
25
|
+
class AccessPermissionSetting
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class AccessPermissionSettings
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
25
37
|
class AccessSettings
|
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
39
|
|
|
@@ -82,6 +94,12 @@ module Google
|
|
|
82
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
95
|
end
|
|
84
96
|
|
|
97
|
+
class Audience
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
85
103
|
class Availability
|
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
105
|
|
|
@@ -850,6 +868,12 @@ module Google
|
|
|
850
868
|
include Google::Apis::Core::JsonObjectSupport
|
|
851
869
|
end
|
|
852
870
|
|
|
871
|
+
class Principal
|
|
872
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
873
|
+
|
|
874
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
875
|
+
end
|
|
876
|
+
|
|
853
877
|
class QuotedMessageMetadata
|
|
854
878
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
855
879
|
|
|
@@ -898,6 +922,30 @@ module Google
|
|
|
898
922
|
include Google::Apis::Core::JsonObjectSupport
|
|
899
923
|
end
|
|
900
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
|
+
|
|
901
949
|
class SearchSpacesResponse
|
|
902
950
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
903
951
|
|
|
@@ -1078,9 +1126,29 @@ module Google
|
|
|
1078
1126
|
include Google::Apis::Core::JsonObjectSupport
|
|
1079
1127
|
end
|
|
1080
1128
|
|
|
1129
|
+
class AccessPermissionSetting
|
|
1130
|
+
# @private
|
|
1131
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1132
|
+
collection :principals, as: 'principals', class: Google::Apis::ChatV1::Principal, decorator: Google::Apis::ChatV1::Principal::Representation
|
|
1133
|
+
|
|
1134
|
+
end
|
|
1135
|
+
end
|
|
1136
|
+
|
|
1137
|
+
class AccessPermissionSettings
|
|
1138
|
+
# @private
|
|
1139
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1140
|
+
property :discover_space_setting, as: 'discoverSpaceSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
|
|
1141
|
+
|
|
1142
|
+
property :join_space_setting, as: 'joinSpaceSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
|
|
1143
|
+
|
|
1144
|
+
end
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1081
1147
|
class AccessSettings
|
|
1082
1148
|
# @private
|
|
1083
1149
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1150
|
+
property :access_permission_settings, as: 'accessPermissionSettings', class: Google::Apis::ChatV1::AccessPermissionSettings, decorator: Google::Apis::ChatV1::AccessPermissionSettings::Representation
|
|
1151
|
+
|
|
1084
1152
|
property :access_state, as: 'accessState'
|
|
1085
1153
|
property :audience, as: 'audience'
|
|
1086
1154
|
end
|
|
@@ -1178,6 +1246,13 @@ module Google
|
|
|
1178
1246
|
end
|
|
1179
1247
|
end
|
|
1180
1248
|
|
|
1249
|
+
class Audience
|
|
1250
|
+
# @private
|
|
1251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1252
|
+
property :name, as: 'name'
|
|
1253
|
+
end
|
|
1254
|
+
end
|
|
1255
|
+
|
|
1181
1256
|
class Availability
|
|
1182
1257
|
# @private
|
|
1183
1258
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2404,6 +2479,7 @@ module Google
|
|
|
2404
2479
|
property :fallback_text, as: 'fallbackText'
|
|
2405
2480
|
property :formatted_text, as: 'formattedText'
|
|
2406
2481
|
property :last_update_time, as: 'lastUpdateTime'
|
|
2482
|
+
property :markup_syntax, as: 'markupSyntax'
|
|
2407
2483
|
property :matched_url, as: 'matchedUrl', class: Google::Apis::ChatV1::MatchedUrl, decorator: Google::Apis::ChatV1::MatchedUrl::Representation
|
|
2408
2484
|
|
|
2409
2485
|
property :name, as: 'name'
|
|
@@ -2552,6 +2628,14 @@ module Google
|
|
|
2552
2628
|
end
|
|
2553
2629
|
end
|
|
2554
2630
|
|
|
2631
|
+
class Principal
|
|
2632
|
+
# @private
|
|
2633
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2634
|
+
property :audience, as: 'audience', class: Google::Apis::ChatV1::Audience, decorator: Google::Apis::ChatV1::Audience::Representation
|
|
2635
|
+
|
|
2636
|
+
end
|
|
2637
|
+
end
|
|
2638
|
+
|
|
2555
2639
|
class QuotedMessageMetadata
|
|
2556
2640
|
# @private
|
|
2557
2641
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2637,10 +2721,51 @@ module Google
|
|
|
2637
2721
|
end
|
|
2638
2722
|
end
|
|
2639
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
|
+
|
|
2640
2763
|
class SearchSpacesResponse
|
|
2641
2764
|
# @private
|
|
2642
2765
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2643
2766
|
property :next_page_token, as: 'nextPageToken'
|
|
2767
|
+
collection :results, as: 'results', class: Google::Apis::ChatV1::SearchSpaceResult, decorator: Google::Apis::ChatV1::SearchSpaceResult::Representation
|
|
2768
|
+
|
|
2644
2769
|
collection :spaces, as: 'spaces', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
|
2645
2770
|
|
|
2646
2771
|
property :total_size, as: 'totalSize'
|
|
@@ -784,11 +784,24 @@ module Google
|
|
|
784
784
|
# import mode](https://developers.google.com/workspace/chat/import-data-overview)
|
|
785
785
|
# . To learn more, see [Make a space discoverable to specific users](https://
|
|
786
786
|
# developers.google.com/workspace/chat/space-target-audience). `access_settings.
|
|
787
|
-
# audience` is not supported with `useAdminAccess`. `
|
|
788
|
-
#
|
|
789
|
-
# answer/
|
|
790
|
-
#
|
|
791
|
-
#
|
|
787
|
+
# audience` is not supported with `useAdminAccess`. `access_settings.
|
|
788
|
+
# access_permission_settings`: Updates the [access permission settings](https://
|
|
789
|
+
# support.google.com/chat/answer/11971020) of who can discover and join the
|
|
790
|
+
# space where `spaceType` field is `SPACE`. Principals allowed to join the space
|
|
791
|
+
# must also be allowed to discover it. To update access permission settings for
|
|
792
|
+
# a space, the authenticating user must be a space manager or assistant manager
|
|
793
|
+
# and omit all other field masks in the request. You can't update this field if
|
|
794
|
+
# the space is in [import mode](https://developers.google.com/workspace/chat/
|
|
795
|
+
# import-data-overview). To learn more, see [Make a space discoverable to
|
|
796
|
+
# specific users](https://developers.google.com/workspace/chat/space-target-
|
|
797
|
+
# audience). `access_settings.access_permission_settings` is not supported with `
|
|
798
|
+
# useAdminAccess`. The supported field masks include: - `access_settings.
|
|
799
|
+
# access_permission_settings.discoverSpaceSetting` - `access_settings.
|
|
800
|
+
# access_permission_settings.joinSpaceSetting` `permission_settings`: Supports
|
|
801
|
+
# changing the [permission settings](https://support.google.com/chat/answer/
|
|
802
|
+
# 13340792) of a space. When updating permission settings, you can only specify `
|
|
803
|
+
# permissionSettings` field masks; you cannot update other field masks at the
|
|
804
|
+
# same time. The supported field masks include: - `permission_settings.
|
|
792
805
|
# manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `
|
|
793
806
|
# permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `
|
|
794
807
|
# permission_settings.manageApps` - `permission_settings.manageWebhooks` - `
|
|
@@ -837,7 +850,6 @@ module Google
|
|
|
837
850
|
# chat/search-manage-admin). When `use_admin_access` is set to `false`, the
|
|
838
851
|
# results are limited to spaces where the calling user is a joined member. To
|
|
839
852
|
# search with administrator privileges, set `use_admin_access` to `true`.
|
|
840
|
-
# Setting `use_admin_access` to `false` is available under Developer Preview.
|
|
841
853
|
# Supports the following types of [authentication](https://developers.google.com/
|
|
842
854
|
# workspace/chat/authenticate-authorize): - [User authentication](https://
|
|
843
855
|
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) with
|
|
@@ -877,56 +889,55 @@ module Google
|
|
|
877
889
|
# when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `
|
|
878
890
|
# display_name` - `external_user_allowed` - `last_active_time` - `
|
|
879
891
|
# space_history_state` - `space_type` When `useAdminAccess` is set to `false`: -
|
|
880
|
-
# `display_name` - `external_user_allowed` `create_time` and `
|
|
881
|
-
# accept a timestamp in [RFC-3339](https://www.rfc-editor.org/
|
|
882
|
-
# format and the supported comparison operators are: `=`, `<`, `>`,
|
|
883
|
-
# customer` is required when `useAdminAccess` is set to `true`, and
|
|
884
|
-
# indicate which customer to fetch spaces from. `customers/
|
|
885
|
-
# only supported value. `display_name` only accepts the `HAS`
|
|
886
|
-
# The text to match is first tokenized into tokens and each
|
|
887
|
-
# matched case-insensitively and independently as a substring
|
|
888
|
-
# space's `display_name`. For example, `Fun Eve` matches `Fun
|
|
889
|
-
# evening was fun`, but not `notFun event` or `even`. When `
|
|
890
|
-
# set to `false`, `display_name` is required to retrieve
|
|
891
|
-
# Otherwise, the default behavior is to return an empty
|
|
892
|
-
# external_user_allowed` accepts either `true` or `false`. `
|
|
893
|
-
# only accepts values from the [`historyState`] (https://
|
|
894
|
-
# workspace/chat/api/reference/rest/v1/spaces#Space.
|
|
895
|
-
# space` resource. `space_type` is required
|
|
896
|
-
#
|
|
897
|
-
#
|
|
898
|
-
#
|
|
899
|
-
#
|
|
900
|
-
#
|
|
901
|
-
#
|
|
902
|
-
#
|
|
903
|
-
#
|
|
904
|
-
#
|
|
905
|
-
#
|
|
906
|
-
#
|
|
907
|
-
#
|
|
908
|
-
#
|
|
909
|
-
#
|
|
910
|
-
#
|
|
911
|
-
#
|
|
912
|
-
#
|
|
913
|
-
#
|
|
914
|
-
#
|
|
915
|
-
#
|
|
892
|
+
# `display_name` - `external_user_allowed` - `space_type` `create_time` and `
|
|
893
|
+
# last_active_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/
|
|
894
|
+
# rfc/rfc3339) format and the supported comparison operators are: `=`, `<`, `>`,
|
|
895
|
+
# `<=`, `>=`. `customer` is required when `useAdminAccess` is set to `true`, and
|
|
896
|
+
# is used to indicate which customer to fetch spaces from. `customers/
|
|
897
|
+
# my_customer` is the only supported value. `display_name` only accepts the `HAS`
|
|
898
|
+
# (`:`) operator. The text to match is first tokenized into tokens and each
|
|
899
|
+
# token is prefix-matched case-insensitively and independently as a substring
|
|
900
|
+
# anywhere in the space's `display_name`. For example, `Fun Eve` matches `Fun
|
|
901
|
+
# event` or `The evening was fun`, but not `notFun event` or `even`. When `
|
|
902
|
+
# useAdminAccess` is set to `false`, `display_name` is required to retrieve
|
|
903
|
+
# meaningful results. Otherwise, the default behavior is to return an empty
|
|
904
|
+
# response. `external_user_allowed` accepts either `true` or `false`. `
|
|
905
|
+
# space_history_state` only accepts values from the [`historyState`] (https://
|
|
906
|
+
# developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.
|
|
907
|
+
# HistoryState) field of a `space` resource. `space_type` is required and the
|
|
908
|
+
# only valid value is `SPACE`. Across different fields, only `AND` operators are
|
|
909
|
+
# supported. A valid example is `space_type = "SPACE" AND display_name:"Hello"`
|
|
910
|
+
# and an invalid example is `space_type = "SPACE" OR display_name:"Hello"`.
|
|
911
|
+
# Among the same field, `space_type` doesn't support `AND` or `OR` operators. `
|
|
912
|
+
# display_name`, 'space_history_state', and 'external_user_allowed' only support
|
|
913
|
+
# `OR` operators. `last_active_time` and `create_time` support both `AND` and `
|
|
914
|
+
# OR` operators. `AND` can only be used to represent an interval, such as `
|
|
915
|
+
# last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-
|
|
916
|
+
# 01T00:00:00+00:00"`. The following example queries are valid when `
|
|
917
|
+
# useAdminAccess` is set to `true`: ``` customer = "customers/my_customer" AND
|
|
918
|
+
# space_type = "SPACE" customer = "customers/my_customer" AND space_type = "
|
|
919
|
+
# SPACE" AND display_name:"Hello World" customer = "customers/my_customer" AND
|
|
920
|
+
# space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR
|
|
921
|
+
# last_active_time > "2022-01-01T00:00:00+00:00") customer = "customers/
|
|
922
|
+
# my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR
|
|
923
|
+
# display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00"
|
|
924
|
+
# AND last_active_time < "2022-01-01T00:00:00+00:00") customer = "customers/
|
|
925
|
+
# my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+
|
|
926
|
+
# 00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (
|
|
927
|
+
# external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR
|
|
916
928
|
# space_history_state = "HISTORY_OFF") ``` The following example queries are
|
|
917
|
-
# valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World"
|
|
918
|
-
# display_name:"Hello" OR display_name:"Fun")
|
|
919
|
-
#
|
|
920
|
-
#
|
|
929
|
+
# valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World"
|
|
930
|
+
# AND space_type = "SPACE" (display_name:"Hello" OR display_name:"Fun") AND
|
|
931
|
+
# space_type = "SPACE" (external_user_allowed = "true" AND space_type = "SPACE")
|
|
932
|
+
# // Returns an empty response. (external_user_allowed = "true" AND display_name:
|
|
933
|
+
# "Hello" AND space_type = "SPACE") ```
|
|
921
934
|
# @param [Boolean] use_admin_access
|
|
922
935
|
# When `true`, the method runs using the user's Google Workspace administrator
|
|
923
936
|
# privileges. The calling user must be a Google Workspace administrator with the
|
|
924
937
|
# [manage chat and spaces conversations privilege](https://support.google.com/a/
|
|
925
938
|
# answer/13369245). Requires either the `chat.admin.spaces.readonly` or `chat.
|
|
926
939
|
# admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/
|
|
927
|
-
# authenticate-authorize#chat-api-scopes).
|
|
928
|
-
# is available under Developer Preview. [Developer Preview](https://developers.
|
|
929
|
-
# google.com/workspace/preview).
|
|
940
|
+
# authenticate-authorize#chat-api-scopes).
|
|
930
941
|
# @param [String] fields
|
|
931
942
|
# Selector specifying which fields to include in a partial response.
|
|
932
943
|
# @param [String] quota_user
|
|
@@ -1560,6 +1571,9 @@ module Google
|
|
|
1560
1571
|
# from the `clientAssignedMessageId` field for ``message``. For details, see [
|
|
1561
1572
|
# Name a message] (https://developers.google.com/workspace/chat/create-messages#
|
|
1562
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.
|
|
1563
1577
|
# @param [String] fields
|
|
1564
1578
|
# Selector specifying which fields to include in a partial response.
|
|
1565
1579
|
# @param [String] quota_user
|
|
@@ -1577,11 +1591,12 @@ module Google
|
|
|
1577
1591
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1578
1592
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1579
1593
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1580
|
-
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)
|
|
1581
1595
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1582
1596
|
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
|
1583
1597
|
command.response_class = Google::Apis::ChatV1::Message
|
|
1584
1598
|
command.params['name'] = name unless name.nil?
|
|
1599
|
+
command.query['markupSyntax'] = markup_syntax unless markup_syntax.nil?
|
|
1585
1600
|
command.query['fields'] = fields unless fields.nil?
|
|
1586
1601
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1587
1602
|
execute_or_queue_command(command, &block)
|
|
@@ -1626,6 +1641,9 @@ module Google
|
|
|
1626
1641
|
# 01-01T00:00:00+00:00" AND thread.name = spaces/AAAAAAAAAAA/threads/123 thread.
|
|
1627
1642
|
# name = spaces/AAAAAAAAAAA/threads/123 ``` Invalid queries are rejected by the
|
|
1628
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.
|
|
1629
1647
|
# @param [String] order_by
|
|
1630
1648
|
# Optional. How the list of messages is ordered. Specify a value to order by an
|
|
1631
1649
|
# ordering operation. Valid ordering operation values are as follows: - `ASC`
|
|
@@ -1663,12 +1681,13 @@ module Google
|
|
|
1663
1681
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1664
1682
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1665
1683
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1666
|
-
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)
|
|
1667
1685
|
command = make_simple_command(:get, 'v1/{+parent}/messages', options)
|
|
1668
1686
|
command.response_representation = Google::Apis::ChatV1::ListMessagesResponse::Representation
|
|
1669
1687
|
command.response_class = Google::Apis::ChatV1::ListMessagesResponse
|
|
1670
1688
|
command.params['parent'] = parent unless parent.nil?
|
|
1671
1689
|
command.query['filter'] = filter unless filter.nil?
|
|
1690
|
+
command.query['markupSyntax'] = markup_syntax unless markup_syntax.nil?
|
|
1672
1691
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1673
1692
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1674
1693
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1746,6 +1765,58 @@ module Google
|
|
|
1746
1765
|
execute_or_queue_command(command, &block)
|
|
1747
1766
|
end
|
|
1748
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
|
+
|
|
1749
1820
|
# Updates a message. There's a difference between the `patch` and `update`
|
|
1750
1821
|
# methods. The `patch` method uses a `patch` request while the `update` method
|
|
1751
1822
|
# uses a `put` request. We recommend using the `patch` method. For an example,
|
|
@@ -2193,7 +2264,7 @@ module Google
|
|
|
2193
2264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2194
2265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2195
2266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2196
|
-
def
|
|
2267
|
+
def get_user_availability(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2197
2268
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
2198
2269
|
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2199
2270
|
command.response_class = Google::Apis::ChatV1::Availability
|
|
@@ -2290,14 +2361,14 @@ module Google
|
|
|
2290
2361
|
execute_or_queue_command(command, &block)
|
|
2291
2362
|
end
|
|
2292
2363
|
|
|
2293
|
-
# Marks user as`DO_NOT_DISTURB` in Google Chat. Sets a user's availability
|
|
2294
|
-
# to `DO_NOT_DISTURB` until a specified expiration time. When in `
|
|
2295
|
-
#
|
|
2296
|
-
# authenticated user's availability. Requires [user authentication](
|
|
2297
|
-
# developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2298
|
-
# authorization scope](https://developers.google.com/workspace/chat/
|
|
2299
|
-
# authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
|
|
2300
|
-
# availability`
|
|
2364
|
+
# Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a user's availability
|
|
2365
|
+
# state to `DO_NOT_DISTURB` until a specified expiration time. When in `
|
|
2366
|
+
# DO_NOT_DISTURB`, users typically won't receive notifications. This method only
|
|
2367
|
+
# updates the authenticated user's availability. Requires [user authentication](
|
|
2368
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2369
|
+
# with [authorization scope](https://developers.google.com/workspace/chat/
|
|
2370
|
+
# authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
|
|
2371
|
+
# chat.users.availability`
|
|
2301
2372
|
# @param [String] name
|
|
2302
2373
|
# Required. The resource name of the availability to mark as Do Not Disturb.
|
|
2303
2374
|
# Format: users/`user`/availability ``user`` is the id for the Person in the
|
|
@@ -2368,7 +2439,7 @@ module Google
|
|
|
2368
2439
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2369
2440
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2370
2441
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2371
|
-
def
|
|
2442
|
+
def patch_user_availability(name, availability_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2372
2443
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
2373
2444
|
command.request_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2374
2445
|
command.request_object = availability_object
|
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:
|