google-apis-chat_v1 0.157.0 → 0.158.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 229bd246c6aa07e7e8d65ba6304d9a7cf775d2fc92215b58eaaa81ee3c2c6584
|
|
4
|
+
data.tar.gz: e91004ef33bde55404f03d90085295ca51f3c01b609a511cab0b6f141a38055f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6c99ec501242124fa98153cf1a2c9ffc587918d72ede6f903a85aae8a2494194324c632bbb7c80de060b4c44c4b9152531dd7a664b9bc6922b8f12d8340ca89
|
|
7
|
+
data.tar.gz: 523480b66e3d695e30983a3f242a29dd3f0178ff4a4b6df785c6cb8bac6437cdc7399516a259a76a8d1da335422a3b3ecc44ada2956c7624df0b556ee232a6d4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release history for google-apis-chat_v1
|
|
2
2
|
|
|
3
|
+
### v0.158.0 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20261015
|
|
6
|
+
* Regenerated using generator version 0.19.1
|
|
7
|
+
|
|
3
8
|
### v0.157.0 (2026-10-04)
|
|
4
9
|
|
|
5
10
|
* Regenerated from discovery document revision 20260927
|
|
@@ -727,6 +727,15 @@ module Google
|
|
|
727
727
|
# @return [String]
|
|
728
728
|
attr_accessor :card_id
|
|
729
729
|
|
|
730
|
+
# If your Chat app [authenticates as a user](https://developers.google.com/
|
|
731
|
+
# workspace/chat/authenticate-authorize-chat-user), the output for a `User`
|
|
732
|
+
# resource (such as in the Messages and Memberships APIs) only populates the `
|
|
733
|
+
# name` and `type` fields for both internal and external users, unless they are
|
|
734
|
+
# members of the space or have prior affinity with the calling user.
|
|
735
|
+
# Corresponds to the JSON property `ownerUser`
|
|
736
|
+
# @return [Google::Apis::ChatV1::User]
|
|
737
|
+
attr_accessor :owner_user
|
|
738
|
+
|
|
730
739
|
def initialize(**args)
|
|
731
740
|
update!(**args)
|
|
732
741
|
end
|
|
@@ -735,6 +744,7 @@ module Google
|
|
|
735
744
|
def update!(**args)
|
|
736
745
|
@card = args[:card] if args.key?(:card)
|
|
737
746
|
@card_id = args[:card_id] if args.key?(:card_id)
|
|
747
|
+
@owner_user = args[:owner_user] if args.key?(:owner_user)
|
|
738
748
|
end
|
|
739
749
|
end
|
|
740
750
|
|
|
@@ -6367,6 +6377,41 @@ module Google
|
|
|
6367
6377
|
end
|
|
6368
6378
|
end
|
|
6369
6379
|
|
|
6380
|
+
# Request message for ReplaceMessageCards API method.
|
|
6381
|
+
class ReplaceMessageCardsRequest
|
|
6382
|
+
include Google::Apis::Core::Hashable
|
|
6383
|
+
|
|
6384
|
+
# Optional. An array of [cards](https://developers.google.com/workspace/chat/api/
|
|
6385
|
+
# reference/rest/v1/cards) to be included in the message. These cards will
|
|
6386
|
+
# replace the existing cards of the message. If empty, the original cards
|
|
6387
|
+
# included in the message will be cleared.
|
|
6388
|
+
# Corresponds to the JSON property `cardsV2`
|
|
6389
|
+
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
|
6390
|
+
attr_accessor :cards_v2
|
|
6391
|
+
|
|
6392
|
+
def initialize(**args)
|
|
6393
|
+
update!(**args)
|
|
6394
|
+
end
|
|
6395
|
+
|
|
6396
|
+
# Update properties of this object
|
|
6397
|
+
def update!(**args)
|
|
6398
|
+
@cards_v2 = args[:cards_v2] if args.key?(:cards_v2)
|
|
6399
|
+
end
|
|
6400
|
+
end
|
|
6401
|
+
|
|
6402
|
+
# Response message for ReplaceMessageCards API.
|
|
6403
|
+
class ReplaceMessageCardsResponse
|
|
6404
|
+
include Google::Apis::Core::Hashable
|
|
6405
|
+
|
|
6406
|
+
def initialize(**args)
|
|
6407
|
+
update!(**args)
|
|
6408
|
+
end
|
|
6409
|
+
|
|
6410
|
+
# Update properties of this object
|
|
6411
|
+
def update!(**args)
|
|
6412
|
+
end
|
|
6413
|
+
end
|
|
6414
|
+
|
|
6370
6415
|
# A rich link to a resource. Rich links can be associated with the plain-text
|
|
6371
6416
|
# body of the message or represent chips that link to Google Workspace resources
|
|
6372
6417
|
# like Google Docs or Sheets with `start_index` and `length` of 0.
|
|
@@ -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.158.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.19.
|
|
22
|
+
GENERATOR_VERSION = "0.19.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261015"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -928,6 +928,18 @@ module Google
|
|
|
928
928
|
include Google::Apis::Core::JsonObjectSupport
|
|
929
929
|
end
|
|
930
930
|
|
|
931
|
+
class ReplaceMessageCardsRequest
|
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
933
|
+
|
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
class ReplaceMessageCardsResponse
|
|
938
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
939
|
+
|
|
940
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
941
|
+
end
|
|
942
|
+
|
|
931
943
|
class RichLinkMetadata
|
|
932
944
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
933
945
|
|
|
@@ -1335,6 +1347,8 @@ module Google
|
|
|
1335
1347
|
property :card, as: 'card', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
|
1336
1348
|
|
|
1337
1349
|
property :card_id, as: 'cardId'
|
|
1350
|
+
property :owner_user, as: 'ownerUser', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
|
1351
|
+
|
|
1338
1352
|
end
|
|
1339
1353
|
end
|
|
1340
1354
|
|
|
@@ -2738,6 +2752,20 @@ module Google
|
|
|
2738
2752
|
end
|
|
2739
2753
|
end
|
|
2740
2754
|
|
|
2755
|
+
class ReplaceMessageCardsRequest
|
|
2756
|
+
# @private
|
|
2757
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2758
|
+
collection :cards_v2, as: 'cardsV2', class: Google::Apis::ChatV1::CardWithId, decorator: Google::Apis::ChatV1::CardWithId::Representation
|
|
2759
|
+
|
|
2760
|
+
end
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2763
|
+
class ReplaceMessageCardsResponse
|
|
2764
|
+
# @private
|
|
2765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2766
|
+
end
|
|
2767
|
+
end
|
|
2768
|
+
|
|
2741
2769
|
class RichLinkMetadata
|
|
2742
2770
|
# @private
|
|
2743
2771
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1917,6 +1917,47 @@ module Google
|
|
|
1917
1917
|
execute_or_queue_command(command, &block)
|
|
1918
1918
|
end
|
|
1919
1919
|
|
|
1920
|
+
# Replaces the cards included in a message. A Chat app can only replace cards on
|
|
1921
|
+
# a human-created message if the message already contains cards, and the cards
|
|
1922
|
+
# were created by the app. If the app replaces the cards with an empty list, the
|
|
1923
|
+
# cards are removed. After removing the cards, the app cannot add cards back to
|
|
1924
|
+
# the message. Requires [app authentication](https://developers.google.com/
|
|
1925
|
+
# workspace/chat/authenticate-authorize-chat-app) with the [authorization scope](
|
|
1926
|
+
# https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-
|
|
1927
|
+
# scopes): - `https://www.googleapis.com/auth/chat.bot`
|
|
1928
|
+
# @param [String] name
|
|
1929
|
+
# Required. The resource name of the message. Format: `spaces/`space`/messages/`
|
|
1930
|
+
# message``
|
|
1931
|
+
# @param [Google::Apis::ChatV1::ReplaceMessageCardsRequest] replace_message_cards_request_object
|
|
1932
|
+
# @param [String] fields
|
|
1933
|
+
# Selector specifying which fields to include in a partial response.
|
|
1934
|
+
# @param [String] quota_user
|
|
1935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1937
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1938
|
+
# Request-specific options
|
|
1939
|
+
#
|
|
1940
|
+
# @yield [result, err] Result & error if block supplied
|
|
1941
|
+
# @yieldparam result [Google::Apis::ChatV1::ReplaceMessageCardsResponse] parsed result object
|
|
1942
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1943
|
+
#
|
|
1944
|
+
# @return [Google::Apis::ChatV1::ReplaceMessageCardsResponse]
|
|
1945
|
+
#
|
|
1946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1949
|
+
def replace_space_message_cards(name, replace_message_cards_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1950
|
+
command = make_simple_command(:post, 'v1/{+name}:replaceCards', options)
|
|
1951
|
+
command.request_representation = Google::Apis::ChatV1::ReplaceMessageCardsRequest::Representation
|
|
1952
|
+
command.request_object = replace_message_cards_request_object
|
|
1953
|
+
command.response_representation = Google::Apis::ChatV1::ReplaceMessageCardsResponse::Representation
|
|
1954
|
+
command.response_class = Google::Apis::ChatV1::ReplaceMessageCardsResponse
|
|
1955
|
+
command.params['name'] = name unless name.nil?
|
|
1956
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1958
|
+
execute_or_queue_command(command, &block)
|
|
1959
|
+
end
|
|
1960
|
+
|
|
1920
1961
|
# Searches for messages in Google Chat that the calling user has access to.
|
|
1921
1962
|
# Returns a list of messages matching the search criteria. To search across all
|
|
1922
1963
|
# spaces the user has access to, set `parent` to `spaces/-`. Using any other
|
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.158.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.158.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:
|