google-apis-chat_v1 0.64.0 → 0.65.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: fbdff95aa55c6492c227c63a8b88b3bef7d7c42623e4417b6971f8207af1bbe2
4
- data.tar.gz: 14ab242bdc9b5222d90497ff8960c5edca8fc0701500e5faefd3785074f3e7f7
3
+ metadata.gz: 2c65a81dab6ac075cef33aaf03a2642d95ffc774f7e8ff9277de309f9abcfc22
4
+ data.tar.gz: 54d6ae2576c77c768aced97592262e42212265fb1de025c795f23754eccb98e6
5
5
  SHA512:
6
- metadata.gz: 5eb13fb4d9e93d4452155332d917869ae2eb9f43350d2cac022c590fa39b16210a4f5d010361d06c055d9e6d508216f7c9609833b3f0e5260ace125dd9364bf2
7
- data.tar.gz: 26d3f85923ef3b1ff10e5f894cc217a7f550059e5283872bf6397e0fc8574ab7e6d797f3e0becafc9f65d60a101c9ce5bbaf7bee62ca37f4ebec811e404697c2
6
+ metadata.gz: 63388e05529dc3e365028e1ab0b725eea9a9663d7ac70c9c0ca22864e15cf15cf9a163084e10376b2f2ff00fdf363d7e1e67011274ce88ed5e01b900809abcb6
7
+ data.tar.gz: eb707a4877edd21f2fc4ab8975c379cae0497c7530b1f548cda4f784c0da0e032407ef21a952a81307e03ccb47dc8615293fbe23bd8e6c6c84d3b55087e07495
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.65.0 (2023-07-16)
4
+
5
+ * Regenerated from discovery document revision 20230711
6
+
3
7
  ### v0.64.0 (2023-07-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20230704
@@ -490,6 +490,29 @@ module Google
490
490
  end
491
491
  end
492
492
 
493
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
494
+ # data source from Google Chat. For example, a list of Google Chat spaces of
495
+ # which the user is a member. [Developer Preview](https://developers.google.com/
496
+ # workspace/preview).
497
+ class ChatClientDataSourceMarkup
498
+ include Google::Apis::Core::Hashable
499
+
500
+ # A data source representing a Google Chat space. Format: spaces/`space` [
501
+ # Developer Preview](https://developers.google.com/workspace/preview).
502
+ # Corresponds to the JSON property `spaceDataSource`
503
+ # @return [Google::Apis::ChatV1::SpaceDataSource]
504
+ attr_accessor :space_data_source
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @space_data_source = args[:space_data_source] if args.key?(:space_data_source)
513
+ end
514
+ end
515
+
493
516
  # Represents a color in the RGBA color space. This representation is designed
494
517
  # for simplicity of conversion to and from color representations in various
495
518
  # languages over compactness. For example, the fields of this representation can
@@ -1401,6 +1424,11 @@ module Google
1401
1424
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1CardHeader]
1402
1425
  attr_accessor :peek_card_header
1403
1426
 
1427
+ # The divider style between sections.
1428
+ # Corresponds to the JSON property `sectionDividerStyle`
1429
+ # @return [String]
1430
+ attr_accessor :section_divider_style
1431
+
1404
1432
  # Contains a collection of widgets. Each section has its own, optional header.
1405
1433
  # Sections are visually separated by a line divider.
1406
1434
  # Corresponds to the JSON property `sections`
@@ -1419,6 +1447,7 @@ module Google
1419
1447
  @header = args[:header] if args.key?(:header)
1420
1448
  @name = args[:name] if args.key?(:name)
1421
1449
  @peek_card_header = args[:peek_card_header] if args.key?(:peek_card_header)
1450
+ @section_divider_style = args[:section_divider_style] if args.key?(:section_divider_style)
1422
1451
  @sections = args[:sections] if args.key?(:sections)
1423
1452
  end
1424
1453
  end
@@ -2131,6 +2160,40 @@ module Google
2131
2160
  end
2132
2161
  end
2133
2162
 
2163
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu,
2164
+ # the data from a [Google Workspace host application](https://developers.google.
2165
+ # com/chat/api/reference/rest/v1/HostApp). Used to populate the items in the
2166
+ # multi-select menu. [Developer Preview](https://developers.google.com/workspace/
2167
+ # preview).
2168
+ class GoogleAppsCardV1PlatformDataSource
2169
+ include Google::Apis::Core::Hashable
2170
+
2171
+ # For a `SelectionInput` widget that uses a multi-select menu, a data source
2172
+ # shared by all Google Workspace host applications, such as users in a Google
2173
+ # Workspace organization. [Developer Preview](https://developers.google.com/
2174
+ # workspace/preview).
2175
+ # Corresponds to the JSON property `commonDataSource`
2176
+ # @return [String]
2177
+ attr_accessor :common_data_source
2178
+
2179
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2180
+ # data source from a Google Workspace host application. [Developer Preview](
2181
+ # https://developers.google.com/workspace/preview).
2182
+ # Corresponds to the JSON property `hostAppDataSource`
2183
+ # @return [Google::Apis::ChatV1::HostAppDataSourceMarkup]
2184
+ attr_accessor :host_app_data_source
2185
+
2186
+ def initialize(**args)
2187
+ update!(**args)
2188
+ end
2189
+
2190
+ # Update properties of this object
2191
+ def update!(**args)
2192
+ @common_data_source = args[:common_data_source] if args.key?(:common_data_source)
2193
+ @host_app_data_source = args[:host_app_data_source] if args.key?(:host_app_data_source)
2194
+ end
2195
+ end
2196
+
2134
2197
  # A section contains a collection of widgets that are rendered vertically in the
2135
2198
  # order that they're specified.
2136
2199
  class GoogleAppsCardV1Section
@@ -2193,6 +2256,13 @@ module Google
2193
2256
  class GoogleAppsCardV1SelectionInput
2194
2257
  include Google::Apis::Core::Hashable
2195
2258
 
2259
+ # An action that describes the behavior when the form is submitted. For example,
2260
+ # you can invoke an Apps Script script to handle the form. If the action is
2261
+ # triggered, the form values are sent to the server.
2262
+ # Corresponds to the JSON property `externalDataSource`
2263
+ # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2264
+ attr_accessor :external_data_source
2265
+
2196
2266
  # An array of selectable items. For example, an array of radio buttons or
2197
2267
  # checkboxes. Supports up to 100 items.
2198
2268
  # Corresponds to the JSON property `items`
@@ -2207,6 +2277,22 @@ module Google
2207
2277
  # @return [String]
2208
2278
  attr_accessor :label
2209
2279
 
2280
+ # For multi-select menus, the maximum number of items that a user can select.
2281
+ # Minimum value is 1 item. If unspecified, set to 3 items. [Developer Preview](
2282
+ # https://developers.google.com/workspace/preview).
2283
+ # Corresponds to the JSON property `multiSelectMaxSelectedItems`
2284
+ # @return [Fixnum]
2285
+ attr_accessor :multi_select_max_selected_items
2286
+
2287
+ # For multi-select menus, the number of text characters that a user inputs
2288
+ # before the Chat app queries autocomplete and displays suggested items on the
2289
+ # card. If unspecified, set to 0 characters for static data sources and 3
2290
+ # characters for external data sources. [Developer Preview](https://developers.
2291
+ # google.com/workspace/preview).
2292
+ # Corresponds to the JSON property `multiSelectMinQueryLength`
2293
+ # @return [Fixnum]
2294
+ attr_accessor :multi_select_min_query_length
2295
+
2210
2296
  # The name that identifies the selection input in a form input event. For
2211
2297
  # details about working with form inputs, see [Receive form data](https://
2212
2298
  # developers.google.com/chat/how-tos/dialogs#receive_form_data_from_dialogs).
@@ -2221,6 +2307,15 @@ module Google
2221
2307
  # @return [Google::Apis::ChatV1::GoogleAppsCardV1Action]
2222
2308
  attr_accessor :on_change_action
2223
2309
 
2310
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu,
2311
+ # the data from a [Google Workspace host application](https://developers.google.
2312
+ # com/chat/api/reference/rest/v1/HostApp). Used to populate the items in the
2313
+ # multi-select menu. [Developer Preview](https://developers.google.com/workspace/
2314
+ # preview).
2315
+ # Corresponds to the JSON property `platformDataSource`
2316
+ # @return [Google::Apis::ChatV1::GoogleAppsCardV1PlatformDataSource]
2317
+ attr_accessor :platform_data_source
2318
+
2224
2319
  # The type of items that are displayed to users in a `SelectionInput` widget.
2225
2320
  # Selection types support different types of interactions. For example, users
2226
2321
  # can select one or more checkboxes, but they can only select one value from a
@@ -2235,10 +2330,14 @@ module Google
2235
2330
 
2236
2331
  # Update properties of this object
2237
2332
  def update!(**args)
2333
+ @external_data_source = args[:external_data_source] if args.key?(:external_data_source)
2238
2334
  @items = args[:items] if args.key?(:items)
2239
2335
  @label = args[:label] if args.key?(:label)
2336
+ @multi_select_max_selected_items = args[:multi_select_max_selected_items] if args.key?(:multi_select_max_selected_items)
2337
+ @multi_select_min_query_length = args[:multi_select_min_query_length] if args.key?(:multi_select_min_query_length)
2240
2338
  @name = args[:name] if args.key?(:name)
2241
2339
  @on_change_action = args[:on_change_action] if args.key?(:on_change_action)
2340
+ @platform_data_source = args[:platform_data_source] if args.key?(:platform_data_source)
2242
2341
  @type = args[:type] if args.key?(:type)
2243
2342
  end
2244
2343
  end
@@ -2248,6 +2347,13 @@ module Google
2248
2347
  class GoogleAppsCardV1SelectionItem
2249
2348
  include Google::Apis::Core::Hashable
2250
2349
 
2350
+ # For multi-select menus, a text description or label that's displayed below the
2351
+ # item's `text` field. [Developer Preview](https://developers.google.com/
2352
+ # workspace/preview).
2353
+ # Corresponds to the JSON property `bottomText`
2354
+ # @return [String]
2355
+ attr_accessor :bottom_text
2356
+
2251
2357
  # Whether the item is selected by default. If the selection input only accepts
2252
2358
  # one value (such as for radio buttons or a dropdown menu), only set this field
2253
2359
  # for one item.
@@ -2256,6 +2362,14 @@ module Google
2256
2362
  attr_accessor :selected
2257
2363
  alias_method :selected?, :selected
2258
2364
 
2365
+ # For multi-select menus, the URL for the icon displayed next to the item's `
2366
+ # text` field. Supports PNG and JPEG files. Must be an `HTTPS` URL. For example,
2367
+ # `https://developers.google.com/chat/images/quickstart-app-avatar.png`. [
2368
+ # Developer Preview](https://developers.google.com/workspace/preview).
2369
+ # Corresponds to the JSON property `startIconUri`
2370
+ # @return [String]
2371
+ attr_accessor :start_icon_uri
2372
+
2259
2373
  # The text that identifies or describes the item to users.
2260
2374
  # Corresponds to the JSON property `text`
2261
2375
  # @return [String]
@@ -2275,7 +2389,9 @@ module Google
2275
2389
 
2276
2390
  # Update properties of this object
2277
2391
  def update!(**args)
2392
+ @bottom_text = args[:bottom_text] if args.key?(:bottom_text)
2278
2393
  @selected = args[:selected] if args.key?(:selected)
2394
+ @start_icon_uri = args[:start_icon_uri] if args.key?(:start_icon_uri)
2279
2395
  @text = args[:text] if args.key?(:text)
2280
2396
  @value = args[:value] if args.key?(:value)
2281
2397
  end
@@ -2697,6 +2813,30 @@ module Google
2697
2813
  end
2698
2814
  end
2699
2815
 
2816
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2817
+ # data source from a Google Workspace host application. [Developer Preview](
2818
+ # https://developers.google.com/workspace/preview).
2819
+ class HostAppDataSourceMarkup
2820
+ include Google::Apis::Core::Hashable
2821
+
2822
+ # Chat apps only. For a `SelectionInput` widget that uses a multi-select menu, a
2823
+ # data source from Google Chat. For example, a list of Google Chat spaces of
2824
+ # which the user is a member. [Developer Preview](https://developers.google.com/
2825
+ # workspace/preview).
2826
+ # Corresponds to the JSON property `chatDataSource`
2827
+ # @return [Google::Apis::ChatV1::ChatClientDataSourceMarkup]
2828
+ attr_accessor :chat_data_source
2829
+
2830
+ def initialize(**args)
2831
+ update!(**args)
2832
+ end
2833
+
2834
+ # Update properties of this object
2835
+ def update!(**args)
2836
+ @chat_data_source = args[:chat_data_source] if args.key?(:chat_data_source)
2837
+ end
2838
+ end
2839
+
2700
2840
  # An image that's specified by a URL and can have an `onclick` action.
2701
2841
  class Image
2702
2842
  include Google::Apis::Core::Hashable
@@ -3598,6 +3738,29 @@ module Google
3598
3738
  end
3599
3739
  end
3600
3740
 
3741
+ # A data source representing a Google Chat space. Format: spaces/`space` [
3742
+ # Developer Preview](https://developers.google.com/workspace/preview).
3743
+ class SpaceDataSource
3744
+ include Google::Apis::Core::Hashable
3745
+
3746
+ # When `true`, uses the card's Google Chat space as the default selection. The
3747
+ # default value is `false`. [Developer Preview](https://developers.google.com/
3748
+ # workspace/preview).
3749
+ # Corresponds to the JSON property `defaultToCurrentSpace`
3750
+ # @return [Boolean]
3751
+ attr_accessor :default_to_current_space
3752
+ alias_method :default_to_current_space?, :default_to_current_space
3753
+
3754
+ def initialize(**args)
3755
+ update!(**args)
3756
+ end
3757
+
3758
+ # Update properties of this object
3759
+ def update!(**args)
3760
+ @default_to_current_space = args[:default_to_current_space] if args.key?(:default_to_current_space)
3761
+ end
3762
+ end
3763
+
3601
3764
  # Details about the space including description and rules.
3602
3765
  class SpaceDetails
3603
3766
  include Google::Apis::Core::Hashable
@@ -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.64.0"
19
+ GEM_VERSION = "0.65.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 = "20230704"
25
+ REVISION = "20230711"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class ChatClientDataSourceMarkup
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class Color
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -316,6 +322,12 @@ module Google
316
322
  include Google::Apis::Core::JsonObjectSupport
317
323
  end
318
324
 
325
+ class GoogleAppsCardV1PlatformDataSource
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
319
331
  class GoogleAppsCardV1Section
320
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
333
 
@@ -376,6 +388,12 @@ module Google
376
388
  include Google::Apis::Core::JsonObjectSupport
377
389
  end
378
390
 
391
+ class HostAppDataSourceMarkup
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
379
397
  class Image
380
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
399
 
@@ -502,6 +520,12 @@ module Google
502
520
  include Google::Apis::Core::JsonObjectSupport
503
521
  end
504
522
 
523
+ class SpaceDataSource
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
505
529
  class SpaceDetails
506
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
531
 
@@ -711,6 +735,14 @@ module Google
711
735
  end
712
736
  end
713
737
 
738
+ class ChatClientDataSourceMarkup
739
+ # @private
740
+ class Representation < Google::Apis::Core::JsonRepresentation
741
+ property :space_data_source, as: 'spaceDataSource', class: Google::Apis::ChatV1::SpaceDataSource, decorator: Google::Apis::ChatV1::SpaceDataSource::Representation
742
+
743
+ end
744
+ end
745
+
714
746
  class Color
715
747
  # @private
716
748
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -913,6 +945,7 @@ module Google
913
945
  property :name, as: 'name'
914
946
  property :peek_card_header, as: 'peekCardHeader', class: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader::Representation
915
947
 
948
+ property :section_divider_style, as: 'sectionDividerStyle'
916
949
  collection :sections, as: 'sections', class: Google::Apis::ChatV1::GoogleAppsCardV1Section, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Section::Representation
917
950
 
918
951
  end
@@ -1097,6 +1130,15 @@ module Google
1097
1130
  end
1098
1131
  end
1099
1132
 
1133
+ class GoogleAppsCardV1PlatformDataSource
1134
+ # @private
1135
+ class Representation < Google::Apis::Core::JsonRepresentation
1136
+ property :common_data_source, as: 'commonDataSource'
1137
+ property :host_app_data_source, as: 'hostAppDataSource', class: Google::Apis::ChatV1::HostAppDataSourceMarkup, decorator: Google::Apis::ChatV1::HostAppDataSourceMarkup::Representation
1138
+
1139
+ end
1140
+ end
1141
+
1100
1142
  class GoogleAppsCardV1Section
1101
1143
  # @private
1102
1144
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1111,12 +1153,18 @@ module Google
1111
1153
  class GoogleAppsCardV1SelectionInput
1112
1154
  # @private
1113
1155
  class Representation < Google::Apis::Core::JsonRepresentation
1156
+ property :external_data_source, as: 'externalDataSource', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
1157
+
1114
1158
  collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem::Representation
1115
1159
 
1116
1160
  property :label, as: 'label'
1161
+ property :multi_select_max_selected_items, as: 'multiSelectMaxSelectedItems'
1162
+ property :multi_select_min_query_length, as: 'multiSelectMinQueryLength'
1117
1163
  property :name, as: 'name'
1118
1164
  property :on_change_action, as: 'onChangeAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
1119
1165
 
1166
+ property :platform_data_source, as: 'platformDataSource', class: Google::Apis::ChatV1::GoogleAppsCardV1PlatformDataSource, decorator: Google::Apis::ChatV1::GoogleAppsCardV1PlatformDataSource::Representation
1167
+
1120
1168
  property :type, as: 'type'
1121
1169
  end
1122
1170
  end
@@ -1124,7 +1172,9 @@ module Google
1124
1172
  class GoogleAppsCardV1SelectionItem
1125
1173
  # @private
1126
1174
  class Representation < Google::Apis::Core::JsonRepresentation
1175
+ property :bottom_text, as: 'bottomText'
1127
1176
  property :selected, as: 'selected'
1177
+ property :start_icon_uri, as: 'startIconUri'
1128
1178
  property :text, as: 'text'
1129
1179
  property :value, as: 'value'
1130
1180
  end
@@ -1228,6 +1278,14 @@ module Google
1228
1278
  end
1229
1279
  end
1230
1280
 
1281
+ class HostAppDataSourceMarkup
1282
+ # @private
1283
+ class Representation < Google::Apis::Core::JsonRepresentation
1284
+ property :chat_data_source, as: 'chatDataSource', class: Google::Apis::ChatV1::ChatClientDataSourceMarkup, decorator: Google::Apis::ChatV1::ChatClientDataSourceMarkup::Representation
1285
+
1286
+ end
1287
+ end
1288
+
1231
1289
  class Image
1232
1290
  # @private
1233
1291
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1476,6 +1534,13 @@ module Google
1476
1534
  end
1477
1535
  end
1478
1536
 
1537
+ class SpaceDataSource
1538
+ # @private
1539
+ class Representation < Google::Apis::Core::JsonRepresentation
1540
+ property :default_to_current_space, as: 'defaultToCurrentSpace'
1541
+ end
1542
+ end
1543
+
1479
1544
  class SpaceDetails
1480
1545
  # @private
1481
1546
  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.64.0
4
+ version: 0.65.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-07-09 00:00:00.000000000 Z
11
+ date: 2023-07-16 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.64.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.65.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: []