google-apis-chat_v1 0.41.0 → 0.42.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfb3cd8faa502e6ac70771f42102054ad99af8e767b5f19ec652fb53e16f9332
|
4
|
+
data.tar.gz: e5ff75c4c3fba099711d8779e120024c3ce10532b8e470c7d3238742a188ed66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5576a38709b21fe184af233720690c0e438222d2479c47604343a33d4d3be3162991b692a01eea1b76e18e27db3c1a3c4e304227af26263eff55ea31698a8fae
|
7
|
+
data.tar.gz: 4c6869d4c375cf86a961e1c54a27c8376d7796d9c7190b7707beb022ec1ff9f5360728b24527cab8b2fbca12a2ceafd3fd3db7e890018bd7c3bf41dcf78c29ee
|
data/CHANGELOG.md
CHANGED
@@ -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).
|
@@ -2479,6 +2522,18 @@ module Google
|
|
2479
2522
|
# @return [Array<Google::Apis::ChatV1::Card>]
|
2480
2523
|
attr_accessor :cards
|
2481
2524
|
|
2525
|
+
# Richly formatted and interactive cards that display UI elements and editable
|
2526
|
+
# widgets, such as: - Formatted text - Buttons - Clickable images - Checkboxes -
|
2527
|
+
# Radio buttons - Input widgets. Cards are usually displayed below the text-body
|
2528
|
+
# of a Chat message, but can situationally appear other places, such as [dialogs]
|
2529
|
+
# (https://developers.google.com/chat/how-tos/dialogs). The `cardId` is a unique
|
2530
|
+
# identifier among cards in the same message and for identifying user input
|
2531
|
+
# values. Currently supported widgets include: - `TextParagraph` - `
|
2532
|
+
# DecoratedText` - `Image` - `ButtonList`
|
2533
|
+
# Corresponds to the JSON property `cardsV2`
|
2534
|
+
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
2535
|
+
attr_accessor :cards_v2
|
2536
|
+
|
2482
2537
|
# Output only. The time at which the message was created in Google Chat server.
|
2483
2538
|
# Corresponds to the JSON property `createTime`
|
2484
2539
|
# @return [String]
|
@@ -2548,6 +2603,7 @@ module Google
|
|
2548
2603
|
@argument_text = args[:argument_text] if args.key?(:argument_text)
|
2549
2604
|
@attachment = args[:attachment] if args.key?(:attachment)
|
2550
2605
|
@cards = args[:cards] if args.key?(:cards)
|
2606
|
+
@cards_v2 = args[:cards_v2] if args.key?(:cards_v2)
|
2551
2607
|
@create_time = args[:create_time] if args.key?(:create_time)
|
2552
2608
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
2553
2609
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
@@ -2719,13 +2775,18 @@ module Google
|
|
2719
2775
|
attr_accessor :single_user_bot_dm
|
2720
2776
|
alias_method :single_user_bot_dm?, :single_user_bot_dm
|
2721
2777
|
|
2778
|
+
# Details about the space including description and rules.
|
2779
|
+
# Corresponds to the JSON property `spaceDetails`
|
2780
|
+
# @return [Google::Apis::ChatV1::SpaceDetails]
|
2781
|
+
attr_accessor :space_details
|
2782
|
+
|
2722
2783
|
# Output only. Whether messages are threaded in this space.
|
2723
2784
|
# Corresponds to the JSON property `threaded`
|
2724
2785
|
# @return [Boolean]
|
2725
2786
|
attr_accessor :threaded
|
2726
2787
|
alias_method :threaded?, :threaded
|
2727
2788
|
|
2728
|
-
# Output only. Deprecated: Use `
|
2789
|
+
# Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer
|
2729
2790
|
# preview) instead. The type of a space.
|
2730
2791
|
# Corresponds to the JSON property `type`
|
2731
2792
|
# @return [String]
|
@@ -2740,11 +2801,38 @@ module Google
|
|
2740
2801
|
@display_name = args[:display_name] if args.key?(:display_name)
|
2741
2802
|
@name = args[:name] if args.key?(:name)
|
2742
2803
|
@single_user_bot_dm = args[:single_user_bot_dm] if args.key?(:single_user_bot_dm)
|
2804
|
+
@space_details = args[:space_details] if args.key?(:space_details)
|
2743
2805
|
@threaded = args[:threaded] if args.key?(:threaded)
|
2744
2806
|
@type = args[:type] if args.key?(:type)
|
2745
2807
|
end
|
2746
2808
|
end
|
2747
2809
|
|
2810
|
+
# Details about the space including description and rules.
|
2811
|
+
class SpaceDetails
|
2812
|
+
include Google::Apis::Core::Hashable
|
2813
|
+
|
2814
|
+
# Optional. A description of the space. It could describe the space's discussion
|
2815
|
+
# topic, functional purpose, or participants.
|
2816
|
+
# Corresponds to the JSON property `description`
|
2817
|
+
# @return [String]
|
2818
|
+
attr_accessor :description
|
2819
|
+
|
2820
|
+
# Optional. The space's rules, expectations, and etiquette.
|
2821
|
+
# Corresponds to the JSON property `guidelines`
|
2822
|
+
# @return [String]
|
2823
|
+
attr_accessor :guidelines
|
2824
|
+
|
2825
|
+
def initialize(**args)
|
2826
|
+
update!(**args)
|
2827
|
+
end
|
2828
|
+
|
2829
|
+
# Update properties of this object
|
2830
|
+
def update!(**args)
|
2831
|
+
@description = args[:description] if args.key?(:description)
|
2832
|
+
@guidelines = args[:guidelines] if args.key?(:guidelines)
|
2833
|
+
end
|
2834
|
+
end
|
2835
|
+
|
2748
2836
|
# The `Status` type defines a logical error model that is suitable for different
|
2749
2837
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
2750
2838
|
# 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.42.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 = "20220722"
|
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).)
|
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.42.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-08-01 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.42.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: []
|