google-apis-chat_v1 0.149.0 → 0.151.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 +276 -0
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +147 -0
- data/lib/google/apis/chat_v1/service.rb +260 -21
- data/lib/google/apis/chat_v1.rb +6 -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: 599f0e59925b2055ca839f9b60ab29dcdf0a7d2d5e13f5cf2066b20c3bd4b3eb
|
|
4
|
+
data.tar.gz: 8af2d5d776c4fc19c21871354d0f540ac94292788c5940b634259e55bc30d301
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a91fade319d725c1ba44bae43c5c5e1ce9e0749507d3338217df718e0fec520461ed7c9734defb20f47807bab513a57cf8feb7f62dd922176bfa29e69f16af8
|
|
7
|
+
data.tar.gz: 0ce66f2bd7c09db392502cf221b5a696c94961bdc7ba8f15898e60332dc2d89a0af1d7bac9feb8ab8daaf3178257563704e29dfe243316640ff75eb03c07b713
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-chat_v1
|
|
2
2
|
|
|
3
|
+
### v0.151.0 (2026-07-19)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260714
|
|
6
|
+
|
|
7
|
+
### v0.150.0 (2026-06-28)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260623
|
|
10
|
+
|
|
3
11
|
### v0.149.0 (2026-06-14)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260607
|
|
@@ -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,81 @@ 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
|
+
|
|
472
|
+
# Represents a user's current availability information in Google Chat, including
|
|
473
|
+
# their state (for example, Active, Away, Do Not Disturb) and any custom status.
|
|
474
|
+
class Availability
|
|
475
|
+
include Google::Apis::Core::Hashable
|
|
476
|
+
|
|
477
|
+
# Represents a user's custom status in Google Chat. This includes a short text
|
|
478
|
+
# message with an optional emoji that a user sets to give more context about
|
|
479
|
+
# their availability.
|
|
480
|
+
# Corresponds to the JSON property `customStatus`
|
|
481
|
+
# @return [Google::Apis::ChatV1::CustomStatus]
|
|
482
|
+
attr_accessor :custom_status
|
|
483
|
+
|
|
484
|
+
# Metadata associated with the `DO_NOT_DISTURB` availability state, specifying
|
|
485
|
+
# when the state is set to expire.
|
|
486
|
+
# Corresponds to the JSON property `doNotDisturbMetadata`
|
|
487
|
+
# @return [Google::Apis::ChatV1::DoNotDisturbMetadata]
|
|
488
|
+
attr_accessor :do_not_disturb_metadata
|
|
489
|
+
|
|
490
|
+
# Identifier. Resource name of the user's availability. Format: `users/`user`/
|
|
491
|
+
# availability` ``user`` is the id for the Person in the People API or Admin SDK
|
|
492
|
+
# directory API. For example, `users/123456789`. The user's email address or `me`
|
|
493
|
+
# can also be used as an alias to refer to the caller. For example, `users/user@
|
|
494
|
+
# example.com` or `users/me`.
|
|
495
|
+
# Corresponds to the JSON property `name`
|
|
496
|
+
# @return [String]
|
|
497
|
+
attr_accessor :name
|
|
498
|
+
|
|
499
|
+
# Output only. The user's current availability state.
|
|
500
|
+
# Corresponds to the JSON property `state`
|
|
501
|
+
# @return [String]
|
|
502
|
+
attr_accessor :state
|
|
503
|
+
|
|
504
|
+
def initialize(**args)
|
|
505
|
+
update!(**args)
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# Update properties of this object
|
|
509
|
+
def update!(**args)
|
|
510
|
+
@custom_status = args[:custom_status] if args.key?(:custom_status)
|
|
511
|
+
@do_not_disturb_metadata = args[:do_not_disturb_metadata] if args.key?(:do_not_disturb_metadata)
|
|
512
|
+
@name = args[:name] if args.key?(:name)
|
|
513
|
+
@state = args[:state] if args.key?(:state)
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
|
|
392
517
|
# A button. Can be a text button or an image button.
|
|
393
518
|
class Button
|
|
394
519
|
include Google::Apis::Core::Hashable
|
|
@@ -1050,6 +1175,46 @@ module Google
|
|
|
1050
1175
|
end
|
|
1051
1176
|
end
|
|
1052
1177
|
|
|
1178
|
+
# Represents a user's custom status in Google Chat. This includes a short text
|
|
1179
|
+
# message with an optional emoji that a user sets to give more context about
|
|
1180
|
+
# their availability.
|
|
1181
|
+
class CustomStatus
|
|
1182
|
+
include Google::Apis::Core::Hashable
|
|
1183
|
+
|
|
1184
|
+
# An emoji that is used as a reaction to a message.
|
|
1185
|
+
# Corresponds to the JSON property `emoji`
|
|
1186
|
+
# @return [Google::Apis::ChatV1::Emoji]
|
|
1187
|
+
attr_accessor :emoji
|
|
1188
|
+
|
|
1189
|
+
# The timestamp when the custom status expires.
|
|
1190
|
+
# Corresponds to the JSON property `expireTime`
|
|
1191
|
+
# @return [String]
|
|
1192
|
+
attr_accessor :expire_time
|
|
1193
|
+
|
|
1194
|
+
# Required. The text of the custom status. This will be a string with maximum
|
|
1195
|
+
# length of 64.
|
|
1196
|
+
# Corresponds to the JSON property `text`
|
|
1197
|
+
# @return [String]
|
|
1198
|
+
attr_accessor :text
|
|
1199
|
+
|
|
1200
|
+
# Input only. The time-to-live duration after which the custom status expires.
|
|
1201
|
+
# Corresponds to the JSON property `ttl`
|
|
1202
|
+
# @return [String]
|
|
1203
|
+
attr_accessor :ttl
|
|
1204
|
+
|
|
1205
|
+
def initialize(**args)
|
|
1206
|
+
update!(**args)
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
# Update properties of this object
|
|
1210
|
+
def update!(**args)
|
|
1211
|
+
@emoji = args[:emoji] if args.key?(:emoji)
|
|
1212
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
1213
|
+
@text = args[:text] if args.key?(:text)
|
|
1214
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
1215
|
+
end
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1053
1218
|
# Date input values.
|
|
1054
1219
|
class DateInput
|
|
1055
1220
|
include Google::Apis::Core::Hashable
|
|
@@ -1345,6 +1510,27 @@ module Google
|
|
|
1345
1510
|
end
|
|
1346
1511
|
end
|
|
1347
1512
|
|
|
1513
|
+
# Metadata associated with the `DO_NOT_DISTURB` availability state, specifying
|
|
1514
|
+
# when the state is set to expire.
|
|
1515
|
+
class DoNotDisturbMetadata
|
|
1516
|
+
include Google::Apis::Core::Hashable
|
|
1517
|
+
|
|
1518
|
+
# Output only. Timestamp until which the user should be marked as DO_NOT_DISTURB.
|
|
1519
|
+
# This can be maximum of 1 year in the future.
|
|
1520
|
+
# Corresponds to the JSON property `expirationTime`
|
|
1521
|
+
# @return [String]
|
|
1522
|
+
attr_accessor :expiration_time
|
|
1523
|
+
|
|
1524
|
+
def initialize(**args)
|
|
1525
|
+
update!(**args)
|
|
1526
|
+
end
|
|
1527
|
+
|
|
1528
|
+
# Update properties of this object
|
|
1529
|
+
def update!(**args)
|
|
1530
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
1531
|
+
end
|
|
1532
|
+
end
|
|
1533
|
+
|
|
1348
1534
|
# A reference to the data of a drive attachment.
|
|
1349
1535
|
class DriveDataRef
|
|
1350
1536
|
include Google::Apis::Core::Hashable
|
|
@@ -4877,6 +5063,71 @@ module Google
|
|
|
4877
5063
|
end
|
|
4878
5064
|
end
|
|
4879
5065
|
|
|
5066
|
+
# Request message for the `MarkAsActive` method.
|
|
5067
|
+
class MarkAsActiveRequest
|
|
5068
|
+
include Google::Apis::Core::Hashable
|
|
5069
|
+
|
|
5070
|
+
# The absolute timestamp when the ACTIVE state expires.
|
|
5071
|
+
# Corresponds to the JSON property `expireTime`
|
|
5072
|
+
# @return [String]
|
|
5073
|
+
attr_accessor :expire_time
|
|
5074
|
+
|
|
5075
|
+
# The duration from the current time until the ACTIVE state expires. Using a
|
|
5076
|
+
# short TTL can effectively reset the user's state to be based on activity after
|
|
5077
|
+
# this brief duration.
|
|
5078
|
+
# Corresponds to the JSON property `ttl`
|
|
5079
|
+
# @return [String]
|
|
5080
|
+
attr_accessor :ttl
|
|
5081
|
+
|
|
5082
|
+
def initialize(**args)
|
|
5083
|
+
update!(**args)
|
|
5084
|
+
end
|
|
5085
|
+
|
|
5086
|
+
# Update properties of this object
|
|
5087
|
+
def update!(**args)
|
|
5088
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
5089
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
5090
|
+
end
|
|
5091
|
+
end
|
|
5092
|
+
|
|
5093
|
+
# Request message for the `MarkAsAway` method.
|
|
5094
|
+
class MarkAsAwayRequest
|
|
5095
|
+
include Google::Apis::Core::Hashable
|
|
5096
|
+
|
|
5097
|
+
def initialize(**args)
|
|
5098
|
+
update!(**args)
|
|
5099
|
+
end
|
|
5100
|
+
|
|
5101
|
+
# Update properties of this object
|
|
5102
|
+
def update!(**args)
|
|
5103
|
+
end
|
|
5104
|
+
end
|
|
5105
|
+
|
|
5106
|
+
# Request message for the `MarkAsDoNotDisturb` method.
|
|
5107
|
+
class MarkAsDoNotDisturbRequest
|
|
5108
|
+
include Google::Apis::Core::Hashable
|
|
5109
|
+
|
|
5110
|
+
# The absolute timestamp when the DND state expires.
|
|
5111
|
+
# Corresponds to the JSON property `expireTime`
|
|
5112
|
+
# @return [String]
|
|
5113
|
+
attr_accessor :expire_time
|
|
5114
|
+
|
|
5115
|
+
# The duration from the current time until the DND state expires.
|
|
5116
|
+
# Corresponds to the JSON property `ttl`
|
|
5117
|
+
# @return [String]
|
|
5118
|
+
attr_accessor :ttl
|
|
5119
|
+
|
|
5120
|
+
def initialize(**args)
|
|
5121
|
+
update!(**args)
|
|
5122
|
+
end
|
|
5123
|
+
|
|
5124
|
+
# Update properties of this object
|
|
5125
|
+
def update!(**args)
|
|
5126
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
5127
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
|
5128
|
+
end
|
|
5129
|
+
end
|
|
5130
|
+
|
|
4880
5131
|
# A matched URL in a Chat message. Chat apps can preview matched URLs. For more
|
|
4881
5132
|
# information, see [Preview links](https://developers.google.com/chat/how-tos/
|
|
4882
5133
|
# preview-links).
|
|
@@ -5793,6 +6044,31 @@ module Google
|
|
|
5793
6044
|
end
|
|
5794
6045
|
end
|
|
5795
6046
|
|
|
6047
|
+
# A principal representing an entity granted access.
|
|
6048
|
+
class Principal
|
|
6049
|
+
include Google::Apis::Core::Hashable
|
|
6050
|
+
|
|
6051
|
+
# A target audience in Google Chat. A target audience represents a group of
|
|
6052
|
+
# users within a Google Workspace organization, defined by an administrator.
|
|
6053
|
+
# Target audiences are used to configure access and visibility settings for
|
|
6054
|
+
# resources, such as making a space discoverable to a specific group of users.
|
|
6055
|
+
# For more details, see [Target audiences](https://support.google.com/a/answer/
|
|
6056
|
+
# 9934697) and [Make a space discoverable to a target audience](https://
|
|
6057
|
+
# developers.google.com/workspace/chat/space-target-audience).
|
|
6058
|
+
# Corresponds to the JSON property `audience`
|
|
6059
|
+
# @return [Google::Apis::ChatV1::Audience]
|
|
6060
|
+
attr_accessor :audience
|
|
6061
|
+
|
|
6062
|
+
def initialize(**args)
|
|
6063
|
+
update!(**args)
|
|
6064
|
+
end
|
|
6065
|
+
|
|
6066
|
+
# Update properties of this object
|
|
6067
|
+
def update!(**args)
|
|
6068
|
+
@audience = args[:audience] if args.key?(:audience)
|
|
6069
|
+
end
|
|
6070
|
+
end
|
|
6071
|
+
|
|
5796
6072
|
# Information about a message that another message quotes. When you update a
|
|
5797
6073
|
# message, you can't add or replace the `quotedMessageMetadata` field, but you
|
|
5798
6074
|
# can remove it. For example usage, see [Quote another message](https://
|
|
@@ -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.151.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 = "20260714"
|
|
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,18 @@ 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
|
+
|
|
103
|
+
class Availability
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
85
109
|
class Button
|
|
86
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
111
|
|
|
@@ -178,6 +202,12 @@ module Google
|
|
|
178
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
203
|
end
|
|
180
204
|
|
|
205
|
+
class CustomStatus
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
181
211
|
class DateInput
|
|
182
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
213
|
|
|
@@ -214,6 +244,12 @@ module Google
|
|
|
214
244
|
include Google::Apis::Core::JsonObjectSupport
|
|
215
245
|
end
|
|
216
246
|
|
|
247
|
+
class DoNotDisturbMetadata
|
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
249
|
+
|
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
251
|
+
end
|
|
252
|
+
|
|
217
253
|
class DriveDataRef
|
|
218
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
255
|
|
|
@@ -658,6 +694,24 @@ module Google
|
|
|
658
694
|
include Google::Apis::Core::JsonObjectSupport
|
|
659
695
|
end
|
|
660
696
|
|
|
697
|
+
class MarkAsActiveRequest
|
|
698
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
699
|
+
|
|
700
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
class MarkAsAwayRequest
|
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
705
|
+
|
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
class MarkAsDoNotDisturbRequest
|
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
711
|
+
|
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
713
|
+
end
|
|
714
|
+
|
|
661
715
|
class MatchedUrl
|
|
662
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
663
717
|
|
|
@@ -814,6 +868,12 @@ module Google
|
|
|
814
868
|
include Google::Apis::Core::JsonObjectSupport
|
|
815
869
|
end
|
|
816
870
|
|
|
871
|
+
class Principal
|
|
872
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
873
|
+
|
|
874
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
875
|
+
end
|
|
876
|
+
|
|
817
877
|
class QuotedMessageMetadata
|
|
818
878
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
819
879
|
|
|
@@ -1042,9 +1102,29 @@ module Google
|
|
|
1042
1102
|
include Google::Apis::Core::JsonObjectSupport
|
|
1043
1103
|
end
|
|
1044
1104
|
|
|
1105
|
+
class AccessPermissionSetting
|
|
1106
|
+
# @private
|
|
1107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1108
|
+
collection :principals, as: 'principals', class: Google::Apis::ChatV1::Principal, decorator: Google::Apis::ChatV1::Principal::Representation
|
|
1109
|
+
|
|
1110
|
+
end
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
class AccessPermissionSettings
|
|
1114
|
+
# @private
|
|
1115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1116
|
+
property :discover_space_setting, as: 'discoverSpaceSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
|
|
1117
|
+
|
|
1118
|
+
property :join_space_setting, as: 'joinSpaceSetting', class: Google::Apis::ChatV1::AccessPermissionSetting, decorator: Google::Apis::ChatV1::AccessPermissionSetting::Representation
|
|
1119
|
+
|
|
1120
|
+
end
|
|
1121
|
+
end
|
|
1122
|
+
|
|
1045
1123
|
class AccessSettings
|
|
1046
1124
|
# @private
|
|
1047
1125
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1126
|
+
property :access_permission_settings, as: 'accessPermissionSettings', class: Google::Apis::ChatV1::AccessPermissionSettings, decorator: Google::Apis::ChatV1::AccessPermissionSettings::Representation
|
|
1127
|
+
|
|
1048
1128
|
property :access_state, as: 'accessState'
|
|
1049
1129
|
property :audience, as: 'audience'
|
|
1050
1130
|
end
|
|
@@ -1142,6 +1222,25 @@ module Google
|
|
|
1142
1222
|
end
|
|
1143
1223
|
end
|
|
1144
1224
|
|
|
1225
|
+
class Audience
|
|
1226
|
+
# @private
|
|
1227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1228
|
+
property :name, as: 'name'
|
|
1229
|
+
end
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
class Availability
|
|
1233
|
+
# @private
|
|
1234
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1235
|
+
property :custom_status, as: 'customStatus', class: Google::Apis::ChatV1::CustomStatus, decorator: Google::Apis::ChatV1::CustomStatus::Representation
|
|
1236
|
+
|
|
1237
|
+
property :do_not_disturb_metadata, as: 'doNotDisturbMetadata', class: Google::Apis::ChatV1::DoNotDisturbMetadata, decorator: Google::Apis::ChatV1::DoNotDisturbMetadata::Representation
|
|
1238
|
+
|
|
1239
|
+
property :name, as: 'name'
|
|
1240
|
+
property :state, as: 'state'
|
|
1241
|
+
end
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1145
1244
|
class Button
|
|
1146
1245
|
# @private
|
|
1147
1246
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1295,6 +1394,17 @@ module Google
|
|
|
1295
1394
|
end
|
|
1296
1395
|
end
|
|
1297
1396
|
|
|
1397
|
+
class CustomStatus
|
|
1398
|
+
# @private
|
|
1399
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1400
|
+
property :emoji, as: 'emoji', class: Google::Apis::ChatV1::Emoji, decorator: Google::Apis::ChatV1::Emoji::Representation
|
|
1401
|
+
|
|
1402
|
+
property :expire_time, as: 'expireTime'
|
|
1403
|
+
property :text, as: 'text'
|
|
1404
|
+
property :ttl, as: 'ttl'
|
|
1405
|
+
end
|
|
1406
|
+
end
|
|
1407
|
+
|
|
1298
1408
|
class DateInput
|
|
1299
1409
|
# @private
|
|
1300
1410
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1363,6 +1473,13 @@ module Google
|
|
|
1363
1473
|
end
|
|
1364
1474
|
end
|
|
1365
1475
|
|
|
1476
|
+
class DoNotDisturbMetadata
|
|
1477
|
+
# @private
|
|
1478
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1479
|
+
property :expiration_time, as: 'expirationTime'
|
|
1480
|
+
end
|
|
1481
|
+
end
|
|
1482
|
+
|
|
1366
1483
|
class DriveDataRef
|
|
1367
1484
|
# @private
|
|
1368
1485
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2193,6 +2310,28 @@ module Google
|
|
|
2193
2310
|
end
|
|
2194
2311
|
end
|
|
2195
2312
|
|
|
2313
|
+
class MarkAsActiveRequest
|
|
2314
|
+
# @private
|
|
2315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2316
|
+
property :expire_time, as: 'expireTime'
|
|
2317
|
+
property :ttl, as: 'ttl'
|
|
2318
|
+
end
|
|
2319
|
+
end
|
|
2320
|
+
|
|
2321
|
+
class MarkAsAwayRequest
|
|
2322
|
+
# @private
|
|
2323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2324
|
+
end
|
|
2325
|
+
end
|
|
2326
|
+
|
|
2327
|
+
class MarkAsDoNotDisturbRequest
|
|
2328
|
+
# @private
|
|
2329
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2330
|
+
property :expire_time, as: 'expireTime'
|
|
2331
|
+
property :ttl, as: 'ttl'
|
|
2332
|
+
end
|
|
2333
|
+
end
|
|
2334
|
+
|
|
2196
2335
|
class MatchedUrl
|
|
2197
2336
|
# @private
|
|
2198
2337
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2464,6 +2603,14 @@ module Google
|
|
|
2464
2603
|
end
|
|
2465
2604
|
end
|
|
2466
2605
|
|
|
2606
|
+
class Principal
|
|
2607
|
+
# @private
|
|
2608
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2609
|
+
property :audience, as: 'audience', class: Google::Apis::ChatV1::Audience, decorator: Google::Apis::ChatV1::Audience::Representation
|
|
2610
|
+
|
|
2611
|
+
end
|
|
2612
|
+
end
|
|
2613
|
+
|
|
2467
2614
|
class QuotedMessageMetadata
|
|
2468
2615
|
# @private
|
|
2469
2616
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -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,6 +850,7 @@ 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`.
|
|
853
|
+
# Setting `use_admin_access` to `false` is available under Developer Preview.
|
|
840
854
|
# Supports the following types of [authentication](https://developers.google.com/
|
|
841
855
|
# workspace/chat/authenticate-authorize): - [User authentication](https://
|
|
842
856
|
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) with
|
|
@@ -876,18 +890,19 @@ module Google
|
|
|
876
890
|
# when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `
|
|
877
891
|
# display_name` - `external_user_allowed` - `last_active_time` - `
|
|
878
892
|
# space_history_state` - `space_type` When `useAdminAccess` is set to `false`: -
|
|
879
|
-
# `display_name` - `external_user_allowed` `create_time` and `
|
|
880
|
-
# accept a timestamp in [RFC-3339](https://www.rfc-editor.org/
|
|
881
|
-
# format and the supported comparison operators are: `=`, `<`, `>`,
|
|
882
|
-
# customer` is required
|
|
883
|
-
#
|
|
884
|
-
#
|
|
885
|
-
#
|
|
886
|
-
#
|
|
887
|
-
#
|
|
888
|
-
#
|
|
889
|
-
#
|
|
890
|
-
#
|
|
893
|
+
# `display_name` - `external_user_allowed` - `space_type` `create_time` and `
|
|
894
|
+
# last_active_time` accept a timestamp in [RFC-3339](https://www.rfc-editor.org/
|
|
895
|
+
# rfc/rfc3339) format and the supported comparison operators are: `=`, `<`, `>`,
|
|
896
|
+
# `<=`, `>=`. `customer` is required when `useAdminAccess` is set to `true`, and
|
|
897
|
+
# is used to indicate which customer to fetch spaces from. `customers/
|
|
898
|
+
# my_customer` is the only supported value. `display_name` only accepts the `HAS`
|
|
899
|
+
# (`:`) operator. The text to match is first tokenized into tokens and each
|
|
900
|
+
# token is prefix-matched case-insensitively and independently as a substring
|
|
901
|
+
# anywhere in the space's `display_name`. For example, `Fun Eve` matches `Fun
|
|
902
|
+
# event` or `The evening was fun`, but not `notFun event` or `even`. When `
|
|
903
|
+
# useAdminAccess` is set to `false`, `display_name` is required to retrieve
|
|
904
|
+
# meaningful results. Otherwise, the default behavior is to return an empty
|
|
905
|
+
# response. `external_user_allowed` accepts either `true` or `false`. `
|
|
891
906
|
# space_history_state` only accepts values from the [`historyState`] (https://
|
|
892
907
|
# developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.
|
|
893
908
|
# HistoryState) field of a `space` resource. `space_type` is required and the
|
|
@@ -912,16 +927,20 @@ module Google
|
|
|
912
927
|
# 00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (
|
|
913
928
|
# external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR
|
|
914
929
|
# space_history_state = "HISTORY_OFF") ``` The following example queries are
|
|
915
|
-
# valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World"
|
|
916
|
-
# display_name:"Hello" OR display_name:"Fun")
|
|
917
|
-
# external_user_allowed = "true" AND
|
|
930
|
+
# valid when `useAdminAccess` is set to `false`: ``` display_name:"Hello World"
|
|
931
|
+
# AND space_type = "SPACE" (display_name:"Hello" OR display_name:"Fun") AND
|
|
932
|
+
# space_type = "SPACE" (external_user_allowed = "true" AND space_type = "SPACE")
|
|
933
|
+
# // Returns an empty response. (external_user_allowed = "true" AND display_name:
|
|
934
|
+
# "Hello" AND space_type = "SPACE") ```
|
|
918
935
|
# @param [Boolean] use_admin_access
|
|
919
936
|
# When `true`, the method runs using the user's Google Workspace administrator
|
|
920
937
|
# privileges. The calling user must be a Google Workspace administrator with the
|
|
921
938
|
# [manage chat and spaces conversations privilege](https://support.google.com/a/
|
|
922
939
|
# answer/13369245). Requires either the `chat.admin.spaces.readonly` or `chat.
|
|
923
940
|
# admin.spaces` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/
|
|
924
|
-
# authenticate-authorize#chat-api-scopes).
|
|
941
|
+
# authenticate-authorize#chat-api-scopes). Setting `use_admin_access` to `false`
|
|
942
|
+
# is available under Developer Preview. [Developer Preview](https://developers.
|
|
943
|
+
# google.com/workspace/preview).
|
|
925
944
|
# @param [String] fields
|
|
926
945
|
# Selector specifying which fields to include in a partial response.
|
|
927
946
|
# @param [String] quota_user
|
|
@@ -2156,6 +2175,226 @@ module Google
|
|
|
2156
2175
|
execute_or_queue_command(command, &block)
|
|
2157
2176
|
end
|
|
2158
2177
|
|
|
2178
|
+
# Returns availability information for a human user in Google Chat. For example,
|
|
2179
|
+
# this can be used to check if a user is online or away, or to retrieve their
|
|
2180
|
+
# custom status message. This method only retrieves the authenticated user's
|
|
2181
|
+
# availability. Requires [user authentication](https://developers.google.com/
|
|
2182
|
+
# workspace/chat/authenticate-authorize-chat-user) with one of the following [
|
|
2183
|
+
# authorization scopes](https://developers.google.com/workspace/chat/
|
|
2184
|
+
# authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
|
|
2185
|
+
# chat.users.availability.readonly` - `https://www.googleapis.com/auth/chat.
|
|
2186
|
+
# users.availability`
|
|
2187
|
+
# @param [String] name
|
|
2188
|
+
# Required. The resource name of the availability to retrieve. Format: users/`
|
|
2189
|
+
# user`/availability ``user`` is the id for the Person in the People API or
|
|
2190
|
+
# Admin SDK directory API. For example, `users/123456789`. The user's email
|
|
2191
|
+
# address or `me` can also be used as an alias to refer to the caller. For
|
|
2192
|
+
# example, `users/user@example.com` or `users/me`.
|
|
2193
|
+
# @param [String] fields
|
|
2194
|
+
# Selector specifying which fields to include in a partial response.
|
|
2195
|
+
# @param [String] quota_user
|
|
2196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2198
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2199
|
+
# Request-specific options
|
|
2200
|
+
#
|
|
2201
|
+
# @yield [result, err] Result & error if block supplied
|
|
2202
|
+
# @yieldparam result [Google::Apis::ChatV1::Availability] parsed result object
|
|
2203
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2204
|
+
#
|
|
2205
|
+
# @return [Google::Apis::ChatV1::Availability]
|
|
2206
|
+
#
|
|
2207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2210
|
+
def get_user_availability(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2211
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
2212
|
+
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2213
|
+
command.response_class = Google::Apis::ChatV1::Availability
|
|
2214
|
+
command.params['name'] = name unless name.nil?
|
|
2215
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2217
|
+
execute_or_queue_command(command, &block)
|
|
2218
|
+
end
|
|
2219
|
+
|
|
2220
|
+
# Marks user as `ACTIVE` in Google Chat. Sets the user's availability state to `
|
|
2221
|
+
# ACTIVE`. The `ACTIVE` state lasts until the specified expiration, at which
|
|
2222
|
+
# point the user's state becomes `AWAY`. Note that if the user is actively using
|
|
2223
|
+
# Chat, the `ACTIVE` state duration may extend beyond the provided expiration.
|
|
2224
|
+
# This method only updates the authenticated user's availability. Requires [user
|
|
2225
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
|
2226
|
+
# authorize-chat-user) with [authorization scope](https://developers.google.com/
|
|
2227
|
+
# workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.
|
|
2228
|
+
# googleapis.com/auth/chat.users.availability`
|
|
2229
|
+
# @param [String] name
|
|
2230
|
+
# Required. The resource name of the availability to mark as active. Format:
|
|
2231
|
+
# users/`user`/availability ``user`` is the id for the Person in the People API
|
|
2232
|
+
# or Admin SDK directory API. For example, `users/123456789`. The user's email
|
|
2233
|
+
# address or `me` can also be used as an alias to refer to the caller. For
|
|
2234
|
+
# example, `users/user@example.com` or `users/me`.
|
|
2235
|
+
# @param [Google::Apis::ChatV1::MarkAsActiveRequest] mark_as_active_request_object
|
|
2236
|
+
# @param [String] fields
|
|
2237
|
+
# Selector specifying which fields to include in a partial response.
|
|
2238
|
+
# @param [String] quota_user
|
|
2239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2241
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2242
|
+
# Request-specific options
|
|
2243
|
+
#
|
|
2244
|
+
# @yield [result, err] Result & error if block supplied
|
|
2245
|
+
# @yieldparam result [Google::Apis::ChatV1::Availability] parsed result object
|
|
2246
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2247
|
+
#
|
|
2248
|
+
# @return [Google::Apis::ChatV1::Availability]
|
|
2249
|
+
#
|
|
2250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2253
|
+
def mark_availability_as_active(name, mark_as_active_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2254
|
+
command = make_simple_command(:post, 'v1/{+name}:markAsActive', options)
|
|
2255
|
+
command.request_representation = Google::Apis::ChatV1::MarkAsActiveRequest::Representation
|
|
2256
|
+
command.request_object = mark_as_active_request_object
|
|
2257
|
+
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2258
|
+
command.response_class = Google::Apis::ChatV1::Availability
|
|
2259
|
+
command.params['name'] = name unless name.nil?
|
|
2260
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2262
|
+
execute_or_queue_command(command, &block)
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2265
|
+
# Marks user as `AWAY` in Google Chat. Sets the user's state to away and is not
|
|
2266
|
+
# affected by the user's activity. This method only updates the authenticated
|
|
2267
|
+
# user's availability. Requires [user authentication](https://developers.google.
|
|
2268
|
+
# com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope]
|
|
2269
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-
|
|
2270
|
+
# scopes): - `https://www.googleapis.com/auth/chat.users.availability`
|
|
2271
|
+
# @param [String] name
|
|
2272
|
+
# Required. The resource name of the availability to mark as away. Format: users/
|
|
2273
|
+
# `user`/availability ``user`` is the id for the Person in the People API or
|
|
2274
|
+
# Admin SDK directory API. For example, `users/123456789`. The user's email
|
|
2275
|
+
# address or `me` can also be used as an alias to refer to the caller. For
|
|
2276
|
+
# example, `users/user@example.com` or `users/me`.
|
|
2277
|
+
# @param [Google::Apis::ChatV1::MarkAsAwayRequest] mark_as_away_request_object
|
|
2278
|
+
# @param [String] fields
|
|
2279
|
+
# Selector specifying which fields to include in a partial response.
|
|
2280
|
+
# @param [String] quota_user
|
|
2281
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2282
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2283
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2284
|
+
# Request-specific options
|
|
2285
|
+
#
|
|
2286
|
+
# @yield [result, err] Result & error if block supplied
|
|
2287
|
+
# @yieldparam result [Google::Apis::ChatV1::Availability] parsed result object
|
|
2288
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2289
|
+
#
|
|
2290
|
+
# @return [Google::Apis::ChatV1::Availability]
|
|
2291
|
+
#
|
|
2292
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2293
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2294
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2295
|
+
def mark_availability_as_away(name, mark_as_away_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2296
|
+
command = make_simple_command(:post, 'v1/{+name}:markAsAway', options)
|
|
2297
|
+
command.request_representation = Google::Apis::ChatV1::MarkAsAwayRequest::Representation
|
|
2298
|
+
command.request_object = mark_as_away_request_object
|
|
2299
|
+
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2300
|
+
command.response_class = Google::Apis::ChatV1::Availability
|
|
2301
|
+
command.params['name'] = name unless name.nil?
|
|
2302
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2304
|
+
execute_or_queue_command(command, &block)
|
|
2305
|
+
end
|
|
2306
|
+
|
|
2307
|
+
# Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a user's availability
|
|
2308
|
+
# state to `DO_NOT_DISTURB` until a specified expiration time. When in `
|
|
2309
|
+
# DO_NOT_DISTURB`, users typically won't receive notifications. This method only
|
|
2310
|
+
# updates the authenticated user's availability. Requires [user authentication](
|
|
2311
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
2312
|
+
# with [authorization scope](https://developers.google.com/workspace/chat/
|
|
2313
|
+
# authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
|
|
2314
|
+
# chat.users.availability`
|
|
2315
|
+
# @param [String] name
|
|
2316
|
+
# Required. The resource name of the availability to mark as Do Not Disturb.
|
|
2317
|
+
# Format: users/`user`/availability ``user`` is the id for the Person in the
|
|
2318
|
+
# People API or Admin SDK directory API. For example, `users/123456789`. The
|
|
2319
|
+
# user's email address or `me` can also be used as an alias to refer to the
|
|
2320
|
+
# caller. For example, `users/user@example.com` or `users/me`.
|
|
2321
|
+
# @param [Google::Apis::ChatV1::MarkAsDoNotDisturbRequest] mark_as_do_not_disturb_request_object
|
|
2322
|
+
# @param [String] fields
|
|
2323
|
+
# Selector specifying which fields to include in a partial response.
|
|
2324
|
+
# @param [String] quota_user
|
|
2325
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2326
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2327
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2328
|
+
# Request-specific options
|
|
2329
|
+
#
|
|
2330
|
+
# @yield [result, err] Result & error if block supplied
|
|
2331
|
+
# @yieldparam result [Google::Apis::ChatV1::Availability] parsed result object
|
|
2332
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2333
|
+
#
|
|
2334
|
+
# @return [Google::Apis::ChatV1::Availability]
|
|
2335
|
+
#
|
|
2336
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2337
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2338
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2339
|
+
def mark_availability_as_do_not_disturb(name, mark_as_do_not_disturb_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2340
|
+
command = make_simple_command(:post, 'v1/{+name}:markAsDoNotDisturb', options)
|
|
2341
|
+
command.request_representation = Google::Apis::ChatV1::MarkAsDoNotDisturbRequest::Representation
|
|
2342
|
+
command.request_object = mark_as_do_not_disturb_request_object
|
|
2343
|
+
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2344
|
+
command.response_class = Google::Apis::ChatV1::Availability
|
|
2345
|
+
command.params['name'] = name unless name.nil?
|
|
2346
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2348
|
+
execute_or_queue_command(command, &block)
|
|
2349
|
+
end
|
|
2350
|
+
|
|
2351
|
+
# Updates availability information for a human user. Only the `custom_status`
|
|
2352
|
+
# field can be updated through this method. This method only updates the
|
|
2353
|
+
# authenticated user's availability. Requires [user authentication](https://
|
|
2354
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) with
|
|
2355
|
+
# one of the following [authorization scopes](https://developers.google.com/
|
|
2356
|
+
# workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.
|
|
2357
|
+
# googleapis.com/auth/chat.users.availability`
|
|
2358
|
+
# @param [String] name
|
|
2359
|
+
# Identifier. Resource name of the user's availability. Format: `users/`user`/
|
|
2360
|
+
# availability` ``user`` is the id for the Person in the People API or Admin SDK
|
|
2361
|
+
# directory API. For example, `users/123456789`. The user's email address or `me`
|
|
2362
|
+
# can also be used as an alias to refer to the caller. For example, `users/user@
|
|
2363
|
+
# example.com` or `users/me`.
|
|
2364
|
+
# @param [Google::Apis::ChatV1::Availability] availability_object
|
|
2365
|
+
# @param [String] update_mask
|
|
2366
|
+
# Required. The list of fields to update. The only field that can be updated is `
|
|
2367
|
+
# custom_status`.
|
|
2368
|
+
# @param [String] fields
|
|
2369
|
+
# Selector specifying which fields to include in a partial response.
|
|
2370
|
+
# @param [String] quota_user
|
|
2371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2373
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2374
|
+
# Request-specific options
|
|
2375
|
+
#
|
|
2376
|
+
# @yield [result, err] Result & error if block supplied
|
|
2377
|
+
# @yieldparam result [Google::Apis::ChatV1::Availability] parsed result object
|
|
2378
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2379
|
+
#
|
|
2380
|
+
# @return [Google::Apis::ChatV1::Availability]
|
|
2381
|
+
#
|
|
2382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2385
|
+
def patch_user_availability(name, availability_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2386
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
2387
|
+
command.request_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2388
|
+
command.request_object = availability_object
|
|
2389
|
+
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2390
|
+
command.response_class = Google::Apis::ChatV1::Availability
|
|
2391
|
+
command.params['name'] = name unless name.nil?
|
|
2392
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
2393
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2395
|
+
execute_or_queue_command(command, &block)
|
|
2396
|
+
end
|
|
2397
|
+
|
|
2159
2398
|
# Creates a section in Google Chat. Sections help users group conversations and
|
|
2160
2399
|
# customize the list of spaces displayed in Chat navigation panel. Only sections
|
|
2161
2400
|
# of type `CUSTOM_SECTION` can be created. For details, see [Create and organize
|
data/lib/google/apis/chat_v1.rb
CHANGED
|
@@ -117,6 +117,12 @@ module Google
|
|
|
117
117
|
# View chat and spaces in Google Chat
|
|
118
118
|
AUTH_CHAT_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.spaces.readonly'
|
|
119
119
|
|
|
120
|
+
# See and change your availability status in Google Chat.
|
|
121
|
+
AUTH_CHAT_USERS_AVAILABILITY = 'https://www.googleapis.com/auth/chat.users.availability'
|
|
122
|
+
|
|
123
|
+
# See your availability status in Google Chat.
|
|
124
|
+
AUTH_CHAT_USERS_AVAILABILITY_READONLY = 'https://www.googleapis.com/auth/chat.users.availability.readonly'
|
|
125
|
+
|
|
120
126
|
# View and modify last read time for Google Chat conversations
|
|
121
127
|
AUTH_CHAT_USERS_READSTATE = 'https://www.googleapis.com/auth/chat.users.readstate'
|
|
122
128
|
|
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.151.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.151.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:
|