google-apis-chat_v1 0.114.0 → 0.115.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/chat_v1/classes.rb +164 -78
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +18 -0
- 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: 5b9524209e3871733251b50fd873d78cb28da4b9d4bbb9032da574c0759dc5a5
|
4
|
+
data.tar.gz: b2adf31b52e453ccdf5a6bd34593eee93008ae1121744c10108868f6de762d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac02a2472f19d6eac8b12f7400a99021a9591f6c87296d18b6c056f178b14d4b514320734611290a204da1858be227a14bc7d661edc18ebd019ba7ae065917d3
|
7
|
+
data.tar.gz: d2c25d1f1e64ecc20fd9f27990d5235fb174c407d7d7556959f3945ab0b376ae07780ea3ac18f71239f845aaccc834a6962dbd4462e877d61034a5c84247e063
|
data/CHANGELOG.md
CHANGED
@@ -1253,6 +1253,14 @@ module Google
|
|
1253
1253
|
class GoogleAppsCardV1Action
|
1254
1254
|
include Google::Apis::Core::Hashable
|
1255
1255
|
|
1256
|
+
# Optional. If this is true, then all widgets are considered required by this
|
1257
|
+
# action. [Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
1258
|
+
# workspace/extend):
|
1259
|
+
# Corresponds to the JSON property `allWidgetsAreRequired`
|
1260
|
+
# @return [Boolean]
|
1261
|
+
attr_accessor :all_widgets_are_required
|
1262
|
+
alias_method :all_widgets_are_required?, :all_widgets_are_required
|
1263
|
+
|
1256
1264
|
# A custom function to invoke when the containing element is clicked or
|
1257
1265
|
# otherwise activated. For example usage, see [Read form data](https://
|
1258
1266
|
# developers.google.com/workspace/chat/read-form-data).
|
@@ -1305,17 +1313,27 @@ module Google
|
|
1305
1313
|
attr_accessor :persist_values
|
1306
1314
|
alias_method :persist_values?, :persist_values
|
1307
1315
|
|
1316
|
+
# Optional. Fill this list with the names of widgets that this Action needs for
|
1317
|
+
# a valid submission. If the widgets listed here don't have a value when this
|
1318
|
+
# Action is invoked, the form submission is aborted. [Google Workspace Add-ons
|
1319
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
1320
|
+
# Corresponds to the JSON property `requiredWidgets`
|
1321
|
+
# @return [Array<String>]
|
1322
|
+
attr_accessor :required_widgets
|
1323
|
+
|
1308
1324
|
def initialize(**args)
|
1309
1325
|
update!(**args)
|
1310
1326
|
end
|
1311
1327
|
|
1312
1328
|
# Update properties of this object
|
1313
1329
|
def update!(**args)
|
1330
|
+
@all_widgets_are_required = args[:all_widgets_are_required] if args.key?(:all_widgets_are_required)
|
1314
1331
|
@function = args[:function] if args.key?(:function)
|
1315
1332
|
@interaction = args[:interaction] if args.key?(:interaction)
|
1316
1333
|
@load_indicator = args[:load_indicator] if args.key?(:load_indicator)
|
1317
1334
|
@parameters = args[:parameters] if args.key?(:parameters)
|
1318
1335
|
@persist_values = args[:persist_values] if args.key?(:persist_values)
|
1336
|
+
@required_widgets = args[:required_widgets] if args.key?(:required_widgets)
|
1319
1337
|
end
|
1320
1338
|
end
|
1321
1339
|
|
@@ -1526,8 +1544,7 @@ module Google
|
|
1526
1544
|
|
1527
1545
|
# Optional. The type of a button. If unset, button type defaults to `OUTLINED`.
|
1528
1546
|
# If the `color` field is set, the button type is forced to `FILLED` and any
|
1529
|
-
# value set for this field is ignored.
|
1530
|
-
# google.com/workspace/chat):
|
1547
|
+
# value set for this field is ignored.
|
1531
1548
|
# Corresponds to the JSON property `type`
|
1532
1549
|
# @return [String]
|
1533
1550
|
attr_accessor :type
|
@@ -1863,8 +1880,8 @@ module Google
|
|
1863
1880
|
end
|
1864
1881
|
end
|
1865
1882
|
|
1866
|
-
# A text, icon, or text and icon chip that users can click. [Google
|
1867
|
-
# https://developers.google.com/workspace/
|
1883
|
+
# A text, icon, or text and icon chip that users can click. [Google Workspace
|
1884
|
+
# Add-ons and Chat apps](https://developers.google.com/workspace/extend):
|
1868
1885
|
class GoogleAppsCardV1Chip
|
1869
1886
|
include Google::Apis::Core::Hashable
|
1870
1887
|
|
@@ -1929,8 +1946,8 @@ module Google
|
|
1929
1946
|
end
|
1930
1947
|
|
1931
1948
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
1932
|
-
# or wrap to the next line. [Google Chat apps](https://
|
1933
|
-
# workspace/
|
1949
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
1950
|
+
# developers.google.com/workspace/extend):
|
1934
1951
|
class GoogleAppsCardV1ChipList
|
1935
1952
|
include Google::Apis::Core::Hashable
|
1936
1953
|
|
@@ -1955,8 +1972,8 @@ module Google
|
|
1955
1972
|
end
|
1956
1973
|
end
|
1957
1974
|
|
1958
|
-
# Represent an expand and collapse control. [Google Chat
|
1959
|
-
# developers.google.com/workspace/
|
1975
|
+
# Represent an expand and collapse control. [Google Workspace Add-ons and Chat
|
1976
|
+
# apps](https://developers.google.com/workspace/extend):
|
1960
1977
|
class GoogleAppsCardV1CollapseControl
|
1961
1978
|
include Google::Apis::Core::Hashable
|
1962
1979
|
|
@@ -2075,14 +2092,16 @@ module Google
|
|
2075
2092
|
end
|
2076
2093
|
end
|
2077
2094
|
|
2078
|
-
# Lets users input a date, a time, or both a date and a time.
|
2079
|
-
#
|
2080
|
-
#
|
2081
|
-
#
|
2082
|
-
#
|
2083
|
-
#
|
2084
|
-
#
|
2085
|
-
#
|
2095
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
2096
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
2097
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
2098
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
2099
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
2100
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
2101
|
+
# Users can input text or use the picker to select dates and times. If users
|
2102
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
2103
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
2104
|
+
# https://developers.google.com/workspace/extend):
|
2086
2105
|
class GoogleAppsCardV1DateTimePicker
|
2087
2106
|
include Google::Apis::Core::Hashable
|
2088
2107
|
|
@@ -2730,7 +2749,8 @@ module Google
|
|
2730
2749
|
# invoke. For example, showing non-primary actions in a card. You can use this
|
2731
2750
|
# widget when actions don't fit in the available space. To use, specify this
|
2732
2751
|
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2733
|
-
# Button`. [Google Chat apps](https://developers.google.
|
2752
|
+
# Button`. [Google Workspace Add-ons and Chat apps](https://developers.google.
|
2753
|
+
# com/workspace/extend):
|
2734
2754
|
# Corresponds to the JSON property `overflowMenu`
|
2735
2755
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu]
|
2736
2756
|
attr_accessor :overflow_menu
|
@@ -2788,7 +2808,8 @@ module Google
|
|
2788
2808
|
# invoke. For example, showing non-primary actions in a card. You can use this
|
2789
2809
|
# widget when actions don't fit in the available space. To use, specify this
|
2790
2810
|
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2791
|
-
# Button`. [Google Chat apps](https://developers.google.
|
2811
|
+
# Button`. [Google Workspace Add-ons and Chat apps](https://developers.google.
|
2812
|
+
# com/workspace/extend):
|
2792
2813
|
class GoogleAppsCardV1OverflowMenu
|
2793
2814
|
include Google::Apis::Core::Hashable
|
2794
2815
|
|
@@ -2807,8 +2828,8 @@ module Google
|
|
2807
2828
|
end
|
2808
2829
|
end
|
2809
2830
|
|
2810
|
-
# An option that users can invoke in an overflow menu. [Google
|
2811
|
-
#
|
2831
|
+
# An option that users can invoke in an overflow menu. [Google Workspace Add-ons
|
2832
|
+
# and Chat apps](https://developers.google.com/workspace/extend):
|
2812
2833
|
class GoogleAppsCardV1OverflowMenuItem
|
2813
2834
|
include Google::Apis::Core::Hashable
|
2814
2835
|
|
@@ -2891,8 +2912,8 @@ module Google
|
|
2891
2912
|
class GoogleAppsCardV1Section
|
2892
2913
|
include Google::Apis::Core::Hashable
|
2893
2914
|
|
2894
|
-
# Represent an expand and collapse control. [Google Chat
|
2895
|
-
# developers.google.com/workspace/
|
2915
|
+
# Represent an expand and collapse control. [Google Workspace Add-ons and Chat
|
2916
|
+
# apps](https://developers.google.com/workspace/extend):
|
2896
2917
|
# Corresponds to the JSON property `collapseControl`
|
2897
2918
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl]
|
2898
2919
|
attr_accessor :collapse_control
|
@@ -2945,16 +2966,19 @@ module Google
|
|
2945
2966
|
end
|
2946
2967
|
end
|
2947
2968
|
|
2948
|
-
# A widget that creates one or more UI items that users can select.
|
2949
|
-
#
|
2950
|
-
#
|
2951
|
-
#
|
2952
|
-
#
|
2953
|
-
#
|
2954
|
-
#
|
2955
|
-
# .
|
2956
|
-
#
|
2957
|
-
# workspace/
|
2969
|
+
# A widget that creates one or more UI items that users can select. Supports
|
2970
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
2971
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
2972
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
2973
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
2974
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
2975
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
2976
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
2977
|
+
# value of items that users select or input. For details about working with form
|
2978
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
2979
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
2980
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
2981
|
+
# google.com/workspace/extend):
|
2958
2982
|
class GoogleAppsCardV1SelectionInput
|
2959
2983
|
include Google::Apis::Core::Hashable
|
2960
2984
|
|
@@ -3205,7 +3229,10 @@ module Google
|
|
3205
3229
|
end
|
3206
3230
|
|
3207
3231
|
# A field in which users can enter text. Supports suggestions and on-change
|
3208
|
-
# actions.
|
3232
|
+
# actions. Supports form submission validation. When `Action.
|
3233
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3234
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3235
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3209
3236
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3210
3237
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3211
3238
|
# receive and can process the value of entered text during form input events.
|
@@ -3284,6 +3311,13 @@ module Google
|
|
3284
3311
|
# @return [String]
|
3285
3312
|
attr_accessor :type
|
3286
3313
|
|
3314
|
+
# Represents the necessary data for validating the widget it's attached to. [
|
3315
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
3316
|
+
# workspace/extend):
|
3317
|
+
# Corresponds to the JSON property `validation`
|
3318
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Validation]
|
3319
|
+
attr_accessor :validation
|
3320
|
+
|
3287
3321
|
# The value entered by a user, returned as part of a form input event. For
|
3288
3322
|
# details about working with form inputs, see [Receive form data](https://
|
3289
3323
|
# developers.google.com/workspace/chat/read-form-data).
|
@@ -3305,6 +3339,7 @@ module Google
|
|
3305
3339
|
@on_change_action = args[:on_change_action] if args.key?(:on_change_action)
|
3306
3340
|
@placeholder_text = args[:placeholder_text] if args.key?(:placeholder_text)
|
3307
3341
|
@type = args[:type] if args.key?(:type)
|
3342
|
+
@validation = args[:validation] if args.key?(:validation)
|
3308
3343
|
@value = args[:value] if args.key?(:value)
|
3309
3344
|
end
|
3310
3345
|
end
|
@@ -3326,8 +3361,7 @@ module Google
|
|
3326
3361
|
# concealed behind a **show more** button. If the text is equal or shorter than
|
3327
3362
|
# the specified maximum number of lines, a **show more** button isn't displayed.
|
3328
3363
|
# The default value is 0, in which case all context is displayed. Negative
|
3329
|
-
# values are ignored.
|
3330
|
-
# chat):
|
3364
|
+
# values are ignored.
|
3331
3365
|
# Corresponds to the JSON property `maxLines`
|
3332
3366
|
# @return [Fixnum]
|
3333
3367
|
attr_accessor :max_lines
|
@@ -3348,6 +3382,36 @@ module Google
|
|
3348
3382
|
end
|
3349
3383
|
end
|
3350
3384
|
|
3385
|
+
# Represents the necessary data for validating the widget it's attached to. [
|
3386
|
+
# Google Workspace Add-ons and Chat apps](https://developers.google.com/
|
3387
|
+
# workspace/extend):
|
3388
|
+
class GoogleAppsCardV1Validation
|
3389
|
+
include Google::Apis::Core::Hashable
|
3390
|
+
|
3391
|
+
# Specify the character limit for text input widgets. Note that this is only
|
3392
|
+
# used for text input and is ignored for other widgets. [Google Workspace Add-
|
3393
|
+
# ons and Chat apps](https://developers.google.com/workspace/extend):
|
3394
|
+
# Corresponds to the JSON property `characterLimit`
|
3395
|
+
# @return [Fixnum]
|
3396
|
+
attr_accessor :character_limit
|
3397
|
+
|
3398
|
+
# Specify the type of the input widgets. [Google Workspace Add-ons and Chat apps]
|
3399
|
+
# (https://developers.google.com/workspace/extend):
|
3400
|
+
# Corresponds to the JSON property `inputType`
|
3401
|
+
# @return [String]
|
3402
|
+
attr_accessor :input_type
|
3403
|
+
|
3404
|
+
def initialize(**args)
|
3405
|
+
update!(**args)
|
3406
|
+
end
|
3407
|
+
|
3408
|
+
# Update properties of this object
|
3409
|
+
def update!(**args)
|
3410
|
+
@character_limit = args[:character_limit] if args.key?(:character_limit)
|
3411
|
+
@input_type = args[:input_type] if args.key?(:input_type)
|
3412
|
+
end
|
3413
|
+
end
|
3414
|
+
|
3351
3415
|
# Each card is made up of widgets. A widget is a composite object that can
|
3352
3416
|
# represent one of text, images, buttons, and other object types.
|
3353
3417
|
class GoogleAppsCardV1Widget
|
@@ -3375,8 +3439,8 @@ module Google
|
|
3375
3439
|
attr_accessor :carousel
|
3376
3440
|
|
3377
3441
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
3378
|
-
# or wrap to the next line. [Google Chat apps](https://
|
3379
|
-
# workspace/
|
3442
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
3443
|
+
# developers.google.com/workspace/extend):
|
3380
3444
|
# Corresponds to the JSON property `chipList`
|
3381
3445
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3382
3446
|
attr_accessor :chip_list
|
@@ -3406,14 +3470,16 @@ module Google
|
|
3406
3470
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Columns]
|
3407
3471
|
attr_accessor :columns
|
3408
3472
|
|
3409
|
-
# Lets users input a date, a time, or both a date and a time.
|
3410
|
-
#
|
3411
|
-
#
|
3412
|
-
#
|
3413
|
-
#
|
3414
|
-
#
|
3415
|
-
#
|
3416
|
-
#
|
3473
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
3474
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
3475
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
3476
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
3477
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
3478
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
3479
|
+
# Users can input text or use the picker to select dates and times. If users
|
3480
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
3481
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
3482
|
+
# https://developers.google.com/workspace/extend):
|
3417
3483
|
# Corresponds to the JSON property `dateTimePicker`
|
3418
3484
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
3419
3485
|
attr_accessor :date_time_picker
|
@@ -3470,22 +3536,28 @@ module Google
|
|
3470
3536
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
3471
3537
|
attr_accessor :image
|
3472
3538
|
|
3473
|
-
# A widget that creates one or more UI items that users can select.
|
3474
|
-
#
|
3475
|
-
#
|
3476
|
-
#
|
3477
|
-
#
|
3478
|
-
#
|
3479
|
-
#
|
3480
|
-
# .
|
3481
|
-
#
|
3482
|
-
# workspace/
|
3539
|
+
# A widget that creates one or more UI items that users can select. Supports
|
3540
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
3541
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
3542
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
3543
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
3544
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
3545
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
3546
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
3547
|
+
# value of items that users select or input. For details about working with form
|
3548
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
3549
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
3550
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
3551
|
+
# google.com/workspace/extend):
|
3483
3552
|
# Corresponds to the JSON property `selectionInput`
|
3484
3553
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
3485
3554
|
attr_accessor :selection_input
|
3486
3555
|
|
3487
3556
|
# A field in which users can enter text. Supports suggestions and on-change
|
3488
|
-
# actions.
|
3557
|
+
# actions. Supports form submission validation. When `Action.
|
3558
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3559
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3560
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3489
3561
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3490
3562
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3491
3563
|
# receive and can process the value of entered text during form input events.
|
@@ -3547,20 +3619,22 @@ module Google
|
|
3547
3619
|
attr_accessor :button_list
|
3548
3620
|
|
3549
3621
|
# A list of chips layed out horizontally, which can either scroll horizontally
|
3550
|
-
# or wrap to the next line. [Google Chat apps](https://
|
3551
|
-
# workspace/
|
3622
|
+
# or wrap to the next line. [Google Workspace Add-ons and Chat apps](https://
|
3623
|
+
# developers.google.com/workspace/extend):
|
3552
3624
|
# Corresponds to the JSON property `chipList`
|
3553
3625
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3554
3626
|
attr_accessor :chip_list
|
3555
3627
|
|
3556
|
-
# Lets users input a date, a time, or both a date and a time.
|
3557
|
-
#
|
3558
|
-
#
|
3559
|
-
#
|
3560
|
-
#
|
3561
|
-
#
|
3562
|
-
#
|
3563
|
-
#
|
3628
|
+
# Lets users input a date, a time, or both a date and a time. Supports form
|
3629
|
+
# submission validation. When `Action.all_widgets_are_required` is set to `true`
|
3630
|
+
# or this widget is specified in `Action.required_widgets`, the submission
|
3631
|
+
# action is blocked unless a value is selected. For an example in Google Chat
|
3632
|
+
# apps, see [Let a user pick a date and time](https://developers.google.com/
|
3633
|
+
# workspace/chat/design-interactive-card-dialog#let_a_user_pick_a_date_and_time).
|
3634
|
+
# Users can input text or use the picker to select dates and times. If users
|
3635
|
+
# input an invalid date or time, the picker shows an error that prompts users to
|
3636
|
+
# input the information correctly. [Google Workspace Add-ons and Chat apps](
|
3637
|
+
# https://developers.google.com/workspace/extend):
|
3564
3638
|
# Corresponds to the JSON property `dateTimePicker`
|
3565
3639
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]
|
3566
3640
|
attr_accessor :date_time_picker
|
@@ -3583,22 +3657,28 @@ module Google
|
|
3583
3657
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]
|
3584
3658
|
attr_accessor :image
|
3585
3659
|
|
3586
|
-
# A widget that creates one or more UI items that users can select.
|
3587
|
-
#
|
3588
|
-
#
|
3589
|
-
#
|
3590
|
-
#
|
3591
|
-
#
|
3592
|
-
#
|
3593
|
-
# .
|
3594
|
-
#
|
3595
|
-
# workspace/
|
3660
|
+
# A widget that creates one or more UI items that users can select. Supports
|
3661
|
+
# form submission validation for `dropdown` and `multiselect` menus only. When `
|
3662
|
+
# Action.all_widgets_are_required` is set to `true` or this widget is specified
|
3663
|
+
# in `Action.required_widgets`, the submission action is blocked unless a value
|
3664
|
+
# is selected. For example, a dropdown menu or checkboxes. You can use this
|
3665
|
+
# widget to collect data that can be predicted or enumerated. For an example in
|
3666
|
+
# Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-
|
3667
|
+
# interactive-card-dialog#add_selectable_ui_elements). Chat apps can process the
|
3668
|
+
# value of items that users select or input. For details about working with form
|
3669
|
+
# inputs, see [Receive form data](https://developers.google.com/workspace/chat/
|
3670
|
+
# read-form-data). To collect undefined or abstract data from users, use the
|
3671
|
+
# TextInput widget. [Google Workspace Add-ons and Chat apps](https://developers.
|
3672
|
+
# google.com/workspace/extend):
|
3596
3673
|
# Corresponds to the JSON property `selectionInput`
|
3597
3674
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]
|
3598
3675
|
attr_accessor :selection_input
|
3599
3676
|
|
3600
3677
|
# A field in which users can enter text. Supports suggestions and on-change
|
3601
|
-
# actions.
|
3678
|
+
# actions. Supports form submission validation. When `Action.
|
3679
|
+
# all_widgets_are_required` is set to `true` or this widget is specified in `
|
3680
|
+
# Action.required_widgets`, the submission action is blocked unless a value is
|
3681
|
+
# entered. For an example in Google Chat apps, see [Add a field in which a user
|
3602
3682
|
# can enter text](https://developers.google.com/workspace/chat/design-
|
3603
3683
|
# interactive-card-dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps
|
3604
3684
|
# receive and can process the value of entered text during form input events.
|
@@ -5246,7 +5326,13 @@ module Google
|
|
5246
5326
|
# Optional. Input only. Predefined space permission settings, input only when
|
5247
5327
|
# creating a space. If the field is not set, a collaboration space is created.
|
5248
5328
|
# After you create the space, settings are populated in the `PermissionSettings`
|
5249
|
-
# field.
|
5329
|
+
# field. Setting predefined permission settings supports: - In [Developer
|
5330
|
+
# Preview](https://developers.google.com/workspace/preview), [App authentication]
|
5331
|
+
# (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
|
5332
|
+
# with [administrator approval](https://support.google.com/a?p=chat-app-auth)
|
5333
|
+
# with the `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User
|
5334
|
+
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
5335
|
+
# authorize-chat-user)
|
5250
5336
|
# Corresponds to the JSON property `predefinedPermissionSettings`
|
5251
5337
|
# @return [String]
|
5252
5338
|
attr_accessor :predefined_permission_settings
|
@@ -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.115.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241229"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -466,6 +466,12 @@ module Google
|
|
466
466
|
include Google::Apis::Core::JsonObjectSupport
|
467
467
|
end
|
468
468
|
|
469
|
+
class GoogleAppsCardV1Validation
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
469
475
|
class GoogleAppsCardV1Widget
|
470
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
477
|
|
@@ -1204,12 +1210,14 @@ module Google
|
|
1204
1210
|
class GoogleAppsCardV1Action
|
1205
1211
|
# @private
|
1206
1212
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1213
|
+
property :all_widgets_are_required, as: 'allWidgetsAreRequired'
|
1207
1214
|
property :function, as: 'function'
|
1208
1215
|
property :interaction, as: 'interaction'
|
1209
1216
|
property :load_indicator, as: 'loadIndicator'
|
1210
1217
|
collection :parameters, as: 'parameters', class: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter::Representation
|
1211
1218
|
|
1212
1219
|
property :persist_values, as: 'persistValues'
|
1220
|
+
collection :required_widgets, as: 'requiredWidgets'
|
1213
1221
|
end
|
1214
1222
|
end
|
1215
1223
|
|
@@ -1644,6 +1652,8 @@ module Google
|
|
1644
1652
|
|
1645
1653
|
property :placeholder_text, as: 'placeholderText'
|
1646
1654
|
property :type, as: 'type'
|
1655
|
+
property :validation, as: 'validation', class: Google::Apis::ChatV1::GoogleAppsCardV1Validation, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Validation::Representation
|
1656
|
+
|
1647
1657
|
property :value, as: 'value'
|
1648
1658
|
end
|
1649
1659
|
end
|
@@ -1656,6 +1666,14 @@ module Google
|
|
1656
1666
|
end
|
1657
1667
|
end
|
1658
1668
|
|
1669
|
+
class GoogleAppsCardV1Validation
|
1670
|
+
# @private
|
1671
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1672
|
+
property :character_limit, as: 'characterLimit'
|
1673
|
+
property :input_type, as: 'inputType'
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
|
1659
1677
|
class GoogleAppsCardV1Widget
|
1660
1678
|
# @private
|
1661
1679
|
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.
|
4
|
+
version: 0.115.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:
|
11
|
+
date: 2025-01-05 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.115.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: []
|