google-apis-chat_v1 0.60.0 → 0.61.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: 5c64f5a711895ad5ea19ebb0c4814d29dca1c4db5e930174ef46368c28e519f3
4
- data.tar.gz: 584b21b133f1df431c8ae75b095602765075f59e1c525b821af37d483cb3926c
3
+ metadata.gz: 3212a2f13b4274a1499f06bb70bb3226875fb927a344b424f1069c320ba843e4
4
+ data.tar.gz: 228b2d888caafef69ddf10292cb9e0b33b19051b7de738be5685df8d1655c124
5
5
  SHA512:
6
- metadata.gz: 33592115b385acb7138200f0f9797630e93fad422c84cc860d3562a095ce5b2e9cfc852046bea1b0809775340b88ef4765afaa3e4db27ca2f3b362a3667c68be
7
- data.tar.gz: fb7e8448ecdbe96fb503f163e8ad3e3b42a44fba44285c8ad732a9be6d038ff93762b5e63bcc508c7953d6f16d858eb4d081accd7c2e383d6bed2f68c8dad654
6
+ metadata.gz: eb8268829655d7d61f29dbf40c09199646c5988a5332a5b64729886e7abf00bf8b909a47db4526836ccba1f13367831c7ed37c2e55af471ebfb09842fa7a675f
7
+ data.tar.gz: 2712fa2be9f25116694952505163434a7f9a636a87fc8ac23d0a1b291903f76ea07fb10cb5a9a764e9111dcb880aa5fe0625177e50d0c69ab33d213ef7656e69
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.61.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230606
6
+
3
7
  ### v0.60.0 (2023-06-04)
4
8
 
5
9
  * 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 does not have
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
@@ -1127,7 +1127,7 @@ module Google
1127
1127
  # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1128
1128
  # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1129
1129
  # 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 does not have
1130
+ # CSS `rgba()` string in JavaScript. This reference page doesn't have
1131
1131
  # information about the absolute color space that should be used to interpret
1132
1132
  # the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
1133
1133
  # applications should assume the sRGB color space. When color equality needs to
@@ -1207,7 +1207,7 @@ module Google
1207
1207
  # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1208
1208
  # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1209
1209
  # 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 does not have
1210
+ # CSS `rgba()` string in JavaScript. This reference page doesn't have
1211
1211
  # information about the absolute color space that should be used to interpret
1212
1212
  # the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default,
1213
1213
  # applications should assume the sRGB color space. When color equality needs to
@@ -1453,12 +1453,6 @@ module Google
1453
1453
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
1454
1454
  attr_accessor :secondary_button
1455
1455
 
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
1456
  def initialize(**args)
1463
1457
  update!(**args)
1464
1458
  end
@@ -1467,7 +1461,6 @@ module Google
1467
1461
  def update!(**args)
1468
1462
  @primary_button = args[:primary_button] if args.key?(:primary_button)
1469
1463
  @secondary_button = args[:secondary_button] if args.key?(:secondary_button)
1470
- @widgets = args[:widgets] if args.key?(:widgets)
1471
1464
  end
1472
1465
  end
1473
1466
 
@@ -1764,64 +1757,6 @@ module Google
1764
1757
  end
1765
1758
  end
1766
1759
 
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
1760
  # Displays a grid with a collection of items. Items can only include text or
1826
1761
  # images. A grid supports any number of columns and items. The number of rows is
1827
1762
  # determined by items divided by columns. A grid with 10 items and 2 columns has
@@ -2292,9 +2227,9 @@ module Google
2292
2227
  class GoogleAppsCardV1SelectionItem
2293
2228
  include Google::Apis::Core::Hashable
2294
2229
 
2295
- # When `true`, more than one item is selected. If more than one item is selected
2296
- # for radio buttons and dropdown menus, the first selected item is received and
2297
- # the ones after are ignored.
2230
+ # Whether the item is selected by default. If the selection input only accepts
2231
+ # one value (such as for radio buttons or a dropdown menu), only set this field
2232
+ # for one item.
2298
2233
  # Corresponds to the JSON property `selected`
2299
2234
  # @return [Boolean]
2300
2235
  attr_accessor :selected
@@ -3181,7 +3116,11 @@ module Google
3181
3116
  # @return [String]
3182
3117
  attr_accessor :client_assigned_message_id
3183
3118
 
3184
- # Output only. The time at which the message was created in Google Chat.
3119
+ # For spaces created in Chat, the time at which the message was created. This
3120
+ # field is output only, except when used in imported spaces. [Developer Preview](
3121
+ # https://developers.google.com/workspace/preview): For imported spaces, set
3122
+ # this field to the historical timestamp at which the message was created in the
3123
+ # source in order to preserve the original creation time.
3185
3124
  # Corresponds to the JSON property `createTime`
3186
3125
  # @return [String]
3187
3126
  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.60.0"
19
+ GEM_VERSION = "0.61.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 = "20230530"
25
+ REVISION = "20230606"
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
@@ -685,11 +685,11 @@ module Google
685
685
  # google.com/chat/api/guides/auth/service-accounts). [User authentication](https:
686
686
  # //developers.google.com/chat/api/guides/auth/users) requires the `chat.
687
687
  # messages` or `chat.messages.create` authorization scope. Creating a card
688
- # message requires [app authentication] (https://developers.google.com/chat/api/
689
- # guides/auth/service-accounts) Because Chat provides authentication for [
690
- # webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the
691
- # URL that's generated when a webhook is registered, webhooks can create
692
- # messages without a service account or user authentication.
688
+ # message only supports and requires [app authentication] (https://developers.
689
+ # google.com/chat/api/guides/auth/service-accounts). Because Chat provides
690
+ # authentication for [webhooks](https://developers.google.com/chat/how-tos/
691
+ # webhooks) as part of the URL that's generated when a webhook is registered,
692
+ # webhooks can create messages without a service account or user authentication.
693
693
  # @param [String] parent
694
694
  # Required. The resource name of the space in which to create a message. Format:
695
695
  # `spaces/`space``
@@ -939,10 +939,10 @@ module Google
939
939
  # name_a_created_message) or the request fails.
940
940
  # @param [String] update_mask
941
941
  # Required. The field paths to update. Separate multiple values with commas.
942
- # Currently supported field paths: - `text` - `cards` (Requires [service account
943
- # authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
944
- # Requires [service account authentication](/chat/api/guides/auth/service-
945
- # accounts).)
942
+ # Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
943
+ # service account authentication](/chat/api/guides/auth/service-accounts).) - `
944
+ # cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
945
+ # service-accounts).)
946
946
  # @param [String] fields
947
947
  # Selector specifying which fields to include in a partial response.
948
948
  # @param [String] quota_user
@@ -995,10 +995,10 @@ module Google
995
995
  # name_a_created_message) or the request fails.
996
996
  # @param [String] update_mask
997
997
  # Required. The field paths to update. Separate multiple values with commas.
998
- # Currently supported field paths: - `text` - `cards` (Requires [service account
999
- # authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (
1000
- # Requires [service account authentication](/chat/api/guides/auth/service-
1001
- # accounts).)
998
+ # Currently supported field paths: - `text` - `attachment` - `cards` (Requires [
999
+ # service account authentication](/chat/api/guides/auth/service-accounts).) - `
1000
+ # cards_v2` (Requires [service account authentication](/chat/api/guides/auth/
1001
+ # service-accounts).)
1002
1002
  # @param [String] fields
1003
1003
  # Selector specifying which fields to include in a partial response.
1004
1004
  # @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.60.0
4
+ version: 0.61.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-04 00:00:00.000000000 Z
11
+ date: 2023-06-11 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.60.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.61.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: []