google-apis-chat_v1 0.41.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/chat_v1/classes.rb +106 -15
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +33 -0
- data/lib/google/apis/chat_v1/service.rb +1 -1
- 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: e614855065d1e9df97ada2efa61389aeab8586b0237a246c57ecf686bcf115fe
|
4
|
+
data.tar.gz: 6c8062ad5e137c17d5d2f1be8236e42f198d6ac3b5fec5190dfa72f3093b5da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8dd9ce2b71565a4cbfdd8eedebbcbf1d50616e5d3940c89d20e0238145a13295dbc2281e692099fc2b9d7992e45089093988c63d62c0d77ce42710e48ed6195
|
7
|
+
data.tar.gz: ca407f3e7c18c4d78c5fad5251d167f95529bd13bef9c6e16de42559cc7f0a85ec72ad98fbf9c81438fb8f25492419030efbaf6c0aeafb4066141c96895dc749
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.44.0 (2022-09-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220904
|
6
|
+
|
7
|
+
### v0.43.0 (2022-08-31)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220826
|
10
|
+
|
11
|
+
### v0.42.0 (2022-07-29)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220722
|
14
|
+
|
3
15
|
### v0.41.0 (2022-07-22)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220716
|
@@ -374,6 +374,49 @@ module Google
|
|
374
374
|
end
|
375
375
|
end
|
376
376
|
|
377
|
+
# Widgets for Chat apps to specify.
|
378
|
+
class CardWithId
|
379
|
+
include Google::Apis::Core::Hashable
|
380
|
+
|
381
|
+
# A card is a UI element that can contain UI widgets such as text and images.
|
382
|
+
# For more information, see Cards . For example, the following JSON creates a
|
383
|
+
# card that has a header with the name, position, icons, and link for a contact,
|
384
|
+
# followed by a section with contact information like email and phone number. ```
|
385
|
+
# ` "header": ` "title": "Sasha", "subtitle": "Software Engineer", "imageStyle":
|
386
|
+
# "ImageStyle.AVATAR", "imageUrl": "https://example.com/sasha.png", "
|
387
|
+
# imageAltText": "Avatar for Sasha" `, "sections" : [ ` "header": "Contact Info",
|
388
|
+
# "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "EMAIL" `, "content"
|
389
|
+
# : "sasha@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON"
|
390
|
+
# `, "content": "Online" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "
|
391
|
+
# PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "buttons": [ ` "textButton": `
|
392
|
+
# "text": "Share", `, "onClick": ` "openLink": ` "url": "https://example.com/
|
393
|
+
# share" ` ` `, ` "textButton": ` "text": "Edit", `, "onClick": ` "action": ` "
|
394
|
+
# function": "goToView", "parameters": [ ` "key": "viewType", "value": "EDIT" ` ]
|
395
|
+
# , "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "
|
396
|
+
# uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send
|
397
|
+
# Feedback", "onClick": ` "openLink": ` "url": "https://example.com/feedback" ` `
|
398
|
+
# ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
|
399
|
+
# Corresponds to the JSON property `card`
|
400
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
401
|
+
attr_accessor :card
|
402
|
+
|
403
|
+
# Required for `cardsV2` messages. Chat app-specified identifier for this widget.
|
404
|
+
# Scoped within a message.
|
405
|
+
# Corresponds to the JSON property `cardId`
|
406
|
+
# @return [String]
|
407
|
+
attr_accessor :card_id
|
408
|
+
|
409
|
+
def initialize(**args)
|
410
|
+
update!(**args)
|
411
|
+
end
|
412
|
+
|
413
|
+
# Update properties of this object
|
414
|
+
def update!(**args)
|
415
|
+
@card = args[:card] if args.key?(:card)
|
416
|
+
@card_id = args[:card_id] if args.key?(:card_id)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
377
420
|
# JSON payload of error messages. If the Cloud Logging API is enabled, these
|
378
421
|
# error messages are logged to [Google Cloud Logging](https://cloud.google.com/
|
379
422
|
# logging/docs).
|
@@ -879,15 +922,16 @@ module Google
|
|
879
922
|
|
880
923
|
# Indicates whether form values persist after the action. The default value is `
|
881
924
|
# false`. If `true`, form values remain after the action is triggered. When
|
882
|
-
# using [LoadIndicator.NONE](workspace/add-ons/
|
883
|
-
# loadindicator) for actions, `persist_values`
|
884
|
-
# ensures that any changes made by the user after
|
885
|
-
# sent to the server are not overwritten by the
|
886
|
-
# values are cleared when the action is triggered.
|
887
|
-
# to `false`, it is strongly recommended that the
|
888
|
-
# SPINNER](workspace/add-
|
889
|
-
# for all actions, as this
|
890
|
-
#
|
925
|
+
# using [LoadIndicator.NONE](https://developers.google.com/workspace/add-ons/
|
926
|
+
# reference/rpc/google.apps.card.v1#loadindicator) for actions, `persist_values`
|
927
|
+
# = `true`is recommended, as it ensures that any changes made by the user after
|
928
|
+
# form or on change actions are sent to the server are not overwritten by the
|
929
|
+
# response. If `false`, the form values are cleared when the action is triggered.
|
930
|
+
# When `persist_values` is set to `false`, it is strongly recommended that the
|
931
|
+
# card use [LoadIndicator.SPINNER](https://developers.google.com/workspace/add-
|
932
|
+
# ons/reference/rpc/google.apps.card.v1#loadindicator) for all actions, as this
|
933
|
+
# locks the UI to ensure no changes are made by the user while the action is
|
934
|
+
# being processed. Not supported by Google Chat apps.
|
891
935
|
# Corresponds to the JSON property `persistValues`
|
892
936
|
# @return [Boolean]
|
893
937
|
attr_accessor :persist_values
|
@@ -2035,8 +2079,9 @@ module Google
|
|
2035
2079
|
end
|
2036
2080
|
end
|
2037
2081
|
|
2038
|
-
# A paragraph of text that supports formatting. See [Text formatting](
|
2039
|
-
# add-ons/concepts/widgets#text_formatting) for
|
2082
|
+
# A paragraph of text that supports formatting. See [Text formatting](https://
|
2083
|
+
# developers.google.com/workspace/add-ons/concepts/widgets#text_formatting) for
|
2084
|
+
# details.
|
2040
2085
|
class GoogleAppsCardV1TextParagraph
|
2041
2086
|
include Google::Apis::Core::Hashable
|
2042
2087
|
|
@@ -2109,8 +2154,9 @@ module Google
|
|
2109
2154
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]
|
2110
2155
|
attr_accessor :text_input
|
2111
2156
|
|
2112
|
-
# A paragraph of text that supports formatting. See [Text formatting](
|
2113
|
-
# add-ons/concepts/widgets#text_formatting) for
|
2157
|
+
# A paragraph of text that supports formatting. See [Text formatting](https://
|
2158
|
+
# developers.google.com/workspace/add-ons/concepts/widgets#text_formatting) for
|
2159
|
+
# details.
|
2114
2160
|
# Corresponds to the JSON property `textParagraph`
|
2115
2161
|
# @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]
|
2116
2162
|
attr_accessor :text_paragraph
|
@@ -2479,6 +2525,18 @@ module Google
|
|
2479
2525
|
# @return [Array<Google::Apis::ChatV1::Card>]
|
2480
2526
|
attr_accessor :cards
|
2481
2527
|
|
2528
|
+
# Richly formatted and interactive cards that display UI elements and editable
|
2529
|
+
# widgets, such as: - Formatted text - Buttons - Clickable images - Checkboxes -
|
2530
|
+
# Radio buttons - Input widgets. Cards are usually displayed below the text-body
|
2531
|
+
# of a Chat message, but can situationally appear other places, such as [dialogs]
|
2532
|
+
# (https://developers.google.com/chat/how-tos/dialogs). The `cardId` is a unique
|
2533
|
+
# identifier among cards in the same message and for identifying user input
|
2534
|
+
# values. Currently supported widgets include: - `TextParagraph` - `
|
2535
|
+
# DecoratedText` - `Image` - `ButtonList`
|
2536
|
+
# Corresponds to the JSON property `cardsV2`
|
2537
|
+
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
2538
|
+
attr_accessor :cards_v2
|
2539
|
+
|
2482
2540
|
# Output only. The time at which the message was created in Google Chat server.
|
2483
2541
|
# Corresponds to the JSON property `createTime`
|
2484
2542
|
# @return [String]
|
@@ -2548,6 +2606,7 @@ module Google
|
|
2548
2606
|
@argument_text = args[:argument_text] if args.key?(:argument_text)
|
2549
2607
|
@attachment = args[:attachment] if args.key?(:attachment)
|
2550
2608
|
@cards = args[:cards] if args.key?(:cards)
|
2609
|
+
@cards_v2 = args[:cards_v2] if args.key?(:cards_v2)
|
2551
2610
|
@create_time = args[:create_time] if args.key?(:create_time)
|
2552
2611
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
2553
2612
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
@@ -2713,19 +2772,24 @@ module Google
|
|
2713
2772
|
# @return [String]
|
2714
2773
|
attr_accessor :name
|
2715
2774
|
|
2716
|
-
#
|
2775
|
+
# Optional. Whether the space is a DM between a Chat app and a single human.
|
2717
2776
|
# Corresponds to the JSON property `singleUserBotDm`
|
2718
2777
|
# @return [Boolean]
|
2719
2778
|
attr_accessor :single_user_bot_dm
|
2720
2779
|
alias_method :single_user_bot_dm?, :single_user_bot_dm
|
2721
2780
|
|
2781
|
+
# Details about the space including description and rules.
|
2782
|
+
# Corresponds to the JSON property `spaceDetails`
|
2783
|
+
# @return [Google::Apis::ChatV1::SpaceDetails]
|
2784
|
+
attr_accessor :space_details
|
2785
|
+
|
2722
2786
|
# Output only. Whether messages are threaded in this space.
|
2723
2787
|
# Corresponds to the JSON property `threaded`
|
2724
2788
|
# @return [Boolean]
|
2725
2789
|
attr_accessor :threaded
|
2726
2790
|
alias_method :threaded?, :threaded
|
2727
2791
|
|
2728
|
-
# Output only. Deprecated: Use `
|
2792
|
+
# Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer
|
2729
2793
|
# preview) instead. The type of a space.
|
2730
2794
|
# Corresponds to the JSON property `type`
|
2731
2795
|
# @return [String]
|
@@ -2740,11 +2804,38 @@ module Google
|
|
2740
2804
|
@display_name = args[:display_name] if args.key?(:display_name)
|
2741
2805
|
@name = args[:name] if args.key?(:name)
|
2742
2806
|
@single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm)
|
2807
|
+
@space_details = args[:space_details] if args.key?(:space_details)
|
2743
2808
|
@threaded = args[:threaded] if args.key?(:threaded)
|
2744
2809
|
@type = args[:type] if args.key?(:type)
|
2745
2810
|
end
|
2746
2811
|
end
|
2747
2812
|
|
2813
|
+
# Details about the space including description and rules.
|
2814
|
+
class SpaceDetails
|
2815
|
+
include Google::Apis::Core::Hashable
|
2816
|
+
|
2817
|
+
# Optional. A description of the space. It could describe the space's discussion
|
2818
|
+
# topic, functional purpose, or participants.
|
2819
|
+
# Corresponds to the JSON property `description`
|
2820
|
+
# @return [String]
|
2821
|
+
attr_accessor :description
|
2822
|
+
|
2823
|
+
# Optional. The space's rules, expectations, and etiquette.
|
2824
|
+
# Corresponds to the JSON property `guidelines`
|
2825
|
+
# @return [String]
|
2826
|
+
attr_accessor :guidelines
|
2827
|
+
|
2828
|
+
def initialize(**args)
|
2829
|
+
update!(**args)
|
2830
|
+
end
|
2831
|
+
|
2832
|
+
# Update properties of this object
|
2833
|
+
def update!(**args)
|
2834
|
+
@description = args[:description] if args.key?(:description)
|
2835
|
+
@guidelines = args[:guidelines] if args.key?(:guidelines)
|
2836
|
+
end
|
2837
|
+
end
|
2838
|
+
|
2748
2839
|
# The `Status` type defines a logical error model that is suitable for different
|
2749
2840
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
2750
2841
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -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.44.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220904"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,12 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class CardWithId
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
85
91
|
class ChatAppLogEntry
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
@@ -418,6 +424,12 @@ module Google
|
|
418
424
|
include Google::Apis::Core::JsonObjectSupport
|
419
425
|
end
|
420
426
|
|
427
|
+
class SpaceDetails
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
421
433
|
class Status
|
422
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
435
|
|
@@ -582,6 +594,15 @@ module Google
|
|
582
594
|
end
|
583
595
|
end
|
584
596
|
|
597
|
+
class CardWithId
|
598
|
+
# @private
|
599
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
600
|
+
property :card, as: 'card', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
601
|
+
|
602
|
+
property :card_id, as: 'cardId'
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
585
606
|
class ChatAppLogEntry
|
586
607
|
# @private
|
587
608
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1143,6 +1164,8 @@ module Google
|
|
1143
1164
|
|
1144
1165
|
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
|
1145
1166
|
|
1167
|
+
collection :cards_v2, as: 'cardsV2', class: Google::Apis::ChatV1::CardWithId, decorator: Google::Apis::ChatV1::CardWithId::Representation
|
1168
|
+
|
1146
1169
|
property :create_time, as: 'createTime'
|
1147
1170
|
property :fallback_text, as: 'fallbackText'
|
1148
1171
|
property :last_update_time, as: 'lastUpdateTime'
|
@@ -1212,11 +1235,21 @@ module Google
|
|
1212
1235
|
property :display_name, as: 'displayName'
|
1213
1236
|
property :name, as: 'name'
|
1214
1237
|
property :single_user_bot_dm, as: 'singleUserBotDm'
|
1238
|
+
property :space_details, as: 'spaceDetails', class: Google::Apis::ChatV1::SpaceDetails, decorator: Google::Apis::ChatV1::SpaceDetails::Representation
|
1239
|
+
|
1215
1240
|
property :threaded, as: 'threaded'
|
1216
1241
|
property :type, as: 'type'
|
1217
1242
|
end
|
1218
1243
|
end
|
1219
1244
|
|
1245
|
+
class SpaceDetails
|
1246
|
+
# @private
|
1247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1248
|
+
property :description, as: 'description'
|
1249
|
+
property :guidelines, as: 'guidelines'
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1220
1253
|
class Status
|
1221
1254
|
# @private
|
1222
1255
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -660,7 +660,7 @@ module Google
|
|
660
660
|
# @param [String] update_mask
|
661
661
|
# Required. The field paths to update. Separate multiple values with commas.
|
662
662
|
# Currently supported field paths: - text - cards (Requires [service account
|
663
|
-
# authentication](/chat/api/guides/auth/service-accounts).) -
|
663
|
+
# authentication](/chat/api/guides/auth/service-accounts).) - cards_v2
|
664
664
|
# @param [String] fields
|
665
665
|
# Selector specifying which fields to include in a partial response.
|
666
666
|
# @param [String] quota_user
|
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.44.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: 2022-
|
11
|
+
date: 2022-09-12 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.44.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: []
|