google-apis-chat_v1 0.12.0 → 0.16.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/chat_v1/classes.rb +1889 -162
- data/lib/google/apis/chat_v1/gem_version.rb +2 -2
- data/lib/google/apis/chat_v1/representations.rb +691 -0
- data/lib/google/apis/chat_v1/service.rb +101 -58
- metadata +5 -5
@@ -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,12 +82,48 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
85
|
+
class Color
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class CommonEventObject
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class DateInput
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class DateTimeInput
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
79
109
|
class DeprecatedEvent
|
80
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
111
|
|
82
112
|
include Google::Apis::Core::JsonObjectSupport
|
83
113
|
end
|
84
114
|
|
115
|
+
class Dialog
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class DialogAction
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
85
127
|
class DriveDataRef
|
86
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
129
|
|
@@ -100,6 +142,180 @@ module Google
|
|
100
142
|
include Google::Apis::Core::JsonObjectSupport
|
101
143
|
end
|
102
144
|
|
145
|
+
class GoogleAppsCardV1Action
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class GoogleAppsCardV1ActionParameter
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class GoogleAppsCardV1BorderStyle
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class GoogleAppsCardV1Button
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class GoogleAppsCardV1ButtonList
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class GoogleAppsCardV1Card
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class GoogleAppsCardV1CardAction
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class GoogleAppsCardV1CardFixedFooter
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class GoogleAppsCardV1CardHeader
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class GoogleAppsCardV1DateTimePicker
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class GoogleAppsCardV1DecoratedText
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class GoogleAppsCardV1Divider
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class GoogleAppsCardV1Grid
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class GoogleAppsCardV1GridItem
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class GoogleAppsCardV1Icon
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class GoogleAppsCardV1Image
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class GoogleAppsCardV1ImageComponent
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
247
|
+
class GoogleAppsCardV1ImageCropStyle
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class GoogleAppsCardV1OnClick
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class GoogleAppsCardV1OpenLink
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class GoogleAppsCardV1Section
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class GoogleAppsCardV1SelectionInput
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class GoogleAppsCardV1SelectionItem
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
283
|
+
class GoogleAppsCardV1SuggestionItem
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class GoogleAppsCardV1Suggestions
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class GoogleAppsCardV1SwitchControl
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class GoogleAppsCardV1TextInput
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
307
|
+
class GoogleAppsCardV1TextParagraph
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
313
|
+
class GoogleAppsCardV1Widget
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
103
319
|
class Image
|
104
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
321
|
|
@@ -112,6 +328,12 @@ module Google
|
|
112
328
|
include Google::Apis::Core::JsonObjectSupport
|
113
329
|
end
|
114
330
|
|
331
|
+
class Inputs
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
115
337
|
class KeyValue
|
116
338
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
339
|
|
@@ -184,6 +406,12 @@ module Google
|
|
184
406
|
include Google::Apis::Core::JsonObjectSupport
|
185
407
|
end
|
186
408
|
|
409
|
+
class StringInputs
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
187
415
|
class TextButton
|
188
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
417
|
|
@@ -202,6 +430,18 @@ module Google
|
|
202
430
|
include Google::Apis::Core::JsonObjectSupport
|
203
431
|
end
|
204
432
|
|
433
|
+
class TimeInput
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
439
|
+
class TimeZone
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
205
445
|
class User
|
206
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
447
|
|
@@ -231,11 +471,21 @@ module Google
|
|
231
471
|
class ActionResponse
|
232
472
|
# @private
|
233
473
|
class Representation < Google::Apis::Core::JsonRepresentation
|
474
|
+
property :dialog_action, as: 'dialogAction', class: Google::Apis::ChatV1::DialogAction, decorator: Google::Apis::ChatV1::DialogAction::Representation
|
475
|
+
|
234
476
|
property :type, as: 'type'
|
235
477
|
property :url, as: 'url'
|
236
478
|
end
|
237
479
|
end
|
238
480
|
|
481
|
+
class ActionStatus
|
482
|
+
# @private
|
483
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
484
|
+
property :status_code, as: 'statusCode'
|
485
|
+
property :user_facing_message, as: 'userFacingMessage'
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
239
489
|
class Annotation
|
240
490
|
# @private
|
241
491
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -314,13 +564,58 @@ module Google
|
|
314
564
|
end
|
315
565
|
end
|
316
566
|
|
567
|
+
class Color
|
568
|
+
# @private
|
569
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
570
|
+
property :alpha, as: 'alpha'
|
571
|
+
property :blue, as: 'blue'
|
572
|
+
property :green, as: 'green'
|
573
|
+
property :red, as: 'red'
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
class CommonEventObject
|
578
|
+
# @private
|
579
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
hash :form_inputs, as: 'formInputs', class: Google::Apis::ChatV1::Inputs, decorator: Google::Apis::ChatV1::Inputs::Representation
|
581
|
+
|
582
|
+
property :host_app, as: 'hostApp'
|
583
|
+
property :invoked_function, as: 'invokedFunction'
|
584
|
+
hash :parameters, as: 'parameters'
|
585
|
+
property :platform, as: 'platform'
|
586
|
+
property :time_zone, as: 'timeZone', class: Google::Apis::ChatV1::TimeZone, decorator: Google::Apis::ChatV1::TimeZone::Representation
|
587
|
+
|
588
|
+
property :user_locale, as: 'userLocale'
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
class DateInput
|
593
|
+
# @private
|
594
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
595
|
+
property :ms_since_epoch, :numeric_string => true, as: 'msSinceEpoch'
|
596
|
+
end
|
597
|
+
end
|
598
|
+
|
599
|
+
class DateTimeInput
|
600
|
+
# @private
|
601
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
602
|
+
property :has_date, as: 'hasDate'
|
603
|
+
property :has_time, as: 'hasTime'
|
604
|
+
property :ms_since_epoch, :numeric_string => true, as: 'msSinceEpoch'
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
317
608
|
class DeprecatedEvent
|
318
609
|
# @private
|
319
610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
320
611
|
property :action, as: 'action', class: Google::Apis::ChatV1::FormAction, decorator: Google::Apis::ChatV1::FormAction::Representation
|
321
612
|
|
613
|
+
property :common, as: 'common', class: Google::Apis::ChatV1::CommonEventObject, decorator: Google::Apis::ChatV1::CommonEventObject::Representation
|
614
|
+
|
322
615
|
property :config_complete_redirect_url, as: 'configCompleteRedirectUrl'
|
616
|
+
property :dialog_event_type, as: 'dialogEventType'
|
323
617
|
property :event_time, as: 'eventTime'
|
618
|
+
property :is_dialog_event, as: 'isDialogEvent'
|
324
619
|
property :message, as: 'message', class: Google::Apis::ChatV1::Message, decorator: Google::Apis::ChatV1::Message::Representation
|
325
620
|
|
326
621
|
property :space, as: 'space', class: Google::Apis::ChatV1::Space, decorator: Google::Apis::ChatV1::Space::Representation
|
@@ -333,6 +628,24 @@ module Google
|
|
333
628
|
end
|
334
629
|
end
|
335
630
|
|
631
|
+
class Dialog
|
632
|
+
# @private
|
633
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
634
|
+
property :body, as: 'body', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
635
|
+
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
class DialogAction
|
640
|
+
# @private
|
641
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
642
|
+
property :action_status, as: 'actionStatus', class: Google::Apis::ChatV1::ActionStatus, decorator: Google::Apis::ChatV1::ActionStatus::Representation
|
643
|
+
|
644
|
+
property :dialog, as: 'dialog', class: Google::Apis::ChatV1::Dialog, decorator: Google::Apis::ChatV1::Dialog::Representation
|
645
|
+
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
336
649
|
class DriveDataRef
|
337
650
|
# @private
|
338
651
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -355,6 +668,346 @@ module Google
|
|
355
668
|
end
|
356
669
|
end
|
357
670
|
|
671
|
+
class GoogleAppsCardV1Action
|
672
|
+
# @private
|
673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
674
|
+
property :function, as: 'function'
|
675
|
+
property :load_indicator, as: 'loadIndicator'
|
676
|
+
collection :parameters, as: 'parameters', class: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ActionParameter::Representation
|
677
|
+
|
678
|
+
property :persist_values, as: 'persistValues'
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
class GoogleAppsCardV1ActionParameter
|
683
|
+
# @private
|
684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
685
|
+
property :key, as: 'key'
|
686
|
+
property :value, as: 'value'
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
class GoogleAppsCardV1BorderStyle
|
691
|
+
# @private
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
693
|
+
property :corner_radius, as: 'cornerRadius'
|
694
|
+
property :stroke_color, as: 'strokeColor', class: Google::Apis::ChatV1::Color, decorator: Google::Apis::ChatV1::Color::Representation
|
695
|
+
|
696
|
+
property :type, as: 'type'
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
class GoogleAppsCardV1Button
|
701
|
+
# @private
|
702
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
703
|
+
property :alt_text, as: 'altText'
|
704
|
+
property :color, as: 'color', class: Google::Apis::ChatV1::Color, decorator: Google::Apis::ChatV1::Color::Representation
|
705
|
+
|
706
|
+
property :disabled, as: 'disabled'
|
707
|
+
property :icon, as: 'icon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
708
|
+
|
709
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
710
|
+
|
711
|
+
property :text, as: 'text'
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
class GoogleAppsCardV1ButtonList
|
716
|
+
# @private
|
717
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
718
|
+
collection :buttons, as: 'buttons', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
719
|
+
|
720
|
+
end
|
721
|
+
end
|
722
|
+
|
723
|
+
class GoogleAppsCardV1Card
|
724
|
+
# @private
|
725
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
726
|
+
collection :card_actions, as: 'cardActions', class: Google::Apis::ChatV1::GoogleAppsCardV1CardAction, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CardAction::Representation
|
727
|
+
|
728
|
+
property :display_style, as: 'displayStyle'
|
729
|
+
property :fixed_footer, as: 'fixedFooter', class: Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CardFixedFooter::Representation
|
730
|
+
|
731
|
+
property :header, as: 'header', class: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader::Representation
|
732
|
+
|
733
|
+
property :name, as: 'name'
|
734
|
+
property :peek_card_header, as: 'peekCardHeader', class: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader, decorator: Google::Apis::ChatV1::GoogleAppsCardV1CardHeader::Representation
|
735
|
+
|
736
|
+
collection :sections, as: 'sections', class: Google::Apis::ChatV1::GoogleAppsCardV1Section, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Section::Representation
|
737
|
+
|
738
|
+
end
|
739
|
+
end
|
740
|
+
|
741
|
+
class GoogleAppsCardV1CardAction
|
742
|
+
# @private
|
743
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
744
|
+
property :action_label, as: 'actionLabel'
|
745
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
746
|
+
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
class GoogleAppsCardV1CardFixedFooter
|
751
|
+
# @private
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
753
|
+
property :primary_button, as: 'primaryButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
754
|
+
|
755
|
+
property :secondary_button, as: 'secondaryButton', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
756
|
+
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
760
|
+
class GoogleAppsCardV1CardHeader
|
761
|
+
# @private
|
762
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
763
|
+
property :image_alt_text, as: 'imageAltText'
|
764
|
+
property :image_type, as: 'imageType'
|
765
|
+
property :image_url, as: 'imageUrl'
|
766
|
+
property :subtitle, as: 'subtitle'
|
767
|
+
property :title, as: 'title'
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
class GoogleAppsCardV1DateTimePicker
|
772
|
+
# @private
|
773
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
774
|
+
property :label, as: 'label'
|
775
|
+
property :name, as: 'name'
|
776
|
+
property :on_change_action, as: 'onChangeAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
777
|
+
|
778
|
+
property :timezone_offset_date, as: 'timezoneOffsetDate'
|
779
|
+
property :type, as: 'type'
|
780
|
+
property :value_ms_epoch, :numeric_string => true, as: 'valueMsEpoch'
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
class GoogleAppsCardV1DecoratedText
|
785
|
+
# @private
|
786
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
787
|
+
property :bottom_label, as: 'bottomLabel'
|
788
|
+
property :button, as: 'button', class: Google::Apis::ChatV1::GoogleAppsCardV1Button, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Button::Representation
|
789
|
+
|
790
|
+
property :end_icon, as: 'endIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
791
|
+
|
792
|
+
property :icon, as: 'icon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
793
|
+
|
794
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
795
|
+
|
796
|
+
property :start_icon, as: 'startIcon', class: Google::Apis::ChatV1::GoogleAppsCardV1Icon, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Icon::Representation
|
797
|
+
|
798
|
+
property :switch_control, as: 'switchControl', class: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SwitchControl::Representation
|
799
|
+
|
800
|
+
property :text, as: 'text'
|
801
|
+
property :top_label, as: 'topLabel'
|
802
|
+
property :wrap_text, as: 'wrapText'
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
806
|
+
class GoogleAppsCardV1Divider
|
807
|
+
# @private
|
808
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
809
|
+
end
|
810
|
+
end
|
811
|
+
|
812
|
+
class GoogleAppsCardV1Grid
|
813
|
+
# @private
|
814
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
815
|
+
property :border_style, as: 'borderStyle', class: Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle, decorator: Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle::Representation
|
816
|
+
|
817
|
+
property :column_count, as: 'columnCount'
|
818
|
+
collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1GridItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1GridItem::Representation
|
819
|
+
|
820
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
821
|
+
|
822
|
+
property :title, as: 'title'
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
826
|
+
class GoogleAppsCardV1GridItem
|
827
|
+
# @private
|
828
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
829
|
+
property :id, as: 'id'
|
830
|
+
property :image, as: 'image', class: Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent::Representation
|
831
|
+
|
832
|
+
property :layout, as: 'layout'
|
833
|
+
property :subtitle, as: 'subtitle'
|
834
|
+
property :text_alignment, as: 'textAlignment'
|
835
|
+
property :title, as: 'title'
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
839
|
+
class GoogleAppsCardV1Icon
|
840
|
+
# @private
|
841
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
842
|
+
property :alt_text, as: 'altText'
|
843
|
+
property :icon_url, as: 'iconUrl'
|
844
|
+
property :image_type, as: 'imageType'
|
845
|
+
property :known_icon, as: 'knownIcon'
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
849
|
+
class GoogleAppsCardV1Image
|
850
|
+
# @private
|
851
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
852
|
+
property :alt_text, as: 'altText'
|
853
|
+
property :image_url, as: 'imageUrl'
|
854
|
+
property :on_click, as: 'onClick', class: Google::Apis::ChatV1::GoogleAppsCardV1OnClick, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OnClick::Representation
|
855
|
+
|
856
|
+
end
|
857
|
+
end
|
858
|
+
|
859
|
+
class GoogleAppsCardV1ImageComponent
|
860
|
+
# @private
|
861
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
862
|
+
property :alt_text, as: 'altText'
|
863
|
+
property :border_style, as: 'borderStyle', class: Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle, decorator: Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle::Representation
|
864
|
+
|
865
|
+
property :crop_style, as: 'cropStyle', class: Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ImageCropStyle::Representation
|
866
|
+
|
867
|
+
property :image_uri, as: 'imageUri'
|
868
|
+
end
|
869
|
+
end
|
870
|
+
|
871
|
+
class GoogleAppsCardV1ImageCropStyle
|
872
|
+
# @private
|
873
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
874
|
+
property :aspect_ratio, as: 'aspectRatio'
|
875
|
+
property :type, as: 'type'
|
876
|
+
end
|
877
|
+
end
|
878
|
+
|
879
|
+
class GoogleAppsCardV1OnClick
|
880
|
+
# @private
|
881
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
882
|
+
property :action, as: 'action', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
883
|
+
|
884
|
+
property :card, as: 'card', class: Google::Apis::ChatV1::GoogleAppsCardV1Card, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Card::Representation
|
885
|
+
|
886
|
+
property :open_dynamic_link_action, as: 'openDynamicLinkAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
887
|
+
|
888
|
+
property :open_link, as: 'openLink', class: Google::Apis::ChatV1::GoogleAppsCardV1OpenLink, decorator: Google::Apis::ChatV1::GoogleAppsCardV1OpenLink::Representation
|
889
|
+
|
890
|
+
end
|
891
|
+
end
|
892
|
+
|
893
|
+
class GoogleAppsCardV1OpenLink
|
894
|
+
# @private
|
895
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
896
|
+
property :on_close, as: 'onClose'
|
897
|
+
property :open_as, as: 'openAs'
|
898
|
+
property :url, as: 'url'
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
902
|
+
class GoogleAppsCardV1Section
|
903
|
+
# @private
|
904
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
905
|
+
property :collapsible, as: 'collapsible'
|
906
|
+
property :header, as: 'header'
|
907
|
+
property :uncollapsible_widgets_count, as: 'uncollapsibleWidgetsCount'
|
908
|
+
collection :widgets, as: 'widgets', class: Google::Apis::ChatV1::GoogleAppsCardV1Widget, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Widget::Representation
|
909
|
+
|
910
|
+
end
|
911
|
+
end
|
912
|
+
|
913
|
+
class GoogleAppsCardV1SelectionInput
|
914
|
+
# @private
|
915
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
916
|
+
collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem::Representation
|
917
|
+
|
918
|
+
property :label, as: 'label'
|
919
|
+
property :name, as: 'name'
|
920
|
+
property :on_change_action, as: 'onChangeAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
921
|
+
|
922
|
+
property :type, as: 'type'
|
923
|
+
end
|
924
|
+
end
|
925
|
+
|
926
|
+
class GoogleAppsCardV1SelectionItem
|
927
|
+
# @private
|
928
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
929
|
+
property :selected, as: 'selected'
|
930
|
+
property :text, as: 'text'
|
931
|
+
property :value, as: 'value'
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
935
|
+
class GoogleAppsCardV1SuggestionItem
|
936
|
+
# @private
|
937
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
938
|
+
property :text, as: 'text'
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
942
|
+
class GoogleAppsCardV1Suggestions
|
943
|
+
# @private
|
944
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
945
|
+
collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem::Representation
|
946
|
+
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
class GoogleAppsCardV1SwitchControl
|
951
|
+
# @private
|
952
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
953
|
+
property :control_type, as: 'controlType'
|
954
|
+
property :name, as: 'name'
|
955
|
+
property :on_change_action, as: 'onChangeAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
956
|
+
|
957
|
+
property :selected, as: 'selected'
|
958
|
+
property :value, as: 'value'
|
959
|
+
end
|
960
|
+
end
|
961
|
+
|
962
|
+
class GoogleAppsCardV1TextInput
|
963
|
+
# @private
|
964
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
965
|
+
property :auto_complete_action, as: 'autoCompleteAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
966
|
+
|
967
|
+
property :hint_text, as: 'hintText'
|
968
|
+
property :initial_suggestions, as: 'initialSuggestions', class: Google::Apis::ChatV1::GoogleAppsCardV1Suggestions, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Suggestions::Representation
|
969
|
+
|
970
|
+
property :label, as: 'label'
|
971
|
+
property :name, as: 'name'
|
972
|
+
property :on_change_action, as: 'onChangeAction', class: Google::Apis::ChatV1::GoogleAppsCardV1Action, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Action::Representation
|
973
|
+
|
974
|
+
property :type, as: 'type'
|
975
|
+
property :value, as: 'value'
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
979
|
+
class GoogleAppsCardV1TextParagraph
|
980
|
+
# @private
|
981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
982
|
+
property :text, as: 'text'
|
983
|
+
end
|
984
|
+
end
|
985
|
+
|
986
|
+
class GoogleAppsCardV1Widget
|
987
|
+
# @private
|
988
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
989
|
+
property :button_list, as: 'buttonList', class: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList, decorator: Google::Apis::ChatV1::GoogleAppsCardV1ButtonList::Representation
|
990
|
+
|
991
|
+
property :date_time_picker, as: 'dateTimePicker', class: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker::Representation
|
992
|
+
|
993
|
+
property :decorated_text, as: 'decoratedText', class: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText, decorator: Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText::Representation
|
994
|
+
|
995
|
+
property :divider, as: 'divider', class: Google::Apis::ChatV1::GoogleAppsCardV1Divider, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Divider::Representation
|
996
|
+
|
997
|
+
property :grid, as: 'grid', class: Google::Apis::ChatV1::GoogleAppsCardV1Grid, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Grid::Representation
|
998
|
+
|
999
|
+
property :horizontal_alignment, as: 'horizontalAlignment'
|
1000
|
+
property :image, as: 'image', class: Google::Apis::ChatV1::GoogleAppsCardV1Image, decorator: Google::Apis::ChatV1::GoogleAppsCardV1Image::Representation
|
1001
|
+
|
1002
|
+
property :selection_input, as: 'selectionInput', class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput::Representation
|
1003
|
+
|
1004
|
+
property :text_input, as: 'textInput', class: Google::Apis::ChatV1::GoogleAppsCardV1TextInput, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextInput::Representation
|
1005
|
+
|
1006
|
+
property :text_paragraph, as: 'textParagraph', class: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph, decorator: Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph::Representation
|
1007
|
+
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
358
1011
|
class Image
|
359
1012
|
# @private
|
360
1013
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -376,6 +1029,20 @@ module Google
|
|
376
1029
|
end
|
377
1030
|
end
|
378
1031
|
|
1032
|
+
class Inputs
|
1033
|
+
# @private
|
1034
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1035
|
+
property :date_input, as: 'dateInput', class: Google::Apis::ChatV1::DateInput, decorator: Google::Apis::ChatV1::DateInput::Representation
|
1036
|
+
|
1037
|
+
property :date_time_input, as: 'dateTimeInput', class: Google::Apis::ChatV1::DateTimeInput, decorator: Google::Apis::ChatV1::DateTimeInput::Representation
|
1038
|
+
|
1039
|
+
property :string_inputs, as: 'stringInputs', class: Google::Apis::ChatV1::StringInputs, decorator: Google::Apis::ChatV1::StringInputs::Representation
|
1040
|
+
|
1041
|
+
property :time_input, as: 'timeInput', class: Google::Apis::ChatV1::TimeInput, decorator: Google::Apis::ChatV1::TimeInput::Representation
|
1042
|
+
|
1043
|
+
end
|
1044
|
+
end
|
1045
|
+
|
379
1046
|
class KeyValue
|
380
1047
|
# @private
|
381
1048
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -442,6 +1109,7 @@ module Google
|
|
442
1109
|
|
443
1110
|
property :create_time, as: 'createTime'
|
444
1111
|
property :fallback_text, as: 'fallbackText'
|
1112
|
+
property :last_update_time, as: 'lastUpdateTime'
|
445
1113
|
property :name, as: 'name'
|
446
1114
|
property :preview_text, as: 'previewText'
|
447
1115
|
property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
|
@@ -512,6 +1180,13 @@ module Google
|
|
512
1180
|
end
|
513
1181
|
end
|
514
1182
|
|
1183
|
+
class StringInputs
|
1184
|
+
# @private
|
1185
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1186
|
+
collection :value, as: 'value'
|
1187
|
+
end
|
1188
|
+
end
|
1189
|
+
|
515
1190
|
class TextButton
|
516
1191
|
# @private
|
517
1192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -535,6 +1210,22 @@ module Google
|
|
535
1210
|
end
|
536
1211
|
end
|
537
1212
|
|
1213
|
+
class TimeInput
|
1214
|
+
# @private
|
1215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1216
|
+
property :hours, as: 'hours'
|
1217
|
+
property :minutes, as: 'minutes'
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
class TimeZone
|
1222
|
+
# @private
|
1223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1224
|
+
property :id, as: 'id'
|
1225
|
+
property :offset, as: 'offset'
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
538
1229
|
class User
|
539
1230
|
# @private
|
540
1231
|
class Representation < Google::Apis::Core::JsonRepresentation
|