google-apis-chat_v1 0.60.0 → 0.62.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 +14 -73
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +0 -24
- data/lib/google/apis/chat_v1/service.rb +16 -15
- 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: 29162cbbc43fda0bb6fc025148be609ad230eb7397be7a75c161213b300b37a7
|
4
|
+
data.tar.gz: '05748ef61413adccc9999e6ad040814dfac44bd2d9c4409c6c1d114fbedbd922'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c23247c0a0feb61362622e692076a9ea1984ae5d924670fa1919bb9d367d84c9fc35f1598e2caec206b95e5bd9b035924ec186e34b78da921bc2d598a23d47a
|
7
|
+
data.tar.gz: 9341e24ff0ffab8ea41f9fa9889377b3b86a05080cf82e967e316905ed9eb7a65836c05013ae86dbc108593f4314c634c3b6dbe42372ab2d8c37e4142e54bd67
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.62.0 (2023-06-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230608
|
6
|
+
|
7
|
+
### v0.61.0 (2023-06-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230606
|
10
|
+
|
3
11
|
### v0.60.0 (2023-06-04)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230530
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
478
478
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
479
479
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
480
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
480
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
481
481
|
# information about the absolute color space that should be used to interpret
|
482
482
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
483
483
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -724,7 +724,9 @@ module Google
|
|
724
724
|
end
|
725
725
|
end
|
726
726
|
|
727
|
-
# Google Chat events.
|
727
|
+
# Google Chat events. To learn how to use events, see [Receive and respond to
|
728
|
+
# Google Chat events](https://developers.google.com/chat/api/guides/message-
|
729
|
+
# formats).
|
728
730
|
class DeprecatedEvent
|
729
731
|
include Google::Apis::Core::Hashable
|
730
732
|
|
@@ -1127,7 +1129,7 @@ module Google
|
|
1127
1129
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
1128
1130
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
1129
1131
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1130
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
1132
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
1131
1133
|
# information about the absolute color space that should be used to interpret
|
1132
1134
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
1133
1135
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -1207,7 +1209,7 @@ module Google
|
|
1207
1209
|
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
1208
1210
|
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
1209
1211
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1210
|
-
# CSS `rgba()` string in JavaScript. This reference page
|
1212
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't have
|
1211
1213
|
# information about the absolute color space that should be used to interpret
|
1212
1214
|
# the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
|
1213
1215
|
# applications should assume the sRGB color space. When color equality needs to
|
@@ -1453,12 +1455,6 @@ module Google
|
|
1453
1455
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1454
1456
|
attr_accessor :secondary_button
|
1455
1457
|
|
1456
|
-
# A list of widgets included in the card footer. Primary button and secondary
|
1457
|
-
# button are rendered below these widgets.
|
1458
|
-
# Corresponds to the JSON property `widgets`
|
1459
|
-
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget>]
|
1460
|
-
attr_accessor :widgets
|
1461
|
-
|
1462
1458
|
def initialize(**args)
|
1463
1459
|
update!(**args)
|
1464
1460
|
end
|
@@ -1467,7 +1463,6 @@ module Google
|
|
1467
1463
|
def update!(**args)
|
1468
1464
|
@primary_button = args[:primary_button] if args.key?(:primary_button)
|
1469
1465
|
@secondary_button = args[:secondary_button] if args.key?(:secondary_button)
|
1470
|
-
@widgets = args[:widgets] if args.key?(:widgets)
|
1471
1466
|
end
|
1472
1467
|
end
|
1473
1468
|
|
@@ -1764,64 +1759,6 @@ module Google
|
|
1764
1759
|
end
|
1765
1760
|
end
|
1766
1761
|
|
1767
|
-
# The CardFixedFooter can contain a list of these widgets.
|
1768
|
-
class GoogleAppsCardV1FooterWidget
|
1769
|
-
include Google::Apis::Core::Hashable
|
1770
|
-
|
1771
|
-
# A list of buttons layed out horizontally.
|
1772
|
-
# Corresponds to the JSON property `buttonList`
|
1773
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
1774
|
-
attr_accessor :button_list
|
1775
|
-
|
1776
|
-
# Lets users input a date, a time, or both a date and a time. Users can input
|
1777
|
-
# text or use the picker to select dates and times. If users input an invalid
|
1778
|
-
# date or time, the picker shows an error that prompts users to input the
|
1779
|
-
# information correctly.
|
1780
|
-
# Corresponds to the JSON property `dateTimePicker`
|
1781
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
1782
|
-
attr_accessor :date_time_picker
|
1783
|
-
|
1784
|
-
# A widget that displays text with optional decorations such as a label above or
|
1785
|
-
# below the text, an icon in front of the text, a selection widget, or a button
|
1786
|
-
# after the text.
|
1787
|
-
# Corresponds to the JSON property `decoratedText`
|
1788
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText]
|
1789
|
-
attr_accessor :decorated_text
|
1790
|
-
|
1791
|
-
# A field in which users can enter text. Supports suggestions and on-change
|
1792
|
-
# actions. Chat apps receive and can process the value of entered text during
|
1793
|
-
# form input events. For details about working with form inputs, see [Receive
|
1794
|
-
# form data](https://developers.google.com/chat/how-tos/dialogs#
|
1795
|
-
# receive_form_data_from_dialogs). When you need to collect undefined or
|
1796
|
-
# abstract data from users, use a text input. To collect defined or enumerated
|
1797
|
-
# data from users, use the SelectionInput widget.
|
1798
|
-
# Corresponds to the JSON property `textInput`
|
1799
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
|
1800
|
-
attr_accessor :text_input
|
1801
|
-
|
1802
|
-
# A paragraph of text that supports formatting. For more information about
|
1803
|
-
# formatting text, see [Formatting text in Google Chat apps](https://developers.
|
1804
|
-
# google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [
|
1805
|
-
# Formatting text in Google Workspace Add-ons](https://developers.google.com/
|
1806
|
-
# apps-script/add-ons/concepts/widgets#text_formatting).
|
1807
|
-
# Corresponds to the JSON property `textParagraph`
|
1808
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
1809
|
-
attr_accessor :text_paragraph
|
1810
|
-
|
1811
|
-
def initialize(**args)
|
1812
|
-
update!(**args)
|
1813
|
-
end
|
1814
|
-
|
1815
|
-
# Update properties of this object
|
1816
|
-
def update!(**args)
|
1817
|
-
@button_list = args[:button_list] if args.key?(:button_list)
|
1818
|
-
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
1819
|
-
@decorated_text = args[:decorated_text] if args.key?(:decorated_text)
|
1820
|
-
@text_input = args[:text_input] if args.key?(:text_input)
|
1821
|
-
@text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
|
1822
|
-
end
|
1823
|
-
end
|
1824
|
-
|
1825
1762
|
# Displays a grid with a collection of items. Items can only include text or
|
1826
1763
|
# images. A grid supports any number of columns and items. The number of rows is
|
1827
1764
|
# determined by items divided by columns. A grid with 10 items and 2 columns has
|
@@ -2292,9 +2229,9 @@ module Google
|
|
2292
2229
|
class GoogleAppsCardV1SelectionItem
|
2293
2230
|
include Google::Apis::Core::Hashable
|
2294
2231
|
|
2295
|
-
#
|
2296
|
-
# for radio buttons
|
2297
|
-
#
|
2232
|
+
# Whether the item is selected by default. If the selection input only accepts
|
2233
|
+
# one value (such as for radio buttons or a dropdown menu), only set this field
|
2234
|
+
# for one item.
|
2298
2235
|
# Corresponds to the JSON property `selected`
|
2299
2236
|
# @return [Boolean]
|
2300
2237
|
attr_accessor :selected
|
@@ -3181,7 +3118,11 @@ module Google
|
|
3181
3118
|
# @return [String]
|
3182
3119
|
attr_accessor :client_assigned_message_id
|
3183
3120
|
|
3184
|
-
#
|
3121
|
+
# For spaces created in Chat, the time at which the message was created. This
|
3122
|
+
# field is output only, except when used in imported spaces. [Developer Preview](
|
3123
|
+
# https://developers.google.com/workspace/preview): For imported spaces, set
|
3124
|
+
# this field to the historical timestamp at which the message was created in the
|
3125
|
+
# source in order to preserve the original creation time.
|
3185
3126
|
# Corresponds to the JSON property `createTime`
|
3186
3127
|
# @return [String]
|
3187
3128
|
attr_accessor :create_time
|
@@ -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.62.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 = "20230608"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -262,12 +262,6 @@ module Google
|
|
262
262
|
include Google::Apis::Core::JsonObjectSupport
|
263
263
|
end
|
264
264
|
|
265
|
-
class GoogleAppsCardV1FooterWidget
|
266
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
-
|
268
|
-
include Google::Apis::Core::JsonObjectSupport
|
269
|
-
end
|
270
|
-
|
271
265
|
class GoogleAppsCardV1Grid
|
272
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
267
|
|
@@ -921,8 +915,6 @@ module Google
|
|
921
915
|
|
922
916
|
property :secondary_button, as: 'secondaryButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
923
917
|
|
924
|
-
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1FooterWidget::Representation
|
925
|
-
|
926
918
|
end
|
927
919
|
end
|
928
920
|
|
@@ -997,22 +989,6 @@ module Google
|
|
997
989
|
end
|
998
990
|
end
|
999
991
|
|
1000
|
-
class GoogleAppsCardV1FooterWidget
|
1001
|
-
# @private
|
1002
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1003
|
-
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1004
|
-
|
1005
|
-
property :date_time_picker, as: 'dateTimePicker', class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker::Representation
|
1006
|
-
|
1007
|
-
property :decorated_text, as: 'decoratedText', class: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText::Representation
|
1008
|
-
|
1009
|
-
property :text_input, as: 'textInput', class: Google::Apis::ChatV1::GoogleAppsCardV1TextInput, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextInput::Representation
|
1010
|
-
|
1011
|
-
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1012
|
-
|
1013
|
-
end
|
1014
|
-
end
|
1015
|
-
|
1016
992
|
class GoogleAppsCardV1Grid
|
1017
993
|
# @private
|
1018
994
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -571,8 +571,9 @@ module Google
|
|
571
571
|
# developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
572
572
|
# memberships` or `chat.memberships.readonly` authorization scope.
|
573
573
|
# @param [String] name
|
574
|
-
# Required. Resource name of the membership to retrieve.
|
575
|
-
# members
|
574
|
+
# Required. Resource name of the membership to retrieve. To get the app's own
|
575
|
+
# membership, you can optionally use `spaces/`space`/members/app`. Format: `
|
576
|
+
# spaces/`space`/members/`member`` or `spaces/`space`/members/app`
|
576
577
|
# @param [String] fields
|
577
578
|
# Selector specifying which fields to include in a partial response.
|
578
579
|
# @param [String] quota_user
|
@@ -685,11 +686,11 @@ module Google
|
|
685
686
|
# google.com/chat/api/guides/auth/service-accounts). [User authentication](https:
|
686
687
|
# //developers.google.com/chat/api/guides/auth/users) requires the `chat.
|
687
688
|
# messages` or `chat.messages.create` authorization scope. Creating a card
|
688
|
-
# message requires [app authentication] (https://developers.
|
689
|
-
# guides/auth/service-accounts) Because Chat provides
|
690
|
-
# webhooks](https://developers.google.com/chat/how-tos/
|
691
|
-
# URL that's generated when a webhook is registered,
|
692
|
-
# messages without a service account or user authentication.
|
689
|
+
# message only supports and requires [app authentication] (https://developers.
|
690
|
+
# google.com/chat/api/guides/auth/service-accounts). Because Chat provides
|
691
|
+
# authentication for [webhooks](https://developers.google.com/chat/how-tos/
|
692
|
+
# webhooks) as part of the URL that's generated when a webhook is registered,
|
693
|
+
# webhooks can create messages without a service account or user authentication.
|
693
694
|
# @param [String] parent
|
694
695
|
# Required. The resource name of the space in which to create a message. Format:
|
695
696
|
# `spaces/`space``
|
@@ -939,10 +940,10 @@ module Google
|
|
939
940
|
# name_a_created_message) or the request fails.
|
940
941
|
# @param [String] update_mask
|
941
942
|
# Required. The field paths to update. Separate multiple values with commas.
|
942
|
-
# Currently supported field paths: - `text` - `cards` (Requires [
|
943
|
-
# authentication](/chat/api/guides/auth/service-accounts).) - `
|
944
|
-
# Requires [service account authentication](/chat/api/guides/auth/
|
945
|
-
# accounts).)
|
943
|
+
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
944
|
+
# service account authentication](/chat/api/guides/auth/service-accounts).) - `
|
945
|
+
# cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
|
946
|
+
# service-accounts).)
|
946
947
|
# @param [String] fields
|
947
948
|
# Selector specifying which fields to include in a partial response.
|
948
949
|
# @param [String] quota_user
|
@@ -995,10 +996,10 @@ module Google
|
|
995
996
|
# name_a_created_message) or the request fails.
|
996
997
|
# @param [String] update_mask
|
997
998
|
# Required. The field paths to update. Separate multiple values with commas.
|
998
|
-
# Currently supported field paths: - `text` - `cards` (Requires [
|
999
|
-
# authentication](/chat/api/guides/auth/service-accounts).) - `
|
1000
|
-
# Requires [service account authentication](/chat/api/guides/auth/
|
1001
|
-
# accounts).)
|
999
|
+
# Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
|
1000
|
+
# service account authentication](/chat/api/guides/auth/service-accounts).) - `
|
1001
|
+
# cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
|
1002
|
+
# service-accounts).)
|
1002
1003
|
# @param [String] fields
|
1003
1004
|
# Selector specifying which fields to include in a partial response.
|
1004
1005
|
# @param [String] quota_user
|
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.62.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-06-
|
11
|
+
date: 2023-06-25 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.62.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: []
|