google-apis-chat_v1 0.86.0 → 0.88.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc77fe8d38b17570130b32404cfe629618b2bbbf0739ed4002fae6c8b8fb5123
4
- data.tar.gz: 0db6ecffb07e7d971c92625135e7d5f6e2d4d63c76d86bf2e435e6a6788ddddf
3
+ metadata.gz: e5b85b25be16ed0128a60b822679a45a543c7306d1b2919673a1ff14f6c09f8a
4
+ data.tar.gz: efb29ffcda926e57b94cb68c8c9da3423e321b62f4a3c0617062495345268dbe
5
5
  SHA512:
6
- metadata.gz: 3181c3fba23bf35256f30ce545eab305c928deb2d71435093a3b33d419457f18244c82aebe625953e5e5db128585e8d56ad56b73ca7a3cbb1c1f36c8293fde6d
7
- data.tar.gz: 94aa6f1cfda532e243bbadcb1cd3381b72f38e78ee5df9dc9c56d02064750bbd8c71e5705505e6910bbeaa0ff29edf101cc5cad6e23cc78bd2ad7f90ea618a7b
6
+ metadata.gz: 90d1cb36f2dbbef6c9288b68bf39cb7cb66ecad1b7f162e27b141eb51cb6acbfa3868cf809a6e970ddccc32fec9751522e363b0212226a526f0ccc2a86974d64
7
+ data.tar.gz: 5430ac88317101150eff8ab4ad2dc0b6444ebfcc682e46fb7f8a5f56811789c6682f4b4d99d36341b228733c2b0027366917bc671dc8b8a07421a5f09757b3ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.88.0 (2024-03-24)
4
+
5
+ * Regenerated from discovery document revision 20240315
6
+
7
+ ### v0.87.0 (2024-03-17)
8
+
9
+ * Regenerated from discovery document revision 20240310
10
+
3
11
  ### v0.86.0 (2024-03-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20240305
@@ -133,6 +133,11 @@ module Google
133
133
  # @return [Fixnum]
134
134
  attr_accessor :length
135
135
 
136
+ # A rich link to a resource.
137
+ # Corresponds to the JSON property `richLinkMetadata`
138
+ # @return [Google::Apis::ChatV1::RichLinkMetadata]
139
+ attr_accessor :rich_link_metadata
140
+
136
141
  # Annotation metadata for slash commands (/).
137
142
  # Corresponds to the JSON property `slashCommand`
138
143
  # @return [Google::Apis::ChatV1::SlashCommandMetadata]
@@ -161,6 +166,7 @@ module Google
161
166
  # Update properties of this object
162
167
  def update!(**args)
163
168
  @length = args[:length] if args.key?(:length)
169
+ @rich_link_metadata = args[:rich_link_metadata] if args.key?(:rich_link_metadata)
164
170
  @slash_command = args[:slash_command] if args.key?(:slash_command)
165
171
  @start_index = args[:start_index] if args.key?(:start_index)
166
172
  @type = args[:type] if args.key?(:type)
@@ -811,10 +817,13 @@ module Google
811
817
 
812
818
  # A Google Chat app interaction event. To learn about interaction events, see [
813
819
  # Receive and respond to interactions with your Google Chat app](https://
814
- # developers.google.com/chat/api/guides/message-formats). To learn about event
815
- # types and for example event payloads, see [Types of Google Chat app
816
- # interaction events](https://developers.google.com/chat/api/guides/message-
817
- # formats/events).
820
+ # developers.google.com/workspace/chat/api/guides/message-formats). To learn
821
+ # about event types and for example event payloads, see [Types of Google Chat
822
+ # app interaction events](https://developers.google.com/workspace/chat/events).
823
+ # In addition to receiving events from user interactions, Chat apps can receive
824
+ # events about changes to spaces, such as when a new member is added to a space.
825
+ # To learn about space events, see [Work with events from Google Chat](https://
826
+ # developers.google.com/workspace/chat/events-overview).
818
827
  class DeprecatedEvent
819
828
  include Google::Apis::Core::Hashable
820
829
 
@@ -888,8 +897,7 @@ module Google
888
897
  attr_accessor :token
889
898
 
890
899
  # The type of interaction event. For details, see [Types of Google Chat app
891
- # interaction events](https://developers.google.com/chat/api/guides/message-
892
- # formats/events).
900
+ # interaction events](https://developers.google.com/workspace/chat/events).
893
901
  # Corresponds to the JSON property `type`
894
902
  # @return [String]
895
903
  attr_accessor :type
@@ -1011,6 +1019,31 @@ module Google
1011
1019
  end
1012
1020
  end
1013
1021
 
1022
+ # Data for Google Drive links.
1023
+ class DriveLinkData
1024
+ include Google::Apis::Core::Hashable
1025
+
1026
+ # A reference to the data of a drive attachment.
1027
+ # Corresponds to the JSON property `driveDataRef`
1028
+ # @return [Google::Apis::ChatV1::DriveDataRef]
1029
+ attr_accessor :drive_data_ref
1030
+
1031
+ # The mime type of the linked Google Drive resource.
1032
+ # Corresponds to the JSON property `mimeType`
1033
+ # @return [String]
1034
+ attr_accessor :mime_type
1035
+
1036
+ def initialize(**args)
1037
+ update!(**args)
1038
+ end
1039
+
1040
+ # Update properties of this object
1041
+ def update!(**args)
1042
+ @drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref)
1043
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1044
+ end
1045
+ end
1046
+
1014
1047
  # An emoji that is used as a reaction to a message.
1015
1048
  class Emoji
1016
1049
  include Google::Apis::Core::Hashable
@@ -2065,6 +2098,17 @@ module Google
2065
2098
  # @return [String]
2066
2099
  attr_accessor :known_icon
2067
2100
 
2101
+ # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2102
+ # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2103
+ # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2104
+ # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write ` "name":
2105
+ # "check_box", "fill": true, "weight": 300, "grade": -25 ` Available for Chat
2106
+ # apps and in [Developer Preview](https://developers.google.com/workspace/
2107
+ # preview) for Google Workspace Add-ons.
2108
+ # Corresponds to the JSON property `materialIcon`
2109
+ # @return [Google::Apis::ChatV1::GoogleAppsCardV1MaterialIcon]
2110
+ attr_accessor :material_icon
2111
+
2068
2112
  def initialize(**args)
2069
2113
  update!(**args)
2070
2114
  end
@@ -2075,6 +2119,7 @@ module Google
2075
2119
  @icon_url = args[:icon_url] if args.key?(:icon_url)
2076
2120
  @image_type = args[:image_type] if args.key?(:image_type)
2077
2121
  @known_icon = args[:known_icon] if args.key?(:known_icon)
2122
+ @material_icon = args[:material_icon] if args.key?(:material_icon)
2078
2123
  end
2079
2124
  end
2080
2125
 
@@ -2188,6 +2233,60 @@ module Google
2188
2233
  end
2189
2234
  end
2190
2235
 
2236
+ # A [Google Material Icon](https://fonts.google.com/icons), which includes over
2237
+ # 2500+ options. For example, to display a [checkbox icon](https://fonts.google.
2238
+ # com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%
2239
+ # 40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write ` "name":
2240
+ # "check_box", "fill": true, "weight": 300, "grade": -25 ` Available for Chat
2241
+ # apps and in [Developer Preview](https://developers.google.com/workspace/
2242
+ # preview) for Google Workspace Add-ons.
2243
+ class GoogleAppsCardV1MaterialIcon
2244
+ include Google::Apis::Core::Hashable
2245
+
2246
+ # Whether it renders a filled icon. Default value is false. See Customization in
2247
+ # [Google Font Icon](https://fonts.google.com/icons) for details.
2248
+ # Corresponds to the JSON property `fill`
2249
+ # @return [Boolean]
2250
+ attr_accessor :fill
2251
+ alias_method :fill?, :fill
2252
+
2253
+ # Weight and grade affect a symbol’s thickness. Adjustments to grade are more
2254
+ # granular than adjustments to weight and have a small impact on the size of the
2255
+ # symbol. Choose from `-25, 0, 200`. If absent, default value is 0. If any other
2256
+ # value is specified, a broken image icon is displayed. See Customization in [
2257
+ # Google Font Icon](https://fonts.google.com/icons) for details.
2258
+ # Corresponds to the JSON property `grade`
2259
+ # @return [Fixnum]
2260
+ attr_accessor :grade
2261
+
2262
+ # The icon name defined in the [Google Material Icon Icon](https://fonts.google.
2263
+ # com/icons) in snake_case. e.g. "check_box". Any invalid names are abandoned
2264
+ # and replaced with empty string and results in the icon failing to render.
2265
+ # Corresponds to the JSON property `name`
2266
+ # @return [String]
2267
+ attr_accessor :name
2268
+
2269
+ # The stroke weight of the icon. Choose from `100, 200, 300, 400, 500, 600, 700`.
2270
+ # If absent, default value is 400. If any other value is specified, a broken
2271
+ # image icon is displayed. See Customization in [Google Font Icon](https://fonts.
2272
+ # google.com/icons) for details.
2273
+ # Corresponds to the JSON property `weight`
2274
+ # @return [Fixnum]
2275
+ attr_accessor :weight
2276
+
2277
+ def initialize(**args)
2278
+ update!(**args)
2279
+ end
2280
+
2281
+ # Update properties of this object
2282
+ def update!(**args)
2283
+ @fill = args[:fill] if args.key?(:fill)
2284
+ @grade = args[:grade] if args.key?(:grade)
2285
+ @name = args[:name] if args.key?(:name)
2286
+ @weight = args[:weight] if args.key?(:weight)
2287
+ end
2288
+ end
2289
+
2191
2290
  # Represents how to respond when users click an interactive element on a card,
2192
2291
  # such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
2193
2292
  # google.com/workspace/extend):
@@ -3788,6 +3887,37 @@ module Google
3788
3887
  end
3789
3888
  end
3790
3889
 
3890
+ # A rich link to a resource.
3891
+ class RichLinkMetadata
3892
+ include Google::Apis::Core::Hashable
3893
+
3894
+ # Data for Google Drive links.
3895
+ # Corresponds to the JSON property `driveLinkData`
3896
+ # @return [Google::Apis::ChatV1::DriveLinkData]
3897
+ attr_accessor :drive_link_data
3898
+
3899
+ # The rich link type.
3900
+ # Corresponds to the JSON property `richLinkType`
3901
+ # @return [String]
3902
+ attr_accessor :rich_link_type
3903
+
3904
+ # The URI of this link.
3905
+ # Corresponds to the JSON property `uri`
3906
+ # @return [String]
3907
+ attr_accessor :uri
3908
+
3909
+ def initialize(**args)
3910
+ update!(**args)
3911
+ end
3912
+
3913
+ # Update properties of this object
3914
+ def update!(**args)
3915
+ @drive_link_data = args[:drive_link_data] if args.key?(:drive_link_data)
3916
+ @rich_link_type = args[:rich_link_type] if args.key?(:rich_link_type)
3917
+ @uri = args[:uri] if args.key?(:uri)
3918
+ end
3919
+ end
3920
+
3791
3921
  # A section contains a collection of widgets that are rendered (vertically) in
3792
3922
  # the order that they are specified. Across all platforms, cards have a narrow
3793
3923
  # fixed width, so there's currently no need for layout properties (for example,
@@ -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.86.0"
19
+ GEM_VERSION = "0.88.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240305"
25
+ REVISION = "20240315"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class DriveLinkData
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class Emoji
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -322,6 +328,12 @@ module Google
322
328
  include Google::Apis::Core::JsonObjectSupport
323
329
  end
324
330
 
331
+ class GoogleAppsCardV1MaterialIcon
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
325
337
  class GoogleAppsCardV1OnClick
326
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
339
 
@@ -508,6 +520,12 @@ module Google
508
520
  include Google::Apis::Core::JsonObjectSupport
509
521
  end
510
522
 
523
+ class RichLinkMetadata
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
511
529
  class Section
512
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
531
 
@@ -666,6 +684,8 @@ module Google
666
684
  # @private
667
685
  class Representation < Google::Apis::Core::JsonRepresentation
668
686
  property :length, as: 'length'
687
+ property :rich_link_metadata, as: 'richLinkMetadata', class: Google::Apis::ChatV1::RichLinkMetadata, decorator: Google::Apis::ChatV1::RichLinkMetadata::Representation
688
+
669
689
  property :slash_command, as: 'slashCommand', class: Google::Apis::ChatV1::SlashCommandMetadata, decorator: Google::Apis::ChatV1::SlashCommandMetadata::Representation
670
690
 
671
691
  property :start_index, as: 'startIndex'
@@ -892,6 +912,15 @@ module Google
892
912
  end
893
913
  end
894
914
 
915
+ class DriveLinkData
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :drive_data_ref, as: 'driveDataRef', class: Google::Apis::ChatV1::DriveDataRef, decorator: Google::Apis::ChatV1::DriveDataRef::Representation
919
+
920
+ property :mime_type, as: 'mimeType'
921
+ end
922
+ end
923
+
895
924
  class Emoji
896
925
  # @private
897
926
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1120,6 +1149,8 @@ module Google
1120
1149
  property :icon_url, as: 'iconUrl'
1121
1150
  property :image_type, as: 'imageType'
1122
1151
  property :known_icon, as: 'knownIcon'
1152
+ property :material_icon, as: 'materialIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1MaterialIcon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1MaterialIcon::Representation
1153
+
1123
1154
  end
1124
1155
  end
1125
1156
 
@@ -1153,6 +1184,16 @@ module Google
1153
1184
  end
1154
1185
  end
1155
1186
 
1187
+ class GoogleAppsCardV1MaterialIcon
1188
+ # @private
1189
+ class Representation < Google::Apis::Core::JsonRepresentation
1190
+ property :fill, as: 'fill'
1191
+ property :grade, as: 'grade'
1192
+ property :name, as: 'name'
1193
+ property :weight, as: 'weight'
1194
+ end
1195
+ end
1196
+
1156
1197
  class GoogleAppsCardV1OnClick
1157
1198
  # @private
1158
1199
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1538,6 +1579,16 @@ module Google
1538
1579
  end
1539
1580
  end
1540
1581
 
1582
+ class RichLinkMetadata
1583
+ # @private
1584
+ class Representation < Google::Apis::Core::JsonRepresentation
1585
+ property :drive_link_data, as: 'driveLinkData', class: Google::Apis::ChatV1::DriveLinkData, decorator: Google::Apis::ChatV1::DriveLinkData::Representation
1586
+
1587
+ property :rich_link_type, as: 'richLinkType'
1588
+ property :uri, as: 'uri'
1589
+ end
1590
+ end
1591
+
1541
1592
  class Section
1542
1593
  # @private
1543
1594
  class Representation < Google::Apis::Core::JsonRepresentation
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.86.0
4
+ version: 0.88.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: 2024-03-10 00:00:00.000000000 Z
11
+ date: 2024-03-24 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.86.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.88.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: []