google-apis-chat_v1 0.9.0 → 0.13.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 +16 -0
- data/lib/google/apis/chat_v1/classes.rb +103 -52
- data/lib/google/apis/chat_v1/gem_version.rb +3 -3
- data/lib/google/apis/chat_v1/representations.rb +43 -14
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8e4a365005dfeb14cfd92f0c35f859ca26579bac07688a8d122167a896065f
|
4
|
+
data.tar.gz: 8f88109afdf090f6a16e790635855b913b1d5571e648842c38902dee275e6ede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fe415f83ece918369a44c87b95445906f6dfc2e92128b59d5205af8369733161fde079a2ed43a1d963e89fc8cb31f20baf4fdf6751976377ab5e818ec7cce9
|
7
|
+
data.tar.gz: ad474523cd0b0449b5fc691424bb46fd5a74a8d272181038536199f4b67933e7c24b50782b03b7c4e0949e25a775eb350e61e316da3ea015d5837e36a00f73a7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-chat_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2021-07-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210714
|
6
|
+
|
7
|
+
### v0.12.0 (2021-07-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210707
|
10
|
+
|
11
|
+
### v0.11.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated using generator version 0.4.0
|
14
|
+
|
15
|
+
### v0.10.0 (2021-06-24)
|
16
|
+
|
17
|
+
* Unspecified changes
|
18
|
+
|
3
19
|
### v0.9.0 (2021-06-11)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210605
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
class ActionResponse
|
55
55
|
include Google::Apis::Core::Hashable
|
56
56
|
|
57
|
+
# Contains dialog if present as well as the ActionStatus for the request sent
|
58
|
+
# from user.
|
59
|
+
# Corresponds to the JSON property `dialogAction`
|
60
|
+
# @return [Google::Apis::ChatV1::DialogAction]
|
61
|
+
attr_accessor :dialog_action
|
62
|
+
|
57
63
|
# The type of bot response.
|
58
64
|
# Corresponds to the JSON property `type`
|
59
65
|
# @return [String]
|
@@ -70,11 +76,43 @@ module Google
|
|
70
76
|
|
71
77
|
# Update properties of this object
|
72
78
|
def update!(**args)
|
79
|
+
@dialog_action = args[:dialog_action] if args.key?(:dialog_action)
|
73
80
|
@type = args[:type] if args.key?(:type)
|
74
81
|
@url = args[:url] if args.key?(:url)
|
75
82
|
end
|
76
83
|
end
|
77
84
|
|
85
|
+
# ActionStatus represents status of a request from the bot developer's side. In
|
86
|
+
# specific, for each request a bot gets, the bot developer will set both fields
|
87
|
+
# below in relation to what the response status and message related to status
|
88
|
+
# should be.
|
89
|
+
class ActionStatus
|
90
|
+
include Google::Apis::Core::Hashable
|
91
|
+
|
92
|
+
# The status code.
|
93
|
+
# Corresponds to the JSON property `statusCode`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :status_code
|
96
|
+
|
97
|
+
# This message will be the corresponding string to the above status_code. If
|
98
|
+
# unset, an appropriate generic message based on the status_code will be shown
|
99
|
+
# to the user. If this field is set then the message will be surfaced to the
|
100
|
+
# user for both successes and errors.
|
101
|
+
# Corresponds to the JSON property `userFacingMessage`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :user_facing_message
|
104
|
+
|
105
|
+
def initialize(**args)
|
106
|
+
update!(**args)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Update properties of this object
|
110
|
+
def update!(**args)
|
111
|
+
@status_code = args[:status_code] if args.key?(:status_code)
|
112
|
+
@user_facing_message = args[:user_facing_message] if args.key?(:user_facing_message)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
78
116
|
# Annotations associated with the plain-text body of the message. Example plain-
|
79
117
|
# text message body: ``` Hello @FooBot how are you!" ``` The corresponding
|
80
118
|
# annotations metadata: ``` "annotations":[` "type":"USER_MENTION", "startIndex":
|
@@ -338,48 +376,6 @@ module Google
|
|
338
376
|
end
|
339
377
|
end
|
340
378
|
|
341
|
-
# Widgets for chatbots to specify.
|
342
|
-
class CardWithId
|
343
|
-
include Google::Apis::Core::Hashable
|
344
|
-
|
345
|
-
# A card is a UI element that can contain UI widgets such as text and images.
|
346
|
-
# For more information, see Cards . For example, the following JSON creates a
|
347
|
-
# card that has a header with the name, position, icons, and link for a contact,
|
348
|
-
# followed by a section with contact information like email and phone number. ```
|
349
|
-
# ` "header": ` "title": "Heba Salam", "subtitle": "Software Engineer", "
|
350
|
-
# imageStyle": "ImageStyle.AVATAR", "imageUrl": "https://example.com/heba_salam.
|
351
|
-
# png", "imageAltText": "Avatar for Heba Salam" `, "sections" : [ ` "header": "
|
352
|
-
# Contact Info", "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "
|
353
|
-
# EMAIL" `, "content": "heba.salam@example.com" ` `, ` "decoratedText": ` "icon":
|
354
|
-
# ` "knownIcon": "PERSON" `, "content": "Online" ` `, ` "decoratedText": ` "
|
355
|
-
# icon": ` "knownIcon": "PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "
|
356
|
-
# buttons": [ ` "textButton": ` "text": "Share", `, "onClick": ` "openLink": ` "
|
357
|
-
# url": "https://example.com/share" ` ` `, ` "textButton": ` "text": "Edit", `, "
|
358
|
-
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
359
|
-
# viewType", "value": "EDIT" ` ], "loadIndicator": "LoadIndicator.SPINNER" ` ` `
|
360
|
-
# ] ` ], "collapsible": true, "uncollapsibleWidgetsCount": 3 ` ], "cardActions":
|
361
|
-
# [ ` "actionLabel": "Send Feedback", "onClick": ` "openLink": ` "url": "https://
|
362
|
-
# example.com/feedback" ` ` ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
|
363
|
-
# Corresponds to the JSON property `card`
|
364
|
-
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
365
|
-
attr_accessor :card
|
366
|
-
|
367
|
-
# Chatbot-specified identifier for this widget. Scoped within a message.
|
368
|
-
# Corresponds to the JSON property `cardId`
|
369
|
-
# @return [String]
|
370
|
-
attr_accessor :card_id
|
371
|
-
|
372
|
-
def initialize(**args)
|
373
|
-
update!(**args)
|
374
|
-
end
|
375
|
-
|
376
|
-
# Update properties of this object
|
377
|
-
def update!(**args)
|
378
|
-
@card = args[:card] if args.key?(:card)
|
379
|
-
@card_id = args[:card_id] if args.key?(:card_id)
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
379
|
# Represents a color in the RGBA color space. This representation is designed
|
384
380
|
# for simplicity of conversion to/from color representations in various
|
385
381
|
# languages over compactness. For example, the fields of this representation can
|
@@ -543,6 +539,71 @@ module Google
|
|
543
539
|
end
|
544
540
|
end
|
545
541
|
|
542
|
+
# Wrapper around the card body of the dialog.
|
543
|
+
class Dialog
|
544
|
+
include Google::Apis::Core::Hashable
|
545
|
+
|
546
|
+
# A card is a UI element that can contain UI widgets such as text and images.
|
547
|
+
# For more information, see Cards . For example, the following JSON creates a
|
548
|
+
# card that has a header with the name, position, icons, and link for a contact,
|
549
|
+
# followed by a section with contact information like email and phone number. ```
|
550
|
+
# ` "header": ` "title": "Heba Salam", "subtitle": "Software Engineer", "
|
551
|
+
# imageStyle": "ImageStyle.AVATAR", "imageUrl": "https://example.com/heba_salam.
|
552
|
+
# png", "imageAltText": "Avatar for Heba Salam" `, "sections" : [ ` "header": "
|
553
|
+
# Contact Info", "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": "
|
554
|
+
# EMAIL" `, "content": "heba.salam@example.com" ` `, ` "decoratedText": ` "icon":
|
555
|
+
# ` "knownIcon": "PERSON" `, "content": "Online" ` `, ` "decoratedText": ` "
|
556
|
+
# icon": ` "knownIcon": "PHONE" `, "content": "+1 (555) 555-1234" ` `, ` "
|
557
|
+
# buttons": [ ` "textButton": ` "text": "Share", `, "onClick": ` "openLink": ` "
|
558
|
+
# url": "https://example.com/share" ` ` `, ` "textButton": ` "text": "Edit", `, "
|
559
|
+
# onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": "
|
560
|
+
# viewType", "value": "EDIT" ` ], "loadIndicator": "LoadIndicator.SPINNER" ` ` `
|
561
|
+
# ] ` ], "collapsible": true, "uncollapsibleWidgetsCount": 3 ` ], "cardActions":
|
562
|
+
# [ ` "actionLabel": "Send Feedback", "onClick": ` "openLink": ` "url": "https://
|
563
|
+
# example.com/feedback" ` ` ` ], "name": "contact-card-K3wB6arF2H9L" ` ```
|
564
|
+
# Corresponds to the JSON property `body`
|
565
|
+
# @return [Google::Apis::ChatV1::GoogleAppsCardV1Card]
|
566
|
+
attr_accessor :body
|
567
|
+
|
568
|
+
def initialize(**args)
|
569
|
+
update!(**args)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Update properties of this object
|
573
|
+
def update!(**args)
|
574
|
+
@body = args[:body] if args.key?(:body)
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
# Contains dialog if present as well as the ActionStatus for the request sent
|
579
|
+
# from user.
|
580
|
+
class DialogAction
|
581
|
+
include Google::Apis::Core::Hashable
|
582
|
+
|
583
|
+
# ActionStatus represents status of a request from the bot developer's side. In
|
584
|
+
# specific, for each request a bot gets, the bot developer will set both fields
|
585
|
+
# below in relation to what the response status and message related to status
|
586
|
+
# should be.
|
587
|
+
# Corresponds to the JSON property `actionStatus`
|
588
|
+
# @return [Google::Apis::ChatV1::ActionStatus]
|
589
|
+
attr_accessor :action_status
|
590
|
+
|
591
|
+
# Wrapper around the card body of the dialog.
|
592
|
+
# Corresponds to the JSON property `dialog`
|
593
|
+
# @return [Google::Apis::ChatV1::Dialog]
|
594
|
+
attr_accessor :dialog
|
595
|
+
|
596
|
+
def initialize(**args)
|
597
|
+
update!(**args)
|
598
|
+
end
|
599
|
+
|
600
|
+
# Update properties of this object
|
601
|
+
def update!(**args)
|
602
|
+
@action_status = args[:action_status] if args.key?(:action_status)
|
603
|
+
@dialog = args[:dialog] if args.key?(:dialog)
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
546
607
|
# A reference to the data of a drive attachment.
|
547
608
|
class DriveDataRef
|
548
609
|
include Google::Apis::Core::Hashable
|
@@ -2165,15 +2226,6 @@ module Google
|
|
2165
2226
|
# @return [Array<Google::Apis::ChatV1::Card>]
|
2166
2227
|
attr_accessor :cards
|
2167
2228
|
|
2168
|
-
# Rich, formatted and interactive cards that can be used to display UI elements
|
2169
|
-
# and editable widgets, such as: formatted text, buttons, clickable images,
|
2170
|
-
# checkboxes, radio buttons. Cards are normally displayed below the plain-text
|
2171
|
-
# body of the message. This v2 allows input widgets. The string key is a unique
|
2172
|
-
# identifier among cards in the same message for identifying inputs.
|
2173
|
-
# Corresponds to the JSON property `cardsV2`
|
2174
|
-
# @return [Array<Google::Apis::ChatV1::CardWithId>]
|
2175
|
-
attr_accessor :cards_v2
|
2176
|
-
|
2177
2229
|
# Output only. The time at which the message was created in Hangouts Chat server.
|
2178
2230
|
# Corresponds to the JSON property `createTime`
|
2179
2231
|
# @return [String]
|
@@ -2233,7 +2285,6 @@ module Google
|
|
2233
2285
|
@argument_text = args[:argument_text] if args.key?(:argument_text)
|
2234
2286
|
@attachment = args[:attachment] if args.key?(:attachment)
|
2235
2287
|
@cards = args[:cards] if args.key?(:cards)
|
2236
|
-
@cards_v2 = args[:cards_v2] if args.key?(:cards_v2)
|
2237
2288
|
@create_time = args[:create_time] if args.key?(:create_time)
|
2238
2289
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
2239
2290
|
@name = args[:name] if args.key?(:name)
|
@@ -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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210714"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class ActionStatus
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Annotation
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -76,19 +82,25 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
79
|
-
class
|
85
|
+
class Color
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
83
89
|
end
|
84
90
|
|
85
|
-
class
|
91
|
+
class DeprecatedEvent
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
89
95
|
end
|
90
96
|
|
91
|
-
class
|
97
|
+
class Dialog
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class DialogAction
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -417,11 +429,21 @@ module Google
|
|
417
429
|
class ActionResponse
|
418
430
|
# @private
|
419
431
|
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
property :dialog_action, as: 'dialogAction', class: Google::Apis::ChatV1::DialogAction, decorator: Google::Apis::ChatV1::DialogAction::Representation
|
433
|
+
|
420
434
|
property :type, as: 'type'
|
421
435
|
property :url, as: 'url'
|
422
436
|
end
|
423
437
|
end
|
424
438
|
|
439
|
+
class ActionStatus
|
440
|
+
# @private
|
441
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
442
|
+
property :status_code, as: 'statusCode'
|
443
|
+
property :user_facing_message, as: 'userFacingMessage'
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
425
447
|
class Annotation
|
426
448
|
# @private
|
427
449
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -500,15 +522,6 @@ module Google
|
|
500
522
|
end
|
501
523
|
end
|
502
524
|
|
503
|
-
class CardWithId
|
504
|
-
# @private
|
505
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
506
|
-
property :card, as: 'card', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
507
|
-
|
508
|
-
property :card_id, as: 'cardId'
|
509
|
-
end
|
510
|
-
end
|
511
|
-
|
512
525
|
class Color
|
513
526
|
# @private
|
514
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -538,6 +551,24 @@ module Google
|
|
538
551
|
end
|
539
552
|
end
|
540
553
|
|
554
|
+
class Dialog
|
555
|
+
# @private
|
556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
557
|
+
property :body, as: 'body', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
558
|
+
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
562
|
+
class DialogAction
|
563
|
+
# @private
|
564
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
565
|
+
property :action_status, as: 'actionStatus', class: Google::Apis::ChatV1::ActionStatus, decorator: Google::Apis::ChatV1::ActionStatus::Representation
|
566
|
+
|
567
|
+
property :dialog, as: 'dialog', class: Google::Apis::ChatV1::Dialog, decorator: Google::Apis::ChatV1::Dialog::Representation
|
568
|
+
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
541
572
|
class DriveDataRef
|
542
573
|
# @private
|
543
574
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -985,8 +1016,6 @@ module Google
|
|
985
1016
|
|
986
1017
|
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
|
987
1018
|
|
988
|
-
collection :cards_v2, as: 'cardsV2', class: Google::Apis::ChatV1::CardWithId, decorator: Google::Apis::ChatV1::CardWithId::Representation
|
989
|
-
|
990
1019
|
property :create_time, as: 'createTime'
|
991
1020
|
property :fallback_text, as: 'fallbackText'
|
992
1021
|
property :name, as: 'name'
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.13.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: 2021-
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Google Chat API V1. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chat_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.13.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chat_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|