google-apis-chat_v1 0.107.0 → 0.109.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 +8 -0
- data/lib/google/apis/chat_v1/classes.rb +275 -11
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +94 -0
- data/lib/google/apis/chat_v1/service.rb +97 -46
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce0dfdea43cc9d585d110d56af1272a576bc5f0e4b39bbefeb07c377202787b
|
4
|
+
data.tar.gz: b5b8f534fcf0d83184eaa63083dc6d8550b5aa2750a85e37e436578897d18925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3140dd539f25ecc20f033b35501524703225f7f524e20e260acbba9f861d39e912d0664af3254173a1ab9ceb73a8d045d69e84b89003f5d89e14d667fe858af4
|
7
|
+
data.tar.gz: c4c7b1d4b7237d7d879ae2d26c29b2e9e5dfa8b4a605449aaa737166e8a5cbeaa70fe23e38cef42b04659fba137326f49c97f42e1e82ab94631c7779b2019d92
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.109.0 (2024-10-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241020
|
6
|
+
|
7
|
+
### v0.108.0 (2024-10-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241008
|
10
|
+
|
3
11
|
### v0.107.0 (2024-10-06)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241001
|
@@ -1518,6 +1518,14 @@ module Google
|
|
1518
1518
|
# @return [String]
|
1519
1519
|
attr_accessor :text
|
1520
1520
|
|
1521
|
+
# Optional. The type of a button. If unset, button type defaults to `OUTLINED`.
|
1522
|
+
# If the `color` field is set, the button type is forced to `FILLED` and any
|
1523
|
+
# value set for this field is ignored. [Google Chat apps](https://developers.
|
1524
|
+
# google.com/workspace/chat):
|
1525
|
+
# Corresponds to the JSON property `type`
|
1526
|
+
# @return [String]
|
1527
|
+
attr_accessor :type
|
1528
|
+
|
1521
1529
|
def initialize(**args)
|
1522
1530
|
update!(**args)
|
1523
1531
|
end
|
@@ -1530,6 +1538,7 @@ module Google
|
|
1530
1538
|
@icon = args[:icon] if args.key?(:icon)
|
1531
1539
|
@on_click = args[:on_click] if args.key?(:on_click)
|
1532
1540
|
@text = args[:text] if args.key?(:text)
|
1541
|
+
@type = args[:type] if args.key?(:type)
|
1533
1542
|
end
|
1534
1543
|
end
|
1535
1544
|
|
@@ -1789,6 +1798,140 @@ module Google
|
|
1789
1798
|
end
|
1790
1799
|
end
|
1791
1800
|
|
1801
|
+
# A text, icon, or text and icon chip that users can click. [Google Chat apps](
|
1802
|
+
# https://developers.google.com/workspace/chat):
|
1803
|
+
class GoogleAppsCardV1Chip
|
1804
|
+
include Google::Apis::Core::Hashable
|
1805
|
+
|
1806
|
+
# The alternative text that's used for accessibility. Set descriptive text that
|
1807
|
+
# lets users know what the chip does. For example, if a chip opens a hyperlink,
|
1808
|
+
# write: "Opens a new browser tab and navigates to the Google Chat developer
|
1809
|
+
# documentation at https://developers.google.com/workspace/chat".
|
1810
|
+
# Corresponds to the JSON property `altText`
|
1811
|
+
# @return [String]
|
1812
|
+
attr_accessor :alt_text
|
1813
|
+
|
1814
|
+
# Whether the chip is in an inactive state and ignores user actions. Defaults to
|
1815
|
+
# `false`.
|
1816
|
+
# Corresponds to the JSON property `disabled`
|
1817
|
+
# @return [Boolean]
|
1818
|
+
attr_accessor :disabled
|
1819
|
+
alias_method :disabled?, :disabled
|
1820
|
+
|
1821
|
+
# Whether the chip is in an active state and responds to user actions. Defaults
|
1822
|
+
# to `true`. Deprecated. Use `disabled` instead.
|
1823
|
+
# Corresponds to the JSON property `enabled`
|
1824
|
+
# @return [Boolean]
|
1825
|
+
attr_accessor :enabled
|
1826
|
+
alias_method :enabled?, :enabled
|
1827
|
+
|
1828
|
+
# An icon displayed in a widget on a card. For an example in Google Chat apps,
|
1829
|
+
# see [Add an icon](https://developers.google.com/workspace/chat/add-text-image-
|
1830
|
+
# card-dialog#add_an_icon). Supports [built-in](https://developers.google.com/
|
1831
|
+
# workspace/chat/format-messages#builtinicons) and [custom](https://developers.
|
1832
|
+
# google.com/workspace/chat/format-messages#customicons) icons. [Google
|
1833
|
+
# Workspace Add-ons and Chat apps](https://developers.google.com/workspace/
|
1834
|
+
# extend):
|
1835
|
+
# Corresponds to the JSON property `icon`
|
1836
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
1837
|
+
attr_accessor :icon
|
1838
|
+
|
1839
|
+
# The text displayed inside the chip.
|
1840
|
+
# Corresponds to the JSON property `label`
|
1841
|
+
# @return [String]
|
1842
|
+
attr_accessor :label
|
1843
|
+
|
1844
|
+
# Represents how to respond when users click an interactive element on a card,
|
1845
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
1846
|
+
# google.com/workspace/extend):
|
1847
|
+
# Corresponds to the JSON property `onClick`
|
1848
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
1849
|
+
attr_accessor :on_click
|
1850
|
+
|
1851
|
+
def initialize(**args)
|
1852
|
+
update!(**args)
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
# Update properties of this object
|
1856
|
+
def update!(**args)
|
1857
|
+
@alt_text = args[:alt_text] if args.key?(:alt_text)
|
1858
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
1859
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
1860
|
+
@icon = args[:icon] if args.key?(:icon)
|
1861
|
+
@label = args[:label] if args.key?(:label)
|
1862
|
+
@on_click = args[:on_click] if args.key?(:on_click)
|
1863
|
+
end
|
1864
|
+
end
|
1865
|
+
|
1866
|
+
# A list of chips layed out horizontally, which can either scroll horizontally
|
1867
|
+
# or wrap to the next line. [Google Chat apps](https://developers.google.com/
|
1868
|
+
# workspace/chat):
|
1869
|
+
class GoogleAppsCardV1ChipList
|
1870
|
+
include Google::Apis::Core::Hashable
|
1871
|
+
|
1872
|
+
# An array of chips.
|
1873
|
+
# Corresponds to the JSON property `chips`
|
1874
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1Chip>]
|
1875
|
+
attr_accessor :chips
|
1876
|
+
|
1877
|
+
# Specified chip list layout.
|
1878
|
+
# Corresponds to the JSON property `layout`
|
1879
|
+
# @return [String]
|
1880
|
+
attr_accessor :layout
|
1881
|
+
|
1882
|
+
def initialize(**args)
|
1883
|
+
update!(**args)
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
# Update properties of this object
|
1887
|
+
def update!(**args)
|
1888
|
+
@chips = args[:chips] if args.key?(:chips)
|
1889
|
+
@layout = args[:layout] if args.key?(:layout)
|
1890
|
+
end
|
1891
|
+
end
|
1892
|
+
|
1893
|
+
# Represent an expand and collapse control. [Google Chat apps](https://
|
1894
|
+
# developers.google.com/workspace/chat):
|
1895
|
+
class GoogleAppsCardV1CollapseControl
|
1896
|
+
include Google::Apis::Core::Hashable
|
1897
|
+
|
1898
|
+
# A text, icon, or text and icon button that users can click. For an example in
|
1899
|
+
# Google Chat apps, see [Add a button](https://developers.google.com/workspace/
|
1900
|
+
# chat/design-interactive-card-dialog#add_a_button). To make an image a
|
1901
|
+
# clickable button, specify an `Image` (not an `ImageComponent`) and set an `
|
1902
|
+
# onClick` action. [Google Workspace Add-ons and Chat apps](https://developers.
|
1903
|
+
# google.com/workspace/extend):
|
1904
|
+
# Corresponds to the JSON property `collapseButton`
|
1905
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1906
|
+
attr_accessor :collapse_button
|
1907
|
+
|
1908
|
+
# A text, icon, or text and icon button that users can click. For an example in
|
1909
|
+
# Google Chat apps, see [Add a button](https://developers.google.com/workspace/
|
1910
|
+
# chat/design-interactive-card-dialog#add_a_button). To make an image a
|
1911
|
+
# clickable button, specify an `Image` (not an `ImageComponent`) and set an `
|
1912
|
+
# onClick` action. [Google Workspace Add-ons and Chat apps](https://developers.
|
1913
|
+
# google.com/workspace/extend):
|
1914
|
+
# Corresponds to the JSON property `expandButton`
|
1915
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Button]
|
1916
|
+
attr_accessor :expand_button
|
1917
|
+
|
1918
|
+
# The horizontal alignment of the expand and collapse button.
|
1919
|
+
# Corresponds to the JSON property `horizontalAlignment`
|
1920
|
+
# @return [String]
|
1921
|
+
attr_accessor :horizontal_alignment
|
1922
|
+
|
1923
|
+
def initialize(**args)
|
1924
|
+
update!(**args)
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
# Update properties of this object
|
1928
|
+
def update!(**args)
|
1929
|
+
@collapse_button = args[:collapse_button] if args.key?(:collapse_button)
|
1930
|
+
@expand_button = args[:expand_button] if args.key?(:expand_button)
|
1931
|
+
@horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
|
1932
|
+
end
|
1933
|
+
end
|
1934
|
+
|
1792
1935
|
# A column. [Google Workspace Add-ons and Chat apps](https://developers.google.
|
1793
1936
|
# com/workspace/extend)
|
1794
1937
|
class GoogleAppsCardV1Column
|
@@ -2467,6 +2610,15 @@ module Google
|
|
2467
2610
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OpenLink]
|
2468
2611
|
attr_accessor :open_link
|
2469
2612
|
|
2613
|
+
# A widget that presents a pop-up menu with one or more actions that users can
|
2614
|
+
# invoke. For example, showing non-primary actions in a card. You can use this
|
2615
|
+
# widget when actions don't fit in the available space. To use, specify this
|
2616
|
+
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2617
|
+
# Button`. [Google Chat apps](https://developers.google.com/workspace/chat):
|
2618
|
+
# Corresponds to the JSON property `overflowMenu`
|
2619
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu]
|
2620
|
+
attr_accessor :overflow_menu
|
2621
|
+
|
2470
2622
|
def initialize(**args)
|
2471
2623
|
update!(**args)
|
2472
2624
|
end
|
@@ -2477,6 +2629,7 @@ module Google
|
|
2477
2629
|
@card = args[:card] if args.key?(:card)
|
2478
2630
|
@open_dynamic_link_action = args[:open_dynamic_link_action] if args.key?(:open_dynamic_link_action)
|
2479
2631
|
@open_link = args[:open_link] if args.key?(:open_link)
|
2632
|
+
@overflow_menu = args[:overflow_menu] if args.key?(:overflow_menu)
|
2480
2633
|
end
|
2481
2634
|
end
|
2482
2635
|
|
@@ -2515,6 +2668,76 @@ module Google
|
|
2515
2668
|
end
|
2516
2669
|
end
|
2517
2670
|
|
2671
|
+
# A widget that presents a pop-up menu with one or more actions that users can
|
2672
|
+
# invoke. For example, showing non-primary actions in a card. You can use this
|
2673
|
+
# widget when actions don't fit in the available space. To use, specify this
|
2674
|
+
# widget in the `OnClick` action of widgets that support it. For example, in a `
|
2675
|
+
# Button`. [Google Chat apps](https://developers.google.com/workspace/chat):
|
2676
|
+
class GoogleAppsCardV1OverflowMenu
|
2677
|
+
include Google::Apis::Core::Hashable
|
2678
|
+
|
2679
|
+
# Required. The list of menu options.
|
2680
|
+
# Corresponds to the JSON property `items`
|
2681
|
+
# @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem>]
|
2682
|
+
attr_accessor :items
|
2683
|
+
|
2684
|
+
def initialize(**args)
|
2685
|
+
update!(**args)
|
2686
|
+
end
|
2687
|
+
|
2688
|
+
# Update properties of this object
|
2689
|
+
def update!(**args)
|
2690
|
+
@items = args[:items] if args.key?(:items)
|
2691
|
+
end
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# An option that users can invoke in an overflow menu. [Google Chat apps](https:/
|
2695
|
+
# /developers.google.com/workspace/chat):
|
2696
|
+
class GoogleAppsCardV1OverflowMenuItem
|
2697
|
+
include Google::Apis::Core::Hashable
|
2698
|
+
|
2699
|
+
# Whether the menu option is disabled. Defaults to false.
|
2700
|
+
# Corresponds to the JSON property `disabled`
|
2701
|
+
# @return [Boolean]
|
2702
|
+
attr_accessor :disabled
|
2703
|
+
alias_method :disabled?, :disabled
|
2704
|
+
|
2705
|
+
# Represents how to respond when users click an interactive element on a card,
|
2706
|
+
# such as a button. [Google Workspace Add-ons and Chat apps](https://developers.
|
2707
|
+
# google.com/workspace/extend):
|
2708
|
+
# Corresponds to the JSON property `onClick`
|
2709
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]
|
2710
|
+
attr_accessor :on_click
|
2711
|
+
|
2712
|
+
# An icon displayed in a widget on a card. For an example in Google Chat apps,
|
2713
|
+
# see [Add an icon](https://developers.google.com/workspace/chat/add-text-image-
|
2714
|
+
# card-dialog#add_an_icon). Supports [built-in](https://developers.google.com/
|
2715
|
+
# workspace/chat/format-messages#builtinicons) and [custom](https://developers.
|
2716
|
+
# google.com/workspace/chat/format-messages#customicons) icons. [Google
|
2717
|
+
# Workspace Add-ons and Chat apps](https://developers.google.com/workspace/
|
2718
|
+
# extend):
|
2719
|
+
# Corresponds to the JSON property `startIcon`
|
2720
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Icon]
|
2721
|
+
attr_accessor :start_icon
|
2722
|
+
|
2723
|
+
# Required. The text that identifies or describes the item to users.
|
2724
|
+
# Corresponds to the JSON property `text`
|
2725
|
+
# @return [String]
|
2726
|
+
attr_accessor :text
|
2727
|
+
|
2728
|
+
def initialize(**args)
|
2729
|
+
update!(**args)
|
2730
|
+
end
|
2731
|
+
|
2732
|
+
# Update properties of this object
|
2733
|
+
def update!(**args)
|
2734
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
2735
|
+
@on_click = args[:on_click] if args.key?(:on_click)
|
2736
|
+
@start_icon = args[:start_icon] if args.key?(:start_icon)
|
2737
|
+
@text = args[:text] if args.key?(:text)
|
2738
|
+
end
|
2739
|
+
end
|
2740
|
+
|
2518
2741
|
# For a `SelectionInput` widget that uses a multiselect menu, a data source from
|
2519
2742
|
# Google Workspace. Used to populate items in a multiselect menu. [Google Chat
|
2520
2743
|
# apps](https://developers.google.com/workspace/chat):
|
@@ -2552,6 +2775,12 @@ module Google
|
|
2552
2775
|
class GoogleAppsCardV1Section
|
2553
2776
|
include Google::Apis::Core::Hashable
|
2554
2777
|
|
2778
|
+
# Represent an expand and collapse control. [Google Chat apps](https://
|
2779
|
+
# developers.google.com/workspace/chat):
|
2780
|
+
# Corresponds to the JSON property `collapseControl`
|
2781
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl]
|
2782
|
+
attr_accessor :collapse_control
|
2783
|
+
|
2555
2784
|
# Indicates whether this section is collapsible. Collapsible sections hide some
|
2556
2785
|
# or all widgets, but users can expand the section to reveal the hidden widgets
|
2557
2786
|
# by clicking **Show more**. Users can hide the widgets again by clicking **Show
|
@@ -2592,6 +2821,7 @@ module Google
|
|
2592
2821
|
|
2593
2822
|
# Update properties of this object
|
2594
2823
|
def update!(**args)
|
2824
|
+
@collapse_control = args[:collapse_control] if args.key?(:collapse_control)
|
2595
2825
|
@collapsible = args[:collapsible] if args.key?(:collapsible)
|
2596
2826
|
@header = args[:header] if args.key?(:header)
|
2597
2827
|
@uncollapsible_widgets_count = args[:uncollapsible_widgets_count] if args.key?(:uncollapsible_widgets_count)
|
@@ -2972,6 +3202,17 @@ module Google
|
|
2972
3202
|
class GoogleAppsCardV1TextParagraph
|
2973
3203
|
include Google::Apis::Core::Hashable
|
2974
3204
|
|
3205
|
+
# The maximum number of lines of text that are displayed in the widget. If the
|
3206
|
+
# text exceeds the specified maximum number of lines, the excess content is
|
3207
|
+
# concealed behind a **show more** button. If the text is equal or shorter than
|
3208
|
+
# the specified maximum number of lines, a **show more** button isn't displayed.
|
3209
|
+
# The default value is 0, in which case all context is displayed. Negative
|
3210
|
+
# values are ignored. [Google Chat apps](https://developers.google.com/workspace/
|
3211
|
+
# chat):
|
3212
|
+
# Corresponds to the JSON property `maxLines`
|
3213
|
+
# @return [Fixnum]
|
3214
|
+
attr_accessor :max_lines
|
3215
|
+
|
2975
3216
|
# The text that's shown in the widget.
|
2976
3217
|
# Corresponds to the JSON property `text`
|
2977
3218
|
# @return [String]
|
@@ -2983,6 +3224,7 @@ module Google
|
|
2983
3224
|
|
2984
3225
|
# Update properties of this object
|
2985
3226
|
def update!(**args)
|
3227
|
+
@max_lines = args[:max_lines] if args.key?(:max_lines)
|
2986
3228
|
@text = args[:text] if args.key?(:text)
|
2987
3229
|
end
|
2988
3230
|
end
|
@@ -3000,6 +3242,13 @@ module Google
|
|
3000
3242
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
3001
3243
|
attr_accessor :button_list
|
3002
3244
|
|
3245
|
+
# A list of chips layed out horizontally, which can either scroll horizontally
|
3246
|
+
# or wrap to the next line. [Google Chat apps](https://developers.google.com/
|
3247
|
+
# workspace/chat):
|
3248
|
+
# Corresponds to the JSON property `chipList`
|
3249
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3250
|
+
attr_accessor :chip_list
|
3251
|
+
|
3003
3252
|
# The `Columns` widget displays up to 2 columns in a card or dialog. You can add
|
3004
3253
|
# widgets to each column; the widgets appear in the order that they are
|
3005
3254
|
# specified. For an example in Google Chat apps, see [Display cards and dialogs
|
@@ -3137,6 +3386,7 @@ module Google
|
|
3137
3386
|
# Update properties of this object
|
3138
3387
|
def update!(**args)
|
3139
3388
|
@button_list = args[:button_list] if args.key?(:button_list)
|
3389
|
+
@chip_list = args[:chip_list] if args.key?(:chip_list)
|
3140
3390
|
@columns = args[:columns] if args.key?(:columns)
|
3141
3391
|
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
3142
3392
|
@decorated_text = args[:decorated_text] if args.key?(:decorated_text)
|
@@ -3163,6 +3413,13 @@ module Google
|
|
3163
3413
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]
|
3164
3414
|
attr_accessor :button_list
|
3165
3415
|
|
3416
|
+
# A list of chips layed out horizontally, which can either scroll horizontally
|
3417
|
+
# or wrap to the next line. [Google Chat apps](https://developers.google.com/
|
3418
|
+
# workspace/chat):
|
3419
|
+
# Corresponds to the JSON property `chipList`
|
3420
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1ChipList]
|
3421
|
+
attr_accessor :chip_list
|
3422
|
+
|
3166
3423
|
# Lets users input a date, a time, or both a date and a time. For an example in
|
3167
3424
|
# Google Chat apps, see [Let a user pick a date and time](https://developers.
|
3168
3425
|
# google.com/workspace/chat/design-interactive-card-dialog#
|
@@ -3241,6 +3498,7 @@ module Google
|
|
3241
3498
|
# Update properties of this object
|
3242
3499
|
def update!(**args)
|
3243
3500
|
@button_list = args[:button_list] if args.key?(:button_list)
|
3501
|
+
@chip_list = args[:chip_list] if args.key?(:chip_list)
|
3244
3502
|
@date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
|
3245
3503
|
@decorated_text = args[:decorated_text] if args.key?(:decorated_text)
|
3246
3504
|
@image = args[:image] if args.key?(:image)
|
@@ -3573,7 +3831,9 @@ module Google
|
|
3573
3831
|
# @return [String]
|
3574
3832
|
attr_accessor :next_page_token
|
3575
3833
|
|
3576
|
-
# Results are returned in chronological order (oldest event first).
|
3834
|
+
# Results are returned in chronological order (oldest event first). Note: The `
|
3835
|
+
# permissionSettings` field is not returned in the Space object for list
|
3836
|
+
# requests.
|
3577
3837
|
# Corresponds to the JSON property `spaceEvents`
|
3578
3838
|
# @return [Array<Google::Apis::ChatV1::SpaceEvent>]
|
3579
3839
|
attr_accessor :space_events
|
@@ -3599,7 +3859,8 @@ module Google
|
|
3599
3859
|
# @return [String]
|
3600
3860
|
attr_accessor :next_page_token
|
3601
3861
|
|
3602
|
-
# List of spaces in the requested (or first) page.
|
3862
|
+
# List of spaces in the requested (or first) page. Note: The `permissionSettings`
|
3863
|
+
# field is not returned in the Space object for list requests.
|
3603
3864
|
# Corresponds to the JSON property `spaces`
|
3604
3865
|
# @return [Array<Google::Apis::ChatV1::Space>]
|
3605
3866
|
attr_accessor :spaces
|
@@ -4304,9 +4565,10 @@ module Google
|
|
4304
4565
|
end
|
4305
4566
|
end
|
4306
4567
|
|
4307
|
-
# [Permission settings](https://support.google.com/chat/answer/13340792)
|
4308
|
-
#
|
4309
|
-
#
|
4568
|
+
# [Permission settings](https://support.google.com/chat/answer/13340792) that
|
4569
|
+
# you can specify when updating an existing named space. To set permission
|
4570
|
+
# settings when creating a space, specify the `PredefinedPermissionSettings`
|
4571
|
+
# field in your request.
|
4310
4572
|
class PermissionSettings
|
4311
4573
|
include Google::Apis::Core::Hashable
|
4312
4574
|
|
@@ -4832,16 +5094,18 @@ module Google
|
|
4832
5094
|
# @return [String]
|
4833
5095
|
attr_accessor :name
|
4834
5096
|
|
4835
|
-
# [Permission settings](https://support.google.com/chat/answer/13340792)
|
4836
|
-
#
|
4837
|
-
#
|
5097
|
+
# [Permission settings](https://support.google.com/chat/answer/13340792) that
|
5098
|
+
# you can specify when updating an existing named space. To set permission
|
5099
|
+
# settings when creating a space, specify the `PredefinedPermissionSettings`
|
5100
|
+
# field in your request.
|
4838
5101
|
# Corresponds to the JSON property `permissionSettings`
|
4839
5102
|
# @return [Google::Apis::ChatV1::PermissionSettings]
|
4840
5103
|
attr_accessor :permission_settings
|
4841
5104
|
|
4842
|
-
# Optional. Input only.
|
4843
|
-
#
|
4844
|
-
# space, settings are populated in the `PermissionSettings`
|
5105
|
+
# Optional. Input only. Predefined space permission settings, input only when
|
5106
|
+
# creating a space. If the field is not set, a collaboration space is created.
|
5107
|
+
# After you create the space, settings are populated in the `PermissionSettings`
|
5108
|
+
# field.
|
4845
5109
|
# Corresponds to the JSON property `predefinedPermissionSettings`
|
4846
5110
|
# @return [String]
|
4847
5111
|
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.109.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 = "20241020"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,6 +280,24 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class GoogleAppsCardV1Chip
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleAppsCardV1ChipList
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class GoogleAppsCardV1CollapseControl
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
283
301
|
class GoogleAppsCardV1Column
|
284
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
303
|
|
@@ -364,6 +382,18 @@ module Google
|
|
364
382
|
include Google::Apis::Core::JsonObjectSupport
|
365
383
|
end
|
366
384
|
|
385
|
+
class GoogleAppsCardV1OverflowMenu
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class GoogleAppsCardV1OverflowMenuItem
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
367
397
|
class GoogleAppsCardV1PlatformDataSource
|
368
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
399
|
|
@@ -1195,6 +1225,7 @@ module Google
|
|
1195
1225
|
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
1196
1226
|
|
1197
1227
|
property :text, as: 'text'
|
1228
|
+
property :type, as: 'type'
|
1198
1229
|
end
|
1199
1230
|
end
|
1200
1231
|
|
@@ -1255,6 +1286,40 @@ module Google
|
|
1255
1286
|
end
|
1256
1287
|
end
|
1257
1288
|
|
1289
|
+
class GoogleAppsCardV1Chip
|
1290
|
+
# @private
|
1291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1292
|
+
property :alt_text, as: 'altText'
|
1293
|
+
property :disabled, as: 'disabled'
|
1294
|
+
property :enabled, as: 'enabled'
|
1295
|
+
property :icon, as: 'icon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
1296
|
+
|
1297
|
+
property :label, as: 'label'
|
1298
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
1299
|
+
|
1300
|
+
end
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
class GoogleAppsCardV1ChipList
|
1304
|
+
# @private
|
1305
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1306
|
+
collection :chips, as: 'chips', class: Google::Apis::ChatV1::GoogleAppsCardV1Chip, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Chip::Representation
|
1307
|
+
|
1308
|
+
property :layout, as: 'layout'
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
class GoogleAppsCardV1CollapseControl
|
1313
|
+
# @private
|
1314
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1315
|
+
property :collapse_button, as: 'collapseButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
1316
|
+
|
1317
|
+
property :expand_button, as: 'expandButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
1318
|
+
|
1319
|
+
property :horizontal_alignment, as: 'horizontalAlignment'
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1258
1323
|
class GoogleAppsCardV1Column
|
1259
1324
|
# @private
|
1260
1325
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1404,6 +1469,8 @@ module Google
|
|
1404
1469
|
|
1405
1470
|
property :open_link, as: 'openLink', class: Google::Apis::ChatV1::GoogleAppsCardV1OpenLink, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OpenLink::Representation
|
1406
1471
|
|
1472
|
+
property :overflow_menu, as: 'overflowMenu', class: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenu::Representation
|
1473
|
+
|
1407
1474
|
end
|
1408
1475
|
end
|
1409
1476
|
|
@@ -1416,6 +1483,26 @@ module Google
|
|
1416
1483
|
end
|
1417
1484
|
end
|
1418
1485
|
|
1486
|
+
class GoogleAppsCardV1OverflowMenu
|
1487
|
+
# @private
|
1488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1489
|
+
collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OverflowMenuItem::Representation
|
1490
|
+
|
1491
|
+
end
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
class GoogleAppsCardV1OverflowMenuItem
|
1495
|
+
# @private
|
1496
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1497
|
+
property :disabled, as: 'disabled'
|
1498
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
1499
|
+
|
1500
|
+
property :start_icon, as: 'startIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
1501
|
+
|
1502
|
+
property :text, as: 'text'
|
1503
|
+
end
|
1504
|
+
end
|
1505
|
+
|
1419
1506
|
class GoogleAppsCardV1PlatformDataSource
|
1420
1507
|
# @private
|
1421
1508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1428,6 +1515,8 @@ module Google
|
|
1428
1515
|
class GoogleAppsCardV1Section
|
1429
1516
|
# @private
|
1430
1517
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1518
|
+
property :collapse_control, as: 'collapseControl', class: Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl::Representation
|
1519
|
+
|
1431
1520
|
property :collapsible, as: 'collapsible'
|
1432
1521
|
property :header, as: 'header'
|
1433
1522
|
property :uncollapsible_widgets_count, as: 'uncollapsibleWidgetsCount'
|
@@ -1514,6 +1603,7 @@ module Google
|
|
1514
1603
|
class GoogleAppsCardV1TextParagraph
|
1515
1604
|
# @private
|
1516
1605
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1606
|
+
property :max_lines, as: 'maxLines'
|
1517
1607
|
property :text, as: 'text'
|
1518
1608
|
end
|
1519
1609
|
end
|
@@ -1523,6 +1613,8 @@ module Google
|
|
1523
1613
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1524
1614
|
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1525
1615
|
|
1616
|
+
property :chip_list, as: 'chipList', class: Google::Apis::ChatV1::GoogleAppsCardV1ChipList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ChipList::Representation
|
1617
|
+
|
1526
1618
|
property :columns, as: 'columns', class: Google::Apis::ChatV1::GoogleAppsCardV1Columns, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Columns::Representation
|
1527
1619
|
|
1528
1620
|
property :date_time_picker, as: 'dateTimePicker', class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker::Representation
|
@@ -1550,6 +1642,8 @@ module Google
|
|
1550
1642
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1551
1643
|
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
1552
1644
|
|
1645
|
+
property :chip_list, as: 'chipList', class: Google::Apis::ChatV1::GoogleAppsCardV1ChipList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ChipList::Representation
|
1646
|
+
|
1553
1647
|
property :date_time_picker, as: 'dateTimePicker', class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker::Representation
|
1554
1648
|
|
1555
1649
|
property :decorated_text, as: 'decoratedText', class: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText::Representation
|
@@ -141,8 +141,9 @@ module Google
|
|
141
141
|
end
|
142
142
|
|
143
143
|
# Completes the [import process](https://developers.google.com/workspace/chat/
|
144
|
-
# import-data) for the specified space and makes it visible to users. Requires
|
145
|
-
# app authentication
|
144
|
+
# import-data) for the specified space and makes it visible to users. Requires [
|
145
|
+
# app authentication](https://developers.google.com/workspace/chat/authenticate-
|
146
|
+
# authorize-chat-app) and domain-wide delegation. For more information, see [
|
146
147
|
# Authorize Google Chat apps to import data](https://developers.google.com/
|
147
148
|
# workspace/chat/authorize-import).
|
148
149
|
# @param [String] name
|
@@ -237,7 +238,9 @@ module Google
|
|
237
238
|
# workspace/chat/authenticate-authorize-chat-app) with [administrator approval](
|
238
239
|
# https://support.google.com/a?p=chat-app-auth) in [Developer Preview](https://
|
239
240
|
# developers.google.com/workspace/preview) - [User authentication](https://
|
240
|
-
# developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
241
|
+
# developers.google.com/workspace/chat/authenticate-authorize-chat-user) You can
|
242
|
+
# authenticate and authorize this method with administrator privileges by
|
243
|
+
# setting the `use_admin_access` field in the request.
|
241
244
|
# @param [String] name
|
242
245
|
# Required. Resource name of the space to delete. Format: `spaces/`space``
|
243
246
|
# @param [Boolean] use_admin_access
|
@@ -331,6 +334,8 @@ module Google
|
|
331
334
|
# chat/authenticate-authorize): - [App authentication](https://developers.google.
|
332
335
|
# com/workspace/chat/authenticate-authorize-chat-app) - [User authentication](
|
333
336
|
# https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
337
|
+
# You can authenticate and authorize this method with administrator privileges
|
338
|
+
# by setting the `use_admin_access` field in the request.
|
334
339
|
# @param [String] name
|
335
340
|
# Required. Resource name of the space, in the form `spaces/`space``. Format: `
|
336
341
|
# spaces/`space``
|
@@ -375,12 +380,10 @@ module Google
|
|
375
380
|
# types of [authentication](https://developers.google.com/workspace/chat/
|
376
381
|
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
377
382
|
# workspace/chat/authenticate-authorize-chat-app) - [User authentication](https:/
|
378
|
-
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
379
|
-
#
|
380
|
-
#
|
381
|
-
# Workspace
|
382
|
-
# com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace
|
383
|
-
# administrator privileges instead.
|
383
|
+
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user) To
|
384
|
+
# list all named spaces by Google Workspace organization, use the [`spaces.
|
385
|
+
# search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/
|
386
|
+
# spaces/search) method using Workspace administrator privileges instead.
|
384
387
|
# @param [String] filter
|
385
388
|
# Optional. A query filter. You can filter spaces by the space type ([`
|
386
389
|
# space_type`](https://developers.google.com/workspace/chat/api/reference/rest/
|
@@ -439,7 +442,9 @@ module Google
|
|
439
442
|
# authorize-chat-app) with [administrator approval](https://support.google.com/a?
|
440
443
|
# p=chat-app-auth) in [Developer Preview](https://developers.google.com/
|
441
444
|
# workspace/preview) - [User authentication](https://developers.google.com/
|
442
|
-
# workspace/chat/authenticate-authorize-chat-user)
|
445
|
+
# workspace/chat/authenticate-authorize-chat-user) You can authenticate and
|
446
|
+
# authorize this method with administrator privileges by setting the `
|
447
|
+
# use_admin_access` field in the request.
|
443
448
|
# @param [String] name
|
444
449
|
# Resource name of the space. Format: `spaces/`space`` Where ``space``
|
445
450
|
# represents the system-assigned ID for the space. You can obtain the space ID
|
@@ -449,14 +454,45 @@ module Google
|
|
449
454
|
# the space ID is `AAAAAAAAA`.
|
450
455
|
# @param [Google::Apis::ChatV1::Space] space_object
|
451
456
|
# @param [String] update_mask
|
452
|
-
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
457
|
+
# Required. The updated field paths, comma separated if there are multiple. You
|
458
|
+
# can update the following fields for a space: `space_details`: Updates the
|
459
|
+
# space's description. Supports up to 150 characters. `display_name`: Only
|
460
|
+
# supports updating the display name for spaces where `spaceType` field is `
|
461
|
+
# SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different
|
462
|
+
# value. An existing space within the Google Workspace organization might
|
463
|
+
# already use this display name. `space_type`: Only supports changing a `
|
464
|
+
# GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `
|
465
|
+
# space_type` in the update mask and ensure that the specified space has a non-
|
466
|
+
# empty display name and the `SPACE` space type. Including the `space_type` mask
|
467
|
+
# and the `SPACE` type in the specified space when updating the display name is
|
468
|
+
# optional if the existing space already has the `SPACE` type. Trying to update
|
469
|
+
# the space type in other ways results in an invalid argument error. `space_type`
|
470
|
+
# is not supported with `useAdminAccess`. `space_history_state`: Updates [space
|
471
|
+
# history settings](https://support.google.com/chat/answer/7664687) by turning
|
472
|
+
# history on or off for the space. Only supported if history settings are
|
473
|
+
# enabled for the Google Workspace organization. To update the space history
|
474
|
+
# state, you must omit all other field masks in your request. `
|
475
|
+
# space_history_state` is not supported with `useAdminAccess`. `access_settings.
|
476
|
+
# audience`: Updates the [access setting](https://support.google.com/chat/answer/
|
477
|
+
# 11971020) of who can discover the space, join the space, and preview the
|
478
|
+
# messages in named space where `spaceType` field is `SPACE`. If the existing
|
479
|
+
# space has a target audience, you can remove the audience and restrict space
|
480
|
+
# access by omitting a value for this field mask. To update access settings for
|
481
|
+
# a space, the authenticating user must be a space manager and omit all other
|
482
|
+
# field masks in your request. You can't update this field if the space is in [
|
483
|
+
# import mode](https://developers.google.com/workspace/chat/import-data-overview)
|
484
|
+
# . To learn more, see [Make a space discoverable to specific users](https://
|
485
|
+
# developers.google.com/workspace/chat/space-target-audience). `access_settings.
|
486
|
+
# audience` is not supported with `useAdminAccess`. `permission_settings`:
|
487
|
+
# Supports changing the [permission settings](https://support.google.com/chat/
|
488
|
+
# answer/13340792) of a space. When updating permission settings, you can only
|
489
|
+
# specify `permissionSettings` field masks; you cannot update other field masks
|
490
|
+
# at the same time. `permissionSettings` is not supported with `useAdminAccess`.
|
491
|
+
# The supported field masks include: - `permission_settings.
|
492
|
+
# manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `
|
493
|
+
# permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `
|
494
|
+
# permission_settings.manageApps` - `permission_settings.manageWebhooks` - `
|
495
|
+
# permission_settings.replyMessages`
|
460
496
|
# @param [Boolean] use_admin_access
|
461
497
|
# When `true`, the method runs using the user's Google Workspace administrator
|
462
498
|
# privileges. The calling user must be a Google Workspace administrator with the
|
@@ -674,12 +710,14 @@ module Google
|
|
674
710
|
# with [administrator approval](https://support.google.com/a?p=chat-app-auth) in
|
675
711
|
# [Developer Preview](https://developers.google.com/workspace/preview) - [User
|
676
712
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
677
|
-
# authorize-chat-user)
|
678
|
-
#
|
679
|
-
#
|
680
|
-
# google.com/workspace/chat/create-members#create-
|
681
|
-
#
|
682
|
-
# members#create-membership
|
713
|
+
# authorize-chat-user) You can authenticate and authorize this method with
|
714
|
+
# administrator privileges by setting the `use_admin_access` field in the
|
715
|
+
# request. For example usage, see: - [Invite or add a user to a space](https://
|
716
|
+
# developers.google.com/workspace/chat/create-members#create-user-membership). -
|
717
|
+
# [Invite or add a Google Group to a space](https://developers.google.com/
|
718
|
+
# workspace/chat/create-members#create-group-membership). - [Add the Chat app to
|
719
|
+
# a space](https://developers.google.com/workspace/chat/create-members#create-
|
720
|
+
# membership-calling-api).
|
683
721
|
# @param [String] parent
|
684
722
|
# Required. The resource name of the space for which to create the membership.
|
685
723
|
# Format: spaces/`space`
|
@@ -731,7 +769,9 @@ module Google
|
|
731
769
|
# administrator approval](https://support.google.com/a?p=chat-app-auth) in [
|
732
770
|
# Developer Preview](https://developers.google.com/workspace/preview) - [User
|
733
771
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
734
|
-
# authorize-chat-user)
|
772
|
+
# authorize-chat-user) You can authenticate and authorize this method with
|
773
|
+
# administrator privileges by setting the `use_admin_access` field in the
|
774
|
+
# request.
|
735
775
|
# @param [String] name
|
736
776
|
# Required. Resource name of the membership to delete. Chat apps can delete
|
737
777
|
# human users' or their own memberships. Chat apps can't delete other apps'
|
@@ -784,7 +824,9 @@ module Google
|
|
784
824
|
# https://developers.google.com/workspace/chat/authenticate-authorize): - [App
|
785
825
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
786
826
|
# authorize-chat-app) - [User authentication](https://developers.google.com/
|
787
|
-
# workspace/chat/authenticate-authorize-chat-user)
|
827
|
+
# workspace/chat/authenticate-authorize-chat-user) You can authenticate and
|
828
|
+
# authorize this method with administrator privileges by setting the `
|
829
|
+
# use_admin_access` field in the request.
|
788
830
|
# @param [String] name
|
789
831
|
# Required. Resource name of the membership to retrieve. To get the app's own
|
790
832
|
# membership [by using user authentication](https://developers.google.com/
|
@@ -840,7 +882,9 @@ module Google
|
|
840
882
|
# types of [authentication](https://developers.google.com/workspace/chat/
|
841
883
|
# authenticate-authorize): - [App authentication](https://developers.google.com/
|
842
884
|
# workspace/chat/authenticate-authorize-chat-app) - [User authentication](https:/
|
843
|
-
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
885
|
+
# /developers.google.com/workspace/chat/authenticate-authorize-chat-user) You
|
886
|
+
# can authenticate and authorize this method with administrator privileges by
|
887
|
+
# setting the `use_admin_access` field in the request.
|
844
888
|
# @param [String] parent
|
845
889
|
# Required. The resource name of the space for which to fetch a membership list.
|
846
890
|
# Format: spaces/`space`
|
@@ -931,7 +975,9 @@ module Google
|
|
931
975
|
# administrator approval](https://support.google.com/a?p=chat-app-auth) in [
|
932
976
|
# Developer Preview](https://developers.google.com/workspace/preview) - [User
|
933
977
|
# authentication](https://developers.google.com/workspace/chat/authenticate-
|
934
|
-
# authorize-chat-user)
|
978
|
+
# authorize-chat-user) You can authenticate and authorize this method with
|
979
|
+
# administrator privileges by setting the `use_admin_access` field in the
|
980
|
+
# request.
|
935
981
|
# @param [String] name
|
936
982
|
# Resource name of the membership, assigned by the server. Format: `spaces/`
|
937
983
|
# space`/members/`member``
|
@@ -979,19 +1025,22 @@ module Google
|
|
979
1025
|
|
980
1026
|
# Creates a message in a Google Chat space. For an example, see [Send a message](
|
981
1027
|
# https://developers.google.com/workspace/chat/create-messages). The `create()`
|
982
|
-
# method requires either user
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
989
|
-
#
|
990
|
-
# authentication.
|
991
|
-
#
|
992
|
-
#
|
993
|
-
#
|
994
|
-
# message
|
1028
|
+
# method requires either [user authentication](https://developers.google.com/
|
1029
|
+
# workspace/chat/authenticate-authorize-chat-user) or [app authentication](https:
|
1030
|
+
# //developers.google.com/workspace/chat/authorize-import). Chat attributes the
|
1031
|
+
# message sender differently depending on the type of authentication that you
|
1032
|
+
# use in your request. The following image shows how Chat attributes a message
|
1033
|
+
# when you use app authentication. Chat displays the Chat app as the message
|
1034
|
+
# sender. The content of the message can contain text (`text`), cards (`cardsV2`)
|
1035
|
+
# , and accessory widgets (`accessoryWidgets`).  The following image shows how Chat attributes a message when you
|
1038
|
+
# use user authentication. Chat displays the user as the message sender and
|
1039
|
+
# attributes the Chat app to the message by displaying its name. The content of
|
1040
|
+
# message can only contain text (`text`).  The maximum message size, including the message contents, is 32,
|
1043
|
+
# 000 bytes.
|
995
1044
|
# @param [String] parent
|
996
1045
|
# Required. The resource name of the space in which to create a message. Format:
|
997
1046
|
# `spaces/`space``
|
@@ -1527,11 +1576,13 @@ module Google
|
|
1527
1576
|
# SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the
|
1528
1577
|
# resource that changed. For example, if you request an event about a new
|
1529
1578
|
# message but the message was later updated, the server returns the updated `
|
1530
|
-
# Message` resource in the event payload.
|
1531
|
-
#
|
1532
|
-
#
|
1533
|
-
#
|
1534
|
-
#
|
1579
|
+
# Message` resource in the event payload. Note: The `permissionSettings` field
|
1580
|
+
# is not returned in the Space object of the Space event data for this request.
|
1581
|
+
# Requires [user authentication](https://developers.google.com/workspace/chat/
|
1582
|
+
# authenticate-authorize-chat-user). To get an event, the authenticated user
|
1583
|
+
# must be a member of the space. For an example, see [Get details about an event
|
1584
|
+
# from a Google Chat space](https://developers.google.com/workspace/chat/get-
|
1585
|
+
# space-event).
|
1535
1586
|
# @param [String] name
|
1536
1587
|
# Required. The resource name of the space event. Format: `spaces/`space`/
|
1537
1588
|
# spaceEvents/`spaceEvent``
|
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.109.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-10-
|
11
|
+
date: 2024-10-27 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.109.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Chat API V1
|