google-apis-chat_v1 0.78.0 → 0.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/chat_v1/classes.rb +31 -2
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +15 -0
- data/lib/google/apis/chat_v1/service.rb +14 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da443fbb86d05eec2586581d267c783a37843569b03fe8e7837dd319585f2857
|
4
|
+
data.tar.gz: 67abc8579f129fb342ec7d5d18dfa73d73d4879d3089a4a0a47a9926849b9026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7235df50c40b4b087356ad2f8b87a9dcdcad1f78000ba4469f84a373dcad192d4904b14edaec5b81d64d6537266447d86390279b98f69356caaf48b42c36fa4
|
7
|
+
data.tar.gz: ff6d84e2e2312ff6ab94aee6b138c5d54959580240534ac197ec84ce879edf11114848b421deaa89abf283883af55fe5afd4fe4cdddd6726b1804f8b2c8cc840
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.80.0 (2023-12-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231212
|
6
|
+
|
7
|
+
### v0.79.0 (2023-12-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231130
|
10
|
+
|
3
11
|
### v0.78.0 (2023-12-03)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231121
|
@@ -2873,6 +2873,27 @@ module Google
|
|
2873
2873
|
end
|
2874
2874
|
end
|
2875
2875
|
|
2876
|
+
# A Google Group in Google Chat.
|
2877
|
+
class Group
|
2878
|
+
include Google::Apis::Core::Hashable
|
2879
|
+
|
2880
|
+
# Resource name for a Google Group. Represents a [group](https://cloud.google.
|
2881
|
+
# com/identity/docs/reference/rest/v1/groups) in Cloud Identity Groups API.
|
2882
|
+
# Format: groups/`group`
|
2883
|
+
# Corresponds to the JSON property `name`
|
2884
|
+
# @return [String]
|
2885
|
+
attr_accessor :name
|
2886
|
+
|
2887
|
+
def initialize(**args)
|
2888
|
+
update!(**args)
|
2889
|
+
end
|
2890
|
+
|
2891
|
+
# Update properties of this object
|
2892
|
+
def update!(**args)
|
2893
|
+
@name = args[:name] if args.key?(:name)
|
2894
|
+
end
|
2895
|
+
end
|
2896
|
+
|
2876
2897
|
# Chat apps only. For a `SelectionInput` widget that uses a multiselect menu, a
|
2877
2898
|
# data source from a Google Workspace application. The data source populates
|
2878
2899
|
# selection items for the multiselect menu.
|
@@ -3235,12 +3256,19 @@ module Google
|
|
3235
3256
|
class Membership
|
3236
3257
|
include Google::Apis::Core::Hashable
|
3237
3258
|
|
3238
|
-
#
|
3239
|
-
# or was invited to join a space.
|
3259
|
+
# Optional. Immutable. The creation time of the membership, such as when a
|
3260
|
+
# member joined or was invited to join a space. [Developer Preview](https://
|
3261
|
+
# developers.google.com/workspace/preview): This field is output only, except
|
3262
|
+
# when used to import historical memberships in import mode spaces.
|
3240
3263
|
# Corresponds to the JSON property `createTime`
|
3241
3264
|
# @return [String]
|
3242
3265
|
attr_accessor :create_time
|
3243
3266
|
|
3267
|
+
# A Google Group in Google Chat.
|
3268
|
+
# Corresponds to the JSON property `groupMember`
|
3269
|
+
# @return [Google::Apis::ChatV1::Group]
|
3270
|
+
attr_accessor :group_member
|
3271
|
+
|
3244
3272
|
# A user in Google Chat. When returned as an output from a request, if your Chat
|
3245
3273
|
# app [authenticates as a user](https://developers.google.com/chat/api/guides/
|
3246
3274
|
# auth/users), the output for a `User` resource only populates the user's `name`
|
@@ -3274,6 +3302,7 @@ module Google
|
|
3274
3302
|
# Update properties of this object
|
3275
3303
|
def update!(**args)
|
3276
3304
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3305
|
+
@group_member = args[:group_member] if args.key?(:group_member)
|
3277
3306
|
@member = args[:member] if args.key?(:member)
|
3278
3307
|
@name = args[:name] if args.key?(:name)
|
3279
3308
|
@role = args[:role] if args.key?(:role)
|
@@ -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.80.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231212"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -388,6 +388,12 @@ module Google
|
|
388
388
|
include Google::Apis::Core::JsonObjectSupport
|
389
389
|
end
|
390
390
|
|
391
|
+
class Group
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
391
397
|
class HostAppDataSourceMarkup
|
392
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
399
|
|
@@ -1293,6 +1299,13 @@ module Google
|
|
1293
1299
|
end
|
1294
1300
|
end
|
1295
1301
|
|
1302
|
+
class Group
|
1303
|
+
# @private
|
1304
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1305
|
+
property :name, as: 'name'
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1296
1309
|
class HostAppDataSourceMarkup
|
1297
1310
|
# @private
|
1298
1311
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1406,6 +1419,8 @@ module Google
|
|
1406
1419
|
# @private
|
1407
1420
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1408
1421
|
property :create_time, as: 'createTime'
|
1422
|
+
property :group_member, as: 'groupMember', class: Google::Apis::ChatV1::Group, decorator: Google::Apis::ChatV1::Group::Representation
|
1423
|
+
|
1409
1424
|
property :member, as: 'member', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
1410
1425
|
|
1411
1426
|
property :name, as: 'name'
|
@@ -308,19 +308,14 @@ module Google
|
|
308
308
|
# guides/auth/users). Lists spaces visible to the caller or authenticated user.
|
309
309
|
# Group chats and DMs aren't listed until the first message is sent.
|
310
310
|
# @param [String] filter
|
311
|
-
# Optional. A query filter.
|
312
|
-
# google.com/chat/api/
|
313
|
-
# type
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# queries are rejected by the server with an `INVALID_ARGUMENT` error. With [app
|
320
|
-
# authentication](https://developers.google.com/chat/api/guides/auth/service-
|
321
|
-
# accounts), this field is ignored and the query always returns all spaces. But
|
322
|
-
# the Chat API still validates the query syntax, so invalid queries are still
|
323
|
-
# rejected.
|
311
|
+
# Optional. A query filter. You can filter spaces by the space type ([`
|
312
|
+
# space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#
|
313
|
+
# spacetype)). To filter by space type, you must specify valid enum value, such
|
314
|
+
# as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`)
|
315
|
+
# . To query for multiple space types, use the `OR` operator. For example, the
|
316
|
+
# following queries are valid: ``` space_type = "SPACE" spaceType = "GROUP_CHAT"
|
317
|
+
# OR spaceType = "DIRECT_MESSAGE" ``` Invalid queries are rejected by the server
|
318
|
+
# with an `INVALID_ARGUMENT` error.
|
324
319
|
# @param [Fixnum] page_size
|
325
320
|
# Optional. The maximum number of spaces to return. The service might return
|
326
321
|
# fewer than this value. If unspecified, at most 100 spaces are returned. The
|
@@ -646,6 +641,10 @@ module Google
|
|
646
641
|
# other parameters provided should match the call that provided the page token.
|
647
642
|
# Passing different values to the other parameters might lead to unexpected
|
648
643
|
# results.
|
644
|
+
# @param [Boolean] show_groups
|
645
|
+
# Optional. When `true`, also returns memberships associated with a Google Group,
|
646
|
+
# in addition to other types of memberships. If a filter is set, Google Group
|
647
|
+
# memberships that don't match the filter criteria aren't returned.
|
649
648
|
# @param [Boolean] show_invited
|
650
649
|
# Optional. When `true`, also returns memberships associated with invited
|
651
650
|
# members, in addition to other types of memberships. If a filter is set,
|
@@ -669,7 +668,7 @@ module Google
|
|
669
668
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
670
669
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
671
670
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
672
|
-
def list_space_members(parent, filter: nil, page_size: nil, page_token: nil, show_invited: nil, fields: nil, quota_user: nil, options: nil, &block)
|
671
|
+
def list_space_members(parent, filter: nil, page_size: nil, page_token: nil, show_groups: nil, show_invited: nil, fields: nil, quota_user: nil, options: nil, &block)
|
673
672
|
command = make_simple_command(:get, 'v1/{+parent}/members', options)
|
674
673
|
command.response_representation = Google::Apis::ChatV1::ListMembershipsResponse::Representation
|
675
674
|
command.response_class = Google::Apis::ChatV1::ListMembershipsResponse
|
@@ -677,6 +676,7 @@ module Google
|
|
677
676
|
command.query['filter'] = filter unless filter.nil?
|
678
677
|
command.query['pageSize'] = page_size unless page_size.nil?
|
679
678
|
command.query['pageToken'] = page_token unless page_token.nil?
|
679
|
+
command.query['showGroups'] = show_groups unless show_groups.nil?
|
680
680
|
command.query['showInvited'] = show_invited unless show_invited.nil?
|
681
681
|
command.query['fields'] = fields unless fields.nil?
|
682
682
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.80.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.80.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|