Skip to content

Commit 79cc51a

Browse files
feat: Automated regeneration of chat v1 client (googleapis#22350)
Auto-created at 2025-04-06 09:21:08 +0000 using the toys pull request generator.
1 parent f3c35dc commit 79cc51a

File tree

7 files changed

+327
-6
lines changed

7 files changed

+327
-6
lines changed

api_names_out.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55479,9 +55479,16 @@
5547955479
"/chat:v1/CompleteImportSpaceResponse": complete_import_space_response
5548055480
"/chat:v1/CompleteImportSpaceResponse/space": space
5548155481
"/chat:v1/CustomEmoji": custom_emoji
55482+
"/chat:v1/CustomEmoji/emojiName": emoji_name
55483+
"/chat:v1/CustomEmoji/name": name
55484+
"/chat:v1/CustomEmoji/payload": payload
55485+
"/chat:v1/CustomEmoji/temporaryImageUri": temporary_image_uri
5548255486
"/chat:v1/CustomEmoji/uid": uid
5548355487
"/chat:v1/CustomEmojiMetadata": custom_emoji_metadata
5548455488
"/chat:v1/CustomEmojiMetadata/customEmoji": custom_emoji
55489+
"/chat:v1/CustomEmojiPayload": custom_emoji_payload
55490+
"/chat:v1/CustomEmojiPayload/fileContent": file_content
55491+
"/chat:v1/CustomEmojiPayload/filename": filename
5548555492
"/chat:v1/DateInput": date_input
5548655493
"/chat:v1/DateInput/msSinceEpoch": ms_since_epoch
5548755494
"/chat:v1/DateTimeInput": date_time_input
@@ -55816,6 +55823,10 @@
5581655823
"/chat:v1/KeyValue/iconUrl": icon_url
5581755824
"/chat:v1/KeyValue/onClick": on_click
5581855825
"/chat:v1/KeyValue/topLabel": top_label
55826+
"/chat:v1/ListCustomEmojisResponse": list_custom_emojis_response
55827+
"/chat:v1/ListCustomEmojisResponse/customEmojis": custom_emojis
55828+
"/chat:v1/ListCustomEmojisResponse/customEmojis/custom_emoji": custom_emoji
55829+
"/chat:v1/ListCustomEmojisResponse/nextPageToken": next_page_token
5581955830
"/chat:v1/ListMembershipsResponse": list_memberships_response
5582055831
"/chat:v1/ListMembershipsResponse/memberships": memberships
5582155832
"/chat:v1/ListMembershipsResponse/memberships/membership": membership
@@ -56088,6 +56099,15 @@
5608856099
"/chat:v1/WidgetMarkup/image": image
5608956100
"/chat:v1/WidgetMarkup/keyValue": key_value
5609056101
"/chat:v1/WidgetMarkup/textParagraph": text_paragraph
56102+
"/chat:v1/chat.customEmojis.create": create_custom_emoji
56103+
"/chat:v1/chat.customEmojis.delete": delete_custom_emoji
56104+
"/chat:v1/chat.customEmojis.delete/name": name
56105+
"/chat:v1/chat.customEmojis.get": get_custom_emoji
56106+
"/chat:v1/chat.customEmojis.get/name": name
56107+
"/chat:v1/chat.customEmojis.list": list_custom_emojis
56108+
"/chat:v1/chat.customEmojis.list/filter": filter
56109+
"/chat:v1/chat.customEmojis.list/pageSize": page_size
56110+
"/chat:v1/chat.customEmojis.list/pageToken": page_token
5609156111
"/chat:v1/chat.dms.conversations.messages": messages_dm_conversation
5609256112
"/chat:v1/chat.dms.conversations.messages.create": create_dm_conversation_message
5609356113
"/chat:v1/chat.dms.conversations.messages.create/parent": parent

generated/google-apis-chat_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-chat_v1
22

3+
### v0.120.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250329
6+
37
### v0.119.0 (2025-03-23)
48

59
* Regenerated from discovery document revision 20250316

generated/google-apis-chat_v1/lib/google/apis/chat_v1.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ module ChatV1
6060
# Private Service: https://www.googleapis.com/auth/chat.bot
6161
AUTH_CHAT_BOT = 'https://www.googleapis.com/auth/chat.bot'
6262

63+
# View, create, and delete custom emoji in Google Chat
64+
AUTH_CHAT_CUSTOMEMOJIS = 'https://www.googleapis.com/auth/chat.customemojis'
65+
66+
# View custom emoji in Google Chat
67+
AUTH_CHAT_CUSTOMEMOJIS_READONLY = 'https://www.googleapis.com/auth/chat.customemojis.readonly'
68+
6369
# Delete conversations and spaces and remove access to associated files in Google Chat
6470
AUTH_CHAT_DELETE = 'https://www.googleapis.com/auth/chat.delete'
6571

generated/google-apis-chat_v1/lib/google/apis/chat_v1/classes.rb

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,38 @@ def update!(**args)
859859
end
860860
end
861861

862-
# Represents a custom emoji.
862+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
863863
class CustomEmoji
864864
include Google::Apis::Core::Hashable
865865

866+
# Optional. Immutable. User-provided name for the custom emoji, which is unique
867+
# within the organization. Required when the custom emoji is created, output
868+
# only otherwise. Emoji names must start and end with colons, must be lowercase
869+
# and can only contain alphanumeric characters, hyphens, and underscores.
870+
# Hyphens and underscores should be used to separate words and cannot be used
871+
# consecutively. Example: `:valid-emoji-name:`
872+
# Corresponds to the JSON property `emojiName`
873+
# @return [String]
874+
attr_accessor :emoji_name
875+
876+
# Identifier. The resource name of the custom emoji, assigned by the server.
877+
# Format: `customEmojis/`customEmoji``
878+
# Corresponds to the JSON property `name`
879+
# @return [String]
880+
attr_accessor :name
881+
882+
# Payload data for the custom emoji.
883+
# Corresponds to the JSON property `payload`
884+
# @return [Google::Apis::ChatV1::CustomEmojiPayload]
885+
attr_accessor :payload
886+
887+
# Output only. A temporary image URL for the custom emoji, valid for at least 10
888+
# minutes. Note that this is not populated in the response when the custom emoji
889+
# is created.
890+
# Corresponds to the JSON property `temporaryImageUri`
891+
# @return [String]
892+
attr_accessor :temporary_image_uri
893+
866894
# Output only. Unique key for the custom emoji resource.
867895
# Corresponds to the JSON property `uid`
868896
# @return [String]
@@ -874,6 +902,10 @@ def initialize(**args)
874902

875903
# Update properties of this object
876904
def update!(**args)
905+
@emoji_name = args[:emoji_name] if args.key?(:emoji_name)
906+
@name = args[:name] if args.key?(:name)
907+
@payload = args[:payload] if args.key?(:payload)
908+
@temporary_image_uri = args[:temporary_image_uri] if args.key?(:temporary_image_uri)
877909
@uid = args[:uid] if args.key?(:uid)
878910
end
879911
end
@@ -882,7 +914,7 @@ def update!(**args)
882914
class CustomEmojiMetadata
883915
include Google::Apis::Core::Hashable
884916

885-
# Represents a custom emoji.
917+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
886918
# Corresponds to the JSON property `customEmoji`
887919
# @return [Google::Apis::ChatV1::CustomEmoji]
888920
attr_accessor :custom_emoji
@@ -897,6 +929,35 @@ def update!(**args)
897929
end
898930
end
899931

932+
# Payload data for the custom emoji.
933+
class CustomEmojiPayload
934+
include Google::Apis::Core::Hashable
935+
936+
# Required. Input only. The image used for the custom emoji. The payload must be
937+
# under 256 KB and the dimension of the image must be square and between 64 and
938+
# 500 pixels. The restrictions are subject to change.
939+
# Corresponds to the JSON property `fileContent`
940+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
941+
# @return [String]
942+
attr_accessor :file_content
943+
944+
# Required. Input only. The image file name. Supported file extensions: `.png`, `
945+
# .jpg`, `.gif`.
946+
# Corresponds to the JSON property `filename`
947+
# @return [String]
948+
attr_accessor :filename
949+
950+
def initialize(**args)
951+
update!(**args)
952+
end
953+
954+
# Update properties of this object
955+
def update!(**args)
956+
@file_content = args[:file_content] if args.key?(:file_content)
957+
@filename = args[:filename] if args.key?(:filename)
958+
end
959+
end
960+
900961
# Date input values.
901962
class DateInput
902963
include Google::Apis::Core::Hashable
@@ -1225,7 +1286,7 @@ def update!(**args)
12251286
class Emoji
12261287
include Google::Apis::Core::Hashable
12271288

1228-
# Represents a custom emoji.
1289+
# Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
12291290
# Corresponds to the JSON property `customEmoji`
12301291
# @return [Google::Apis::ChatV1::CustomEmoji]
12311292
attr_accessor :custom_emoji
@@ -4026,6 +4087,32 @@ def update!(**args)
40264087
end
40274088
end
40284089

4090+
# A response to list custom emojis.
4091+
class ListCustomEmojisResponse
4092+
include Google::Apis::Core::Hashable
4093+
4094+
# Unordered list. List of custom emojis.
4095+
# Corresponds to the JSON property `customEmojis`
4096+
# @return [Array<Google::Apis::ChatV1::CustomEmoji>]
4097+
attr_accessor :custom_emojis
4098+
4099+
# A token that you can send as `pageToken` to retrieve the next page of results.
4100+
# If empty, there are no subsequent pages.
4101+
# Corresponds to the JSON property `nextPageToken`
4102+
# @return [String]
4103+
attr_accessor :next_page_token
4104+
4105+
def initialize(**args)
4106+
update!(**args)
4107+
end
4108+
4109+
# Update properties of this object
4110+
def update!(**args)
4111+
@custom_emojis = args[:custom_emojis] if args.key?(:custom_emojis)
4112+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4113+
end
4114+
end
4115+
40294116
# Response to list memberships of the space.
40304117
class ListMembershipsResponse
40314118
include Google::Apis::Core::Hashable

generated/google-apis-chat_v1/lib/google/apis/chat_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ChatV1
1818
# Version of the google-apis-chat_v1 gem
19-
GEM_VERSION = "0.119.0"
19+
GEM_VERSION = "0.120.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250316"
25+
REVISION = "20250329"
2626
end
2727
end
2828
end

generated/google-apis-chat_v1/lib/google/apis/chat_v1/representations.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
166166
include Google::Apis::Core::JsonObjectSupport
167167
end
168168

169+
class CustomEmojiPayload
170+
class Representation < Google::Apis::Core::JsonRepresentation; end
171+
172+
include Google::Apis::Core::JsonObjectSupport
173+
end
174+
169175
class DateInput
170176
class Representation < Google::Apis::Core::JsonRepresentation; end
171177

@@ -532,6 +538,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
532538
include Google::Apis::Core::JsonObjectSupport
533539
end
534540

541+
class ListCustomEmojisResponse
542+
class Representation < Google::Apis::Core::JsonRepresentation; end
543+
544+
include Google::Apis::Core::JsonObjectSupport
545+
end
546+
535547
class ListMembershipsResponse
536548
class Representation < Google::Apis::Core::JsonRepresentation; end
537549

@@ -1118,6 +1130,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
11181130
class CustomEmoji
11191131
# @private
11201132
class Representation < Google::Apis::Core::JsonRepresentation
1133+
property :emoji_name, as: 'emojiName'
1134+
property :name, as: 'name'
1135+
property :payload, as: 'payload', class: Google::Apis::ChatV1::CustomEmojiPayload, decorator: Google::Apis::ChatV1::CustomEmojiPayload::Representation
1136+
1137+
property :temporary_image_uri, as: 'temporaryImageUri'
11211138
property :uid, as: 'uid'
11221139
end
11231140
end
@@ -1130,6 +1147,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
11301147
end
11311148
end
11321149

1150+
class CustomEmojiPayload
1151+
# @private
1152+
class Representation < Google::Apis::Core::JsonRepresentation
1153+
property :file_content, :base64 => true, as: 'fileContent'
1154+
property :filename, as: 'filename'
1155+
end
1156+
end
1157+
11331158
class DateInput
11341159
# @private
11351160
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1833,6 +1858,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
18331858
end
18341859
end
18351860

1861+
class ListCustomEmojisResponse
1862+
# @private
1863+
class Representation < Google::Apis::Core::JsonRepresentation
1864+
collection :custom_emojis, as: 'customEmojis', class: Google::Apis::ChatV1::CustomEmoji, decorator: Google::Apis::ChatV1::CustomEmoji::Representation
1865+
1866+
property :next_page_token, as: 'nextPageToken'
1867+
end
1868+
end
1869+
18361870
class ListMembershipsResponse
18371871
# @private
18381872
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)