google-apis-chat_v1 0.150.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 +4 -0
- data/lib/google/apis/chat_v1/classes.rb +105 -0
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +59 -0
- data/lib/google/apis/chat_v1/service.rb +69 -55
- 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
|
@@ -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
|
|
@@ -5964,6 +6044,31 @@ module Google
|
|
|
5964
6044
|
end
|
|
5965
6045
|
end
|
|
5966
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
|
+
|
|
5967
6072
|
# Information about a message that another message quotes. When you update a
|
|
5968
6073
|
# message, you can't add or replace the `quotedMessageMetadata` field, but you
|
|
5969
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,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
|
|
|
@@ -1078,9 +1102,29 @@ module Google
|
|
|
1078
1102
|
include Google::Apis::Core::JsonObjectSupport
|
|
1079
1103
|
end
|
|
1080
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
|
+
|
|
1081
1123
|
class AccessSettings
|
|
1082
1124
|
# @private
|
|
1083
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
|
+
|
|
1084
1128
|
property :access_state, as: 'accessState'
|
|
1085
1129
|
property :audience, as: 'audience'
|
|
1086
1130
|
end
|
|
@@ -1178,6 +1222,13 @@ module Google
|
|
|
1178
1222
|
end
|
|
1179
1223
|
end
|
|
1180
1224
|
|
|
1225
|
+
class Audience
|
|
1226
|
+
# @private
|
|
1227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1228
|
+
property :name, as: 'name'
|
|
1229
|
+
end
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1181
1232
|
class Availability
|
|
1182
1233
|
# @private
|
|
1183
1234
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2552,6 +2603,14 @@ module Google
|
|
|
2552
2603
|
end
|
|
2553
2604
|
end
|
|
2554
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
|
+
|
|
2555
2614
|
class QuotedMessageMetadata
|
|
2556
2615
|
# @private
|
|
2557
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` - `
|
|
@@ -877,47 +890,48 @@ module Google
|
|
|
877
890
|
# when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `
|
|
878
891
|
# display_name` - `external_user_allowed` - `last_active_time` - `
|
|
879
892
|
# 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
|
-
#
|
|
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`. `
|
|
906
|
+
# space_history_state` only accepts values from the [`historyState`] (https://
|
|
907
|
+
# developers.google.com/workspace/chat/api/reference/rest/v1/spaces#Space.
|
|
908
|
+
# HistoryState) field of a `space` resource. `space_type` is required and the
|
|
909
|
+
# only valid value is `SPACE`. Across different fields, only `AND` operators are
|
|
910
|
+
# supported. A valid example is `space_type = "SPACE" AND display_name:"Hello"`
|
|
911
|
+
# and an invalid example is `space_type = "SPACE" OR display_name:"Hello"`.
|
|
912
|
+
# Among the same field, `space_type` doesn't support `AND` or `OR` operators. `
|
|
913
|
+
# display_name`, 'space_history_state', and 'external_user_allowed' only support
|
|
914
|
+
# `OR` operators. `last_active_time` and `create_time` support both `AND` and `
|
|
915
|
+
# OR` operators. `AND` can only be used to represent an interval, such as `
|
|
916
|
+
# last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-
|
|
917
|
+
# 01T00:00:00+00:00"`. The following example queries are valid when `
|
|
918
|
+
# useAdminAccess` is set to `true`: ``` customer = "customers/my_customer" AND
|
|
919
|
+
# space_type = "SPACE" customer = "customers/my_customer" AND space_type = "
|
|
920
|
+
# SPACE" AND display_name:"Hello World" customer = "customers/my_customer" AND
|
|
921
|
+
# space_type = "SPACE" AND (last_active_time < "2020-01-01T00:00:00+00:00" OR
|
|
922
|
+
# last_active_time > "2022-01-01T00:00:00+00:00") customer = "customers/
|
|
923
|
+
# my_customer" AND space_type = "SPACE" AND (display_name:"Hello World" OR
|
|
924
|
+
# display_name:"Fun event") AND (last_active_time > "2020-01-01T00:00:00+00:00"
|
|
925
|
+
# AND last_active_time < "2022-01-01T00:00:00+00:00") customer = "customers/
|
|
926
|
+
# my_customer" AND space_type = "SPACE" AND (create_time > "2019-01-01T00:00:00+
|
|
927
|
+
# 00:00" AND create_time < "2020-01-01T00:00:00+00:00") AND (
|
|
928
|
+
# external_user_allowed = "true") AND (space_history_state = "HISTORY_ON" OR
|
|
916
929
|
# 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
|
-
#
|
|
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") ```
|
|
921
935
|
# @param [Boolean] use_admin_access
|
|
922
936
|
# When `true`, the method runs using the user's Google Workspace administrator
|
|
923
937
|
# privileges. The calling user must be a Google Workspace administrator with the
|
|
@@ -2193,7 +2207,7 @@ module Google
|
|
|
2193
2207
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2194
2208
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2195
2209
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2196
|
-
def
|
|
2210
|
+
def get_user_availability(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2197
2211
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
2198
2212
|
command.response_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2199
2213
|
command.response_class = Google::Apis::ChatV1::Availability
|
|
@@ -2290,14 +2304,14 @@ module Google
|
|
|
2290
2304
|
execute_or_queue_command(command, &block)
|
|
2291
2305
|
end
|
|
2292
2306
|
|
|
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`
|
|
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`
|
|
2301
2315
|
# @param [String] name
|
|
2302
2316
|
# Required. The resource name of the availability to mark as Do Not Disturb.
|
|
2303
2317
|
# Format: users/`user`/availability ``user`` is the id for the Person in the
|
|
@@ -2368,7 +2382,7 @@ module Google
|
|
|
2368
2382
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2369
2383
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2370
2384
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2371
|
-
def
|
|
2385
|
+
def patch_user_availability(name, availability_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2372
2386
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
2373
2387
|
command.request_representation = Google::Apis::ChatV1::Availability::Representation
|
|
2374
2388
|
command.request_object = availability_object
|
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:
|