google-apis-chat_v1 0.66.0 → 0.67.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 +350 -255
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +1 -0
- data/lib/google/apis/chat_v1/service.rb +46 -34
- metadata +3 -3
@@ -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.67.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 = "20230801"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1522,6 +1522,7 @@ module Google
|
|
1522
1522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1523
1523
|
property :admin_installed, as: 'adminInstalled'
|
1524
1524
|
property :display_name, as: 'displayName'
|
1525
|
+
property :external_user_allowed, as: 'externalUserAllowed'
|
1525
1526
|
property :name, as: 'name'
|
1526
1527
|
property :single_user_bot_dm, as: 'singleUserBotDm'
|
1527
1528
|
property :space_details, as: 'spaceDetails', class: Google::Apis::ChatV1::SpaceDetails, decorator: Google::Apis::ChatV1::SpaceDetails::Representation
|
@@ -139,11 +139,11 @@ module Google
|
|
139
139
|
execute_or_queue_command(command, &block)
|
140
140
|
end
|
141
141
|
|
142
|
-
# Creates a named space. Spaces grouped by topics
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
142
|
+
# Creates a named space. Spaces grouped by topics aren't supported. For an
|
143
|
+
# example, see [Create a space](https://developers.google.com/chat/api/guides/v1/
|
144
|
+
# spaces/create). Requires [user authentication](https://developers.google.com/
|
145
|
+
# chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces`
|
146
|
+
# scope.
|
147
147
|
# @param [Google::Apis::ChatV1::Space] space_object
|
148
148
|
# @param [String] request_id
|
149
149
|
# Optional. A unique identifier for this request. A random UUID is recommended.
|
@@ -232,7 +232,10 @@ module Google
|
|
232
232
|
# or the `id` for the [user](https://developers.google.com/admin-sdk/directory/
|
233
233
|
# reference/rest/v1/users) in the Directory API. For example, if the People API `
|
234
234
|
# Person.resourceName` is `people/123456789`, you can find a direct message with
|
235
|
-
# that person by using `users/123456789` as the `name`.
|
235
|
+
# that person by using `users/123456789` as the `name`. When [authenticated as a
|
236
|
+
# user](https://developers.google.com/chat/api/guides/auth/users), you can use
|
237
|
+
# the email as an alias for ``user``. For example, `users/example@gmail.com`
|
238
|
+
# where `example@gmail.com` is the email of the Google Chat user.
|
236
239
|
# @param [String] fields
|
237
240
|
# Selector specifying which fields to include in a partial response.
|
238
241
|
# @param [String] quota_user
|
@@ -421,18 +424,18 @@ module Google
|
|
421
424
|
# in the request. For an example, see [Set up a space](https://developers.google.
|
422
425
|
# com/chat/api/guides/v1/spaces/set-up). To specify the human members to add,
|
423
426
|
# add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`.
|
424
|
-
# To add a human user, use `users/`user``, where ``user``
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
427
|
+
# To add a human user, use `users/`user``, where ``user`` can be the email
|
428
|
+
# address for the user. For users in the same Workspace organization ``user``
|
429
|
+
# can also be the ``person_id`` for the person from the People API, or the `id`
|
430
|
+
# for the user in the Directory API. For example, if the People API Person `
|
431
|
+
# resourceName` for `user@example.com` is `people/123456789`, you can add the
|
432
|
+
# user to the space by setting the `membership.member.name` to `users/user@
|
433
|
+
# example.com` or `users/123456789`. For a space or group chat, if the caller
|
434
|
+
# blocks or is blocked by some members, then those members aren't added to the
|
435
|
+
# created space. To create a direct message (DM) between the calling user and
|
436
|
+
# another human user, specify exactly one membership to represent the human user.
|
437
|
+
# If one user blocks the other, the request fails and the DM isn't created. To
|
438
|
+
# create a DM between the calling user and the calling app, set `Space.
|
436
439
|
# singleUserBotDm` to `true` and don't specify any memberships. You can only use
|
437
440
|
# this method to set up a DM with the calling app. To add the calling app as a
|
438
441
|
# member of a space or an existing DM between two human users, see [create a
|
@@ -483,13 +486,13 @@ module Google
|
|
483
486
|
# the member to add, set the `membership.member.name` in the `
|
484
487
|
# CreateMembershipRequest`: - To add the calling app to a space or a direct
|
485
488
|
# message between two human users, use `users/app`. Unable to add other apps to
|
486
|
-
# the space. - To add a human user, use `users/`user``, where ``user``
|
487
|
-
# the
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
489
|
+
# the space. - To add a human user, use `users/`user``, where ``user`` can be
|
490
|
+
# the email address for the user. For users in the same Workspace organization ``
|
491
|
+
# user`` can also be the ``person_id`` for the person from the People API, or
|
492
|
+
# the `id` for the user in the Directory API. For example, if the People API
|
493
|
+
# Person `resourceName` for `user@example.com` is `people/123456789`, you can
|
494
|
+
# add the user to the space by setting the `membership.member.name` to `users/
|
495
|
+
# user@example.com` or `users/123456789`.
|
493
496
|
# @param [String] parent
|
494
497
|
# Required. The resource name of the space for which to create the membership.
|
495
498
|
# Format: spaces/`space`
|
@@ -531,10 +534,12 @@ module Google
|
|
531
534
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
532
535
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
533
536
|
# memberships. When deleting a human membership, requires the `chat.memberships`
|
534
|
-
# scope and `spaces/`space`/members/`member`` format.
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
537
|
+
# scope and `spaces/`space`/members/`member`` format. You can use the email as
|
538
|
+
# an alias for ``member``. For example, `spaces/`space`/members/example@gmail.
|
539
|
+
# com` where `example@gmail.com` is the email of the Google Chat user. When
|
540
|
+
# deleting an app membership, requires the `chat.memberships.app` scope and `
|
541
|
+
# spaces/`space`/members/app` format. Format: `spaces/`space`/members/`member``
|
542
|
+
# or `spaces/`space`/members/app`.
|
538
543
|
# @param [String] fields
|
539
544
|
# Selector specifying which fields to include in a partial response.
|
540
545
|
# @param [String] quota_user
|
@@ -573,7 +578,11 @@ module Google
|
|
573
578
|
# @param [String] name
|
574
579
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
575
580
|
# membership, you can optionally use `spaces/`space`/members/app`. Format: `
|
576
|
-
# spaces/`space`/members/`member`` or `spaces/`space`/members/app`
|
581
|
+
# spaces/`space`/members/`member`` or `spaces/`space`/members/app` When [
|
582
|
+
# authenticated as a user](https://developers.google.com/chat/api/guides/auth/
|
583
|
+
# users), you can use the user's email as an alias for ``member``. For example, `
|
584
|
+
# spaces/`space`/members/example@gmail.com` where `example@gmail.com` is the
|
585
|
+
# email of the Google Chat user.
|
577
586
|
# @param [String] fields
|
578
587
|
# Selector specifying which fields to include in a partial response.
|
579
588
|
# @param [String] quota_user
|
@@ -761,6 +770,8 @@ module Google
|
|
761
770
|
# service-accounts) and [user authentication](https://developers.google.com/chat/
|
762
771
|
# api/guides/auth/users). [User authentication](https://developers.google.com/
|
763
772
|
# chat/api/guides/auth/users) requires the `chat.messages` authorization scope.
|
773
|
+
# Requests authenticated with service accounts can only delete messages created
|
774
|
+
# by the calling Chat app.
|
764
775
|
# @param [String] name
|
765
776
|
# Required. Resource name of the message that you want to delete, in the form `
|
766
777
|
# spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
|
@@ -846,8 +857,7 @@ module Google
|
|
846
857
|
# from blocked members and spaces. For an example, see [List messages](/chat/api/
|
847
858
|
# guides/v1/messages/list). Requires [user authentication](https://developers.
|
848
859
|
# google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.
|
849
|
-
# messages.readonly` authorization scope.
|
850
|
-
# spaces that don't allow users from outside the Workspace organization to join.
|
860
|
+
# messages.readonly` authorization scope.
|
851
861
|
# @param [String] parent
|
852
862
|
# Required. The resource name of the space to list messages from. Format: `
|
853
863
|
# spaces/`space``
|
@@ -929,7 +939,8 @@ module Google
|
|
929
939
|
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
930
940
|
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
931
941
|
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
932
|
-
# requires the `chat.messages` authorization scope.
|
942
|
+
# requires the `chat.messages` authorization scope. Requests authenticated with
|
943
|
+
# service accounts can only update messages created by the calling Chat app.
|
933
944
|
# @param [String] name
|
934
945
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
935
946
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
@@ -985,7 +996,8 @@ module Google
|
|
985
996
|
# developers.google.com/chat/api/guides/auth/service-accounts) and [user
|
986
997
|
# authentication](https://developers.google.com/chat/api/guides/auth/users). [
|
987
998
|
# User authentication](https://developers.google.com/chat/api/guides/auth/users)
|
988
|
-
# requires the `chat.messages` authorization scope.
|
999
|
+
# requires the `chat.messages` authorization scope. Requests authenticated with
|
1000
|
+
# service accounts can only update messages created by the calling Chat app.
|
989
1001
|
# @param [String] name
|
990
1002
|
# Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
|
991
1003
|
# messages/BBBBBBBBBBB.BBBBBBBBBBB`
|
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.67.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-
|
11
|
+
date: 2023-08-06 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.67.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: []
|