google-apis-chat_v1 0.131.0 → 0.132.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 +77 -22
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27b04155d912c16f68ef4d267bcd481027eafd01c43515a213d82d9a11d56fb7
|
4
|
+
data.tar.gz: bf6b679b0091177718296025763e378f753c890e72d0c19fe6494b627ddb64e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95e99f253f5a4c24bdff729d9007448633c014d39cc454f3a25902c16b061585092da72cca852bd7726bf25694e9b420df65b7c378feafe31c845b9de4cfc49
|
7
|
+
data.tar.gz: 03ae55f742eabb581912bf0ca19089d4e37fe0550e5771ae5806a2ac8b11aa3f37b2cef9672d4862f9453a4adf0d4974738b7372f3a9c58916f3ee3830827bde
|
data/CHANGELOG.md
CHANGED
@@ -2061,15 +2061,15 @@ module Google
|
|
2061
2061
|
end
|
2062
2062
|
end
|
2063
2063
|
|
2064
|
-
#
|
2065
|
-
#
|
2066
|
-
#
|
2067
|
-
#
|
2068
|
-
#
|
2069
|
-
# "text": "
|
2070
|
-
# textParagraph": ` "text": "
|
2071
|
-
#
|
2072
|
-
#
|
2064
|
+
# A carousel, also known as a slider, rotates and displays a list of widgets in
|
2065
|
+
# a slideshow format, with buttons navigating to the previous or next widget.
|
2066
|
+
# For example, this is a JSON representation of a carousel that contains three
|
2067
|
+
# text paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "
|
2068
|
+
# textParagraph": ` "text": "First text paragraph in carousel", ` ` ] `, ` "
|
2069
|
+
# widgets": [ ` "textParagraph": ` "text": "Second text paragraph in carousel", `
|
2070
|
+
# ` ] `, ` "widgets": [ ` "textParagraph": ` "text": "Third text paragraph in
|
2071
|
+
# carousel", ` ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/
|
2072
|
+
# workspace/chat):
|
2073
2073
|
class GoogleAppsCardV1Carousel
|
2074
2074
|
include Google::Apis::Core::Hashable
|
2075
2075
|
|
@@ -2088,8 +2088,7 @@ module Google
|
|
2088
2088
|
end
|
2089
2089
|
end
|
2090
2090
|
|
2091
|
-
# [
|
2092
|
-
# that can be displayed as a carousel item. [Google Chat apps](https://
|
2091
|
+
# A card that can be displayed as a carousel item. [Google Chat apps](https://
|
2093
2092
|
# developers.google.com/workspace/chat):
|
2094
2093
|
class GoogleAppsCardV1CarouselCard
|
2095
2094
|
include Google::Apis::Core::Hashable
|
@@ -2507,6 +2506,19 @@ module Google
|
|
2507
2506
|
# @return [String]
|
2508
2507
|
attr_accessor :bottom_label
|
2509
2508
|
|
2509
|
+
# A paragraph of text that supports formatting. For an example in Google Chat
|
2510
|
+
# apps, see [Add a paragraph of formatted text](https://developers.google.com/
|
2511
|
+
# workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
2512
|
+
# For more information about formatting text, see [Formatting text in Google
|
2513
|
+
# Chat apps](https://developers.google.com/workspace/chat/format-messages#card-
|
2514
|
+
# formatting) and [Formatting text in Google Workspace add-ons](https://
|
2515
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2516
|
+
# Google Workspace add-ons and Chat apps](https://developers.google.com/
|
2517
|
+
# workspace/extend):
|
2518
|
+
# Corresponds to the JSON property `bottomLabelText`
|
2519
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2520
|
+
attr_accessor :bottom_label_text
|
2521
|
+
|
2510
2522
|
# A text, icon, or text and icon button that users can click. For an example in
|
2511
2523
|
# Google Chat apps, see [Add a button](https://developers.google.com/workspace/
|
2512
2524
|
# chat/design-interactive-card-dialog#add_a_button). To make an image a
|
@@ -2517,6 +2529,19 @@ module Google
|
|
2517
2529
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
2518
2530
|
attr_accessor :button
|
2519
2531
|
|
2532
|
+
# A paragraph of text that supports formatting. For an example in Google Chat
|
2533
|
+
# apps, see [Add a paragraph of formatted text](https://developers.google.com/
|
2534
|
+
# workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
2535
|
+
# For more information about formatting text, see [Formatting text in Google
|
2536
|
+
# Chat apps](https://developers.google.com/workspace/chat/format-messages#card-
|
2537
|
+
# formatting) and [Formatting text in Google Workspace add-ons](https://
|
2538
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2539
|
+
# Google Workspace add-ons and Chat apps](https://developers.google.com/
|
2540
|
+
# workspace/extend):
|
2541
|
+
# Corresponds to the JSON property `contentText`
|
2542
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2543
|
+
attr_accessor :content_text
|
2544
|
+
|
2520
2545
|
# An icon displayed in a widget on a card. For an example in Google Chat apps,
|
2521
2546
|
# see [Add an icon](https://developers.google.com/workspace/chat/add-text-image-
|
2522
2547
|
# card-dialog#add_an_icon). Supports [built-in](https://developers.google.com/
|
@@ -2557,6 +2582,13 @@ module Google
|
|
2557
2582
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
2558
2583
|
attr_accessor :start_icon
|
2559
2584
|
|
2585
|
+
# Optional. Vertical alignment of the start icon. If not set, the icon will be
|
2586
|
+
# vertically centered. [Google Chat apps](https://developers.google.com/
|
2587
|
+
# workspace/chat):
|
2588
|
+
# Corresponds to the JSON property `startIconVerticalAlignment`
|
2589
|
+
# @return [String]
|
2590
|
+
attr_accessor :start_icon_vertical_alignment
|
2591
|
+
|
2560
2592
|
# Either a toggle-style switch or a checkbox inside a `decoratedText` widget. [
|
2561
2593
|
# Google Workspace add-ons and Chat apps](https://developers.google.com/
|
2562
2594
|
# workspace/extend): Only supported in the `decoratedText` widget.
|
@@ -2578,6 +2610,19 @@ module Google
|
|
2578
2610
|
# @return [String]
|
2579
2611
|
attr_accessor :top_label
|
2580
2612
|
|
2613
|
+
# A paragraph of text that supports formatting. For an example in Google Chat
|
2614
|
+
# apps, see [Add a paragraph of formatted text](https://developers.google.com/
|
2615
|
+
# workspace/chat/add-text-image-card-dialog#add_a_paragraph_of_formatted_text).
|
2616
|
+
# For more information about formatting text, see [Formatting text in Google
|
2617
|
+
# Chat apps](https://developers.google.com/workspace/chat/format-messages#card-
|
2618
|
+
# formatting) and [Formatting text in Google Workspace add-ons](https://
|
2619
|
+
# developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). [
|
2620
|
+
# Google Workspace add-ons and Chat apps](https://developers.google.com/
|
2621
|
+
# workspace/extend):
|
2622
|
+
# Corresponds to the JSON property `topLabelText`
|
2623
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2624
|
+
attr_accessor :top_label_text
|
2625
|
+
|
2581
2626
|
# The wrap text setting. If `true`, the text wraps and displays on multiple
|
2582
2627
|
# lines. Otherwise, the text is truncated. Only applies to `text`, not `topLabel`
|
2583
2628
|
# and `bottomLabel`.
|
@@ -2593,14 +2638,18 @@ module Google
|
|
2593
2638
|
# Update properties of this object
|
2594
2639
|
def update!(**args)
|
2595
2640
|
@bottom_label = args[:bottom_label] if args.key?(:bottom_label)
|
2641
|
+
@bottom_label_text = args[:bottom_label_text] if args.key?(:bottom_label_text)
|
2596
2642
|
@button = args[:button] if args.key?(:button)
|
2643
|
+
@content_text = args[:content_text] if args.key?(:content_text)
|
2597
2644
|
@end_icon = args[:end_icon] if args.key?(:end_icon)
|
2598
2645
|
@icon = args[:icon] if args.key?(:icon)
|
2599
2646
|
@on_click = args[:on_click] if args.key?(:on_click)
|
2600
2647
|
@start_icon = args[:start_icon] if args.key?(:start_icon)
|
2648
|
+
@start_icon_vertical_alignment = args[:start_icon_vertical_alignment] if args.key?(:start_icon_vertical_alignment)
|
2601
2649
|
@switch_control = args[:switch_control] if args.key?(:switch_control)
|
2602
2650
|
@text = args[:text] if args.key?(:text)
|
2603
2651
|
@top_label = args[:top_label] if args.key?(:top_label)
|
2652
|
+
@top_label_text = args[:top_label_text] if args.key?(:top_label_text)
|
2604
2653
|
@wrap_text = args[:wrap_text] if args.key?(:wrap_text)
|
2605
2654
|
end
|
2606
2655
|
end
|
@@ -3059,8 +3108,7 @@ module Google
|
|
3059
3108
|
end
|
3060
3109
|
end
|
3061
3110
|
|
3062
|
-
#
|
3063
|
-
# of widgets that can be displayed in a containing layout, such as a `
|
3111
|
+
# A list of widgets that can be displayed in a containing layout, such as a `
|
3064
3112
|
# CarouselCard`. [Google Chat apps](https://developers.google.com/workspace/chat)
|
3065
3113
|
# :
|
3066
3114
|
class GoogleAppsCardV1NestedWidget
|
@@ -3824,6 +3872,12 @@ module Google
|
|
3824
3872
|
# @return [String]
|
3825
3873
|
attr_accessor :text
|
3826
3874
|
|
3875
|
+
# The syntax of the text. If not set, the text is rendered as HTML. [Google Chat
|
3876
|
+
# apps](https://developers.google.com/workspace/chat):
|
3877
|
+
# Corresponds to the JSON property `textSyntax`
|
3878
|
+
# @return [String]
|
3879
|
+
attr_accessor :text_syntax
|
3880
|
+
|
3827
3881
|
def initialize(**args)
|
3828
3882
|
update!(**args)
|
3829
3883
|
end
|
@@ -3832,6 +3886,7 @@ module Google
|
|
3832
3886
|
def update!(**args)
|
3833
3887
|
@max_lines = args[:max_lines] if args.key?(:max_lines)
|
3834
3888
|
@text = args[:text] if args.key?(:text)
|
3889
|
+
@text_syntax = args[:text_syntax] if args.key?(:text_syntax)
|
3835
3890
|
end
|
3836
3891
|
end
|
3837
3892
|
|
@@ -3919,15 +3974,15 @@ module Google
|
|
3919
3974
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
3920
3975
|
attr_accessor :button_list
|
3921
3976
|
|
3922
|
-
#
|
3923
|
-
#
|
3924
|
-
#
|
3925
|
-
#
|
3926
|
-
#
|
3927
|
-
# "text": "
|
3928
|
-
# textParagraph": ` "text": "
|
3929
|
-
#
|
3930
|
-
#
|
3977
|
+
# A carousel, also known as a slider, rotates and displays a list of widgets in
|
3978
|
+
# a slideshow format, with buttons navigating to the previous or next widget.
|
3979
|
+
# For example, this is a JSON representation of a carousel that contains three
|
3980
|
+
# text paragraph widgets. ``` ` "carouselCards": [ ` "widgets": [ ` "
|
3981
|
+
# textParagraph": ` "text": "First text paragraph in carousel", ` ` ] `, ` "
|
3982
|
+
# widgets": [ ` "textParagraph": ` "text": "Second text paragraph in carousel", `
|
3983
|
+
# ` ] `, ` "widgets": [ ` "textParagraph": ` "text": "Third text paragraph in
|
3984
|
+
# carousel", ` ` ] ` ] ` ``` [Google Chat apps](https://developers.google.com/
|
3985
|
+
# workspace/chat):
|
3931
3986
|
# Corresponds to the JSON property `carousel`
|
3932
3987
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Carousel]
|
3933
3988
|
attr_accessor :carousel
|
@@ -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.132.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250916"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1570,8 +1570,12 @@ module Google
|
|
1570
1570
|
# @private
|
1571
1571
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1572
1572
|
property :bottom_label, as: 'bottomLabel'
|
1573
|
+
property :bottom_label_text, as: 'bottomLabelText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1574
|
+
|
1573
1575
|
property :button, as: 'button', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
1574
1576
|
|
1577
|
+
property :content_text, as: 'contentText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1578
|
+
|
1575
1579
|
property :end_icon, as: 'endIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
1576
1580
|
|
1577
1581
|
property :icon, as: 'icon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
@@ -1580,10 +1584,13 @@ module Google
|
|
1580
1584
|
|
1581
1585
|
property :start_icon, as: 'startIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
1582
1586
|
|
1587
|
+
property :start_icon_vertical_alignment, as: 'startIconVerticalAlignment'
|
1583
1588
|
property :switch_control, as: 'switchControl', class: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl::Representation
|
1584
1589
|
|
1585
1590
|
property :text, as: 'text'
|
1586
1591
|
property :top_label, as: 'topLabel'
|
1592
|
+
property :top_label_text, as: 'topLabelText', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1593
|
+
|
1587
1594
|
property :wrap_text, as: 'wrapText'
|
1588
1595
|
end
|
1589
1596
|
end
|
@@ -1869,6 +1876,7 @@ module Google
|
|
1869
1876
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1870
1877
|
property :max_lines, as: 'maxLines'
|
1871
1878
|
property :text, as: 'text'
|
1879
|
+
property :text_syntax, as: 'textSyntax'
|
1872
1880
|
end
|
1873
1881
|
end
|
1874
1882
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.132.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.132.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|