google-apis-forms_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,954 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FormsV1
24
+
25
+ class Answer
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BatchUpdateFormRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class BatchUpdateFormResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ChoiceQuestion
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CloudPubsubTopic
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CorrectAnswer
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CorrectAnswers
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CreateItemRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class CreateItemResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CreateWatchRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DateQuestion
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class DeleteItemRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Empty
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ExtraMaterial
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Feedback
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class FileUploadAnswer
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class FileUploadAnswers
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class FileUploadQuestion
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Form
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class FormResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class FormSettings
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Grade
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Grading
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Grid
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Image
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ImageItem
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Info
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Item
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ListFormResponsesResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ListWatchesResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Location
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class MediaProperties
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class MoveItemRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class Option
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class PageBreakItem
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Question
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class QuestionGroupItem
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class QuestionItem
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class QuizSettings
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class RenewWatchRequest
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class Request
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class Response
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class RowQuestion
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ScaleQuestion
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class TextAnswer
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class TextAnswers
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class TextItem
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class TextLink
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class TextQuestion
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class TimeQuestion
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class UpdateFormInfoRequest
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class UpdateItemRequest
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class UpdateSettingsRequest
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class Video
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class VideoItem
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class VideoLink
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class Watch
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class WatchTarget
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class WriteControl
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class Answer
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :file_upload_answers, as: 'fileUploadAnswers', class: Google::Apis::FormsV1::FileUploadAnswers, decorator: Google::Apis::FormsV1::FileUploadAnswers::Representation
383
+
384
+ property :grade, as: 'grade', class: Google::Apis::FormsV1::Grade, decorator: Google::Apis::FormsV1::Grade::Representation
385
+
386
+ property :question_id, as: 'questionId'
387
+ property :text_answers, as: 'textAnswers', class: Google::Apis::FormsV1::TextAnswers, decorator: Google::Apis::FormsV1::TextAnswers::Representation
388
+
389
+ end
390
+ end
391
+
392
+ class BatchUpdateFormRequest
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ property :include_form_in_response, as: 'includeFormInResponse'
396
+ collection :requests, as: 'requests', class: Google::Apis::FormsV1::Request, decorator: Google::Apis::FormsV1::Request::Representation
397
+
398
+ property :write_control, as: 'writeControl', class: Google::Apis::FormsV1::WriteControl, decorator: Google::Apis::FormsV1::WriteControl::Representation
399
+
400
+ end
401
+ end
402
+
403
+ class BatchUpdateFormResponse
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :form, as: 'form', class: Google::Apis::FormsV1::Form, decorator: Google::Apis::FormsV1::Form::Representation
407
+
408
+ collection :replies, as: 'replies', class: Google::Apis::FormsV1::Response, decorator: Google::Apis::FormsV1::Response::Representation
409
+
410
+ property :write_control, as: 'writeControl', class: Google::Apis::FormsV1::WriteControl, decorator: Google::Apis::FormsV1::WriteControl::Representation
411
+
412
+ end
413
+ end
414
+
415
+ class ChoiceQuestion
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ collection :options, as: 'options', class: Google::Apis::FormsV1::Option, decorator: Google::Apis::FormsV1::Option::Representation
419
+
420
+ property :shuffle, as: 'shuffle'
421
+ property :type, as: 'type'
422
+ end
423
+ end
424
+
425
+ class CloudPubsubTopic
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :topic_name, as: 'topicName'
429
+ end
430
+ end
431
+
432
+ class CorrectAnswer
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ property :value, as: 'value'
436
+ end
437
+ end
438
+
439
+ class CorrectAnswers
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ collection :answers, as: 'answers', class: Google::Apis::FormsV1::CorrectAnswer, decorator: Google::Apis::FormsV1::CorrectAnswer::Representation
443
+
444
+ end
445
+ end
446
+
447
+ class CreateItemRequest
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :item, as: 'item', class: Google::Apis::FormsV1::Item, decorator: Google::Apis::FormsV1::Item::Representation
451
+
452
+ property :location, as: 'location', class: Google::Apis::FormsV1::Location, decorator: Google::Apis::FormsV1::Location::Representation
453
+
454
+ end
455
+ end
456
+
457
+ class CreateItemResponse
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :item_id, as: 'itemId'
461
+ collection :question_id, as: 'questionId'
462
+ end
463
+ end
464
+
465
+ class CreateWatchRequest
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :watch, as: 'watch', class: Google::Apis::FormsV1::Watch, decorator: Google::Apis::FormsV1::Watch::Representation
469
+
470
+ property :watch_id, as: 'watchId'
471
+ end
472
+ end
473
+
474
+ class DateQuestion
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :include_time, as: 'includeTime'
478
+ property :include_year, as: 'includeYear'
479
+ end
480
+ end
481
+
482
+ class DeleteItemRequest
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ property :location, as: 'location', class: Google::Apis::FormsV1::Location, decorator: Google::Apis::FormsV1::Location::Representation
486
+
487
+ end
488
+ end
489
+
490
+ class Empty
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ end
494
+ end
495
+
496
+ class ExtraMaterial
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ property :link, as: 'link', class: Google::Apis::FormsV1::TextLink, decorator: Google::Apis::FormsV1::TextLink::Representation
500
+
501
+ property :video, as: 'video', class: Google::Apis::FormsV1::VideoLink, decorator: Google::Apis::FormsV1::VideoLink::Representation
502
+
503
+ end
504
+ end
505
+
506
+ class Feedback
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ collection :material, as: 'material', class: Google::Apis::FormsV1::ExtraMaterial, decorator: Google::Apis::FormsV1::ExtraMaterial::Representation
510
+
511
+ property :text, as: 'text'
512
+ end
513
+ end
514
+
515
+ class FileUploadAnswer
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ property :file_id, as: 'fileId'
519
+ property :file_name, as: 'fileName'
520
+ property :mime_type, as: 'mimeType'
521
+ end
522
+ end
523
+
524
+ class FileUploadAnswers
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ collection :answers, as: 'answers', class: Google::Apis::FormsV1::FileUploadAnswer, decorator: Google::Apis::FormsV1::FileUploadAnswer::Representation
528
+
529
+ end
530
+ end
531
+
532
+ class FileUploadQuestion
533
+ # @private
534
+ class Representation < Google::Apis::Core::JsonRepresentation
535
+ property :folder_id, as: 'folderId'
536
+ property :max_file_size, :numeric_string => true, as: 'maxFileSize'
537
+ property :max_files, as: 'maxFiles'
538
+ collection :types, as: 'types'
539
+ end
540
+ end
541
+
542
+ class Form
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :form_id, as: 'formId'
546
+ property :info, as: 'info', class: Google::Apis::FormsV1::Info, decorator: Google::Apis::FormsV1::Info::Representation
547
+
548
+ collection :items, as: 'items', class: Google::Apis::FormsV1::Item, decorator: Google::Apis::FormsV1::Item::Representation
549
+
550
+ property :linked_sheet_id, as: 'linkedSheetId'
551
+ property :responder_uri, as: 'responderUri'
552
+ property :revision_id, as: 'revisionId'
553
+ property :settings, as: 'settings', class: Google::Apis::FormsV1::FormSettings, decorator: Google::Apis::FormsV1::FormSettings::Representation
554
+
555
+ end
556
+ end
557
+
558
+ class FormResponse
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ hash :answers, as: 'answers', class: Google::Apis::FormsV1::Answer, decorator: Google::Apis::FormsV1::Answer::Representation
562
+
563
+ property :create_time, as: 'createTime'
564
+ property :form_id, as: 'formId'
565
+ property :last_submitted_time, as: 'lastSubmittedTime'
566
+ property :respondent_email, as: 'respondentEmail'
567
+ property :response_id, as: 'responseId'
568
+ property :total_score, as: 'totalScore'
569
+ end
570
+ end
571
+
572
+ class FormSettings
573
+ # @private
574
+ class Representation < Google::Apis::Core::JsonRepresentation
575
+ property :quiz_settings, as: 'quizSettings', class: Google::Apis::FormsV1::QuizSettings, decorator: Google::Apis::FormsV1::QuizSettings::Representation
576
+
577
+ end
578
+ end
579
+
580
+ class Grade
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :correct, as: 'correct'
584
+ property :feedback, as: 'feedback', class: Google::Apis::FormsV1::Feedback, decorator: Google::Apis::FormsV1::Feedback::Representation
585
+
586
+ property :score, as: 'score'
587
+ end
588
+ end
589
+
590
+ class Grading
591
+ # @private
592
+ class Representation < Google::Apis::Core::JsonRepresentation
593
+ property :correct_answers, as: 'correctAnswers', class: Google::Apis::FormsV1::CorrectAnswers, decorator: Google::Apis::FormsV1::CorrectAnswers::Representation
594
+
595
+ property :general_feedback, as: 'generalFeedback', class: Google::Apis::FormsV1::Feedback, decorator: Google::Apis::FormsV1::Feedback::Representation
596
+
597
+ property :point_value, as: 'pointValue'
598
+ property :when_right, as: 'whenRight', class: Google::Apis::FormsV1::Feedback, decorator: Google::Apis::FormsV1::Feedback::Representation
599
+
600
+ property :when_wrong, as: 'whenWrong', class: Google::Apis::FormsV1::Feedback, decorator: Google::Apis::FormsV1::Feedback::Representation
601
+
602
+ end
603
+ end
604
+
605
+ class Grid
606
+ # @private
607
+ class Representation < Google::Apis::Core::JsonRepresentation
608
+ property :columns, as: 'columns', class: Google::Apis::FormsV1::ChoiceQuestion, decorator: Google::Apis::FormsV1::ChoiceQuestion::Representation
609
+
610
+ property :shuffle_questions, as: 'shuffleQuestions'
611
+ end
612
+ end
613
+
614
+ class Image
615
+ # @private
616
+ class Representation < Google::Apis::Core::JsonRepresentation
617
+ property :alt_text, as: 'altText'
618
+ property :content_uri, as: 'contentUri'
619
+ property :properties, as: 'properties', class: Google::Apis::FormsV1::MediaProperties, decorator: Google::Apis::FormsV1::MediaProperties::Representation
620
+
621
+ property :source_uri, as: 'sourceUri'
622
+ end
623
+ end
624
+
625
+ class ImageItem
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :image, as: 'image', class: Google::Apis::FormsV1::Image, decorator: Google::Apis::FormsV1::Image::Representation
629
+
630
+ end
631
+ end
632
+
633
+ class Info
634
+ # @private
635
+ class Representation < Google::Apis::Core::JsonRepresentation
636
+ property :description, as: 'description'
637
+ property :document_title, as: 'documentTitle'
638
+ property :title, as: 'title'
639
+ end
640
+ end
641
+
642
+ class Item
643
+ # @private
644
+ class Representation < Google::Apis::Core::JsonRepresentation
645
+ property :description, as: 'description'
646
+ property :image_item, as: 'imageItem', class: Google::Apis::FormsV1::ImageItem, decorator: Google::Apis::FormsV1::ImageItem::Representation
647
+
648
+ property :item_id, as: 'itemId'
649
+ property :page_break_item, as: 'pageBreakItem', class: Google::Apis::FormsV1::PageBreakItem, decorator: Google::Apis::FormsV1::PageBreakItem::Representation
650
+
651
+ property :question_group_item, as: 'questionGroupItem', class: Google::Apis::FormsV1::QuestionGroupItem, decorator: Google::Apis::FormsV1::QuestionGroupItem::Representation
652
+
653
+ property :question_item, as: 'questionItem', class: Google::Apis::FormsV1::QuestionItem, decorator: Google::Apis::FormsV1::QuestionItem::Representation
654
+
655
+ property :text_item, as: 'textItem', class: Google::Apis::FormsV1::TextItem, decorator: Google::Apis::FormsV1::TextItem::Representation
656
+
657
+ property :title, as: 'title'
658
+ property :video_item, as: 'videoItem', class: Google::Apis::FormsV1::VideoItem, decorator: Google::Apis::FormsV1::VideoItem::Representation
659
+
660
+ end
661
+ end
662
+
663
+ class ListFormResponsesResponse
664
+ # @private
665
+ class Representation < Google::Apis::Core::JsonRepresentation
666
+ property :next_page_token, as: 'nextPageToken'
667
+ collection :responses, as: 'responses', class: Google::Apis::FormsV1::FormResponse, decorator: Google::Apis::FormsV1::FormResponse::Representation
668
+
669
+ end
670
+ end
671
+
672
+ class ListWatchesResponse
673
+ # @private
674
+ class Representation < Google::Apis::Core::JsonRepresentation
675
+ collection :watches, as: 'watches', class: Google::Apis::FormsV1::Watch, decorator: Google::Apis::FormsV1::Watch::Representation
676
+
677
+ end
678
+ end
679
+
680
+ class Location
681
+ # @private
682
+ class Representation < Google::Apis::Core::JsonRepresentation
683
+ property :index, as: 'index'
684
+ end
685
+ end
686
+
687
+ class MediaProperties
688
+ # @private
689
+ class Representation < Google::Apis::Core::JsonRepresentation
690
+ property :alignment, as: 'alignment'
691
+ property :width, as: 'width'
692
+ end
693
+ end
694
+
695
+ class MoveItemRequest
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :new_location, as: 'newLocation', class: Google::Apis::FormsV1::Location, decorator: Google::Apis::FormsV1::Location::Representation
699
+
700
+ property :original_location, as: 'originalLocation', class: Google::Apis::FormsV1::Location, decorator: Google::Apis::FormsV1::Location::Representation
701
+
702
+ end
703
+ end
704
+
705
+ class Option
706
+ # @private
707
+ class Representation < Google::Apis::Core::JsonRepresentation
708
+ property :go_to_action, as: 'goToAction'
709
+ property :go_to_section_id, as: 'goToSectionId'
710
+ property :image, as: 'image', class: Google::Apis::FormsV1::Image, decorator: Google::Apis::FormsV1::Image::Representation
711
+
712
+ property :is_other, as: 'isOther'
713
+ property :value, as: 'value'
714
+ end
715
+ end
716
+
717
+ class PageBreakItem
718
+ # @private
719
+ class Representation < Google::Apis::Core::JsonRepresentation
720
+ end
721
+ end
722
+
723
+ class Question
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :choice_question, as: 'choiceQuestion', class: Google::Apis::FormsV1::ChoiceQuestion, decorator: Google::Apis::FormsV1::ChoiceQuestion::Representation
727
+
728
+ property :date_question, as: 'dateQuestion', class: Google::Apis::FormsV1::DateQuestion, decorator: Google::Apis::FormsV1::DateQuestion::Representation
729
+
730
+ property :file_upload_question, as: 'fileUploadQuestion', class: Google::Apis::FormsV1::FileUploadQuestion, decorator: Google::Apis::FormsV1::FileUploadQuestion::Representation
731
+
732
+ property :grading, as: 'grading', class: Google::Apis::FormsV1::Grading, decorator: Google::Apis::FormsV1::Grading::Representation
733
+
734
+ property :question_id, as: 'questionId'
735
+ property :required, as: 'required'
736
+ property :row_question, as: 'rowQuestion', class: Google::Apis::FormsV1::RowQuestion, decorator: Google::Apis::FormsV1::RowQuestion::Representation
737
+
738
+ property :scale_question, as: 'scaleQuestion', class: Google::Apis::FormsV1::ScaleQuestion, decorator: Google::Apis::FormsV1::ScaleQuestion::Representation
739
+
740
+ property :text_question, as: 'textQuestion', class: Google::Apis::FormsV1::TextQuestion, decorator: Google::Apis::FormsV1::TextQuestion::Representation
741
+
742
+ property :time_question, as: 'timeQuestion', class: Google::Apis::FormsV1::TimeQuestion, decorator: Google::Apis::FormsV1::TimeQuestion::Representation
743
+
744
+ end
745
+ end
746
+
747
+ class QuestionGroupItem
748
+ # @private
749
+ class Representation < Google::Apis::Core::JsonRepresentation
750
+ property :grid, as: 'grid', class: Google::Apis::FormsV1::Grid, decorator: Google::Apis::FormsV1::Grid::Representation
751
+
752
+ property :image, as: 'image', class: Google::Apis::FormsV1::Image, decorator: Google::Apis::FormsV1::Image::Representation
753
+
754
+ collection :questions, as: 'questions', class: Google::Apis::FormsV1::Question, decorator: Google::Apis::FormsV1::Question::Representation
755
+
756
+ end
757
+ end
758
+
759
+ class QuestionItem
760
+ # @private
761
+ class Representation < Google::Apis::Core::JsonRepresentation
762
+ property :image, as: 'image', class: Google::Apis::FormsV1::Image, decorator: Google::Apis::FormsV1::Image::Representation
763
+
764
+ property :question, as: 'question', class: Google::Apis::FormsV1::Question, decorator: Google::Apis::FormsV1::Question::Representation
765
+
766
+ end
767
+ end
768
+
769
+ class QuizSettings
770
+ # @private
771
+ class Representation < Google::Apis::Core::JsonRepresentation
772
+ property :is_quiz, as: 'isQuiz'
773
+ end
774
+ end
775
+
776
+ class RenewWatchRequest
777
+ # @private
778
+ class Representation < Google::Apis::Core::JsonRepresentation
779
+ end
780
+ end
781
+
782
+ class Request
783
+ # @private
784
+ class Representation < Google::Apis::Core::JsonRepresentation
785
+ property :create_item, as: 'createItem', class: Google::Apis::FormsV1::CreateItemRequest, decorator: Google::Apis::FormsV1::CreateItemRequest::Representation
786
+
787
+ property :delete_item, as: 'deleteItem', class: Google::Apis::FormsV1::DeleteItemRequest, decorator: Google::Apis::FormsV1::DeleteItemRequest::Representation
788
+
789
+ property :move_item, as: 'moveItem', class: Google::Apis::FormsV1::MoveItemRequest, decorator: Google::Apis::FormsV1::MoveItemRequest::Representation
790
+
791
+ property :update_form_info, as: 'updateFormInfo', class: Google::Apis::FormsV1::UpdateFormInfoRequest, decorator: Google::Apis::FormsV1::UpdateFormInfoRequest::Representation
792
+
793
+ property :update_item, as: 'updateItem', class: Google::Apis::FormsV1::UpdateItemRequest, decorator: Google::Apis::FormsV1::UpdateItemRequest::Representation
794
+
795
+ property :update_settings, as: 'updateSettings', class: Google::Apis::FormsV1::UpdateSettingsRequest, decorator: Google::Apis::FormsV1::UpdateSettingsRequest::Representation
796
+
797
+ end
798
+ end
799
+
800
+ class Response
801
+ # @private
802
+ class Representation < Google::Apis::Core::JsonRepresentation
803
+ property :create_item, as: 'createItem', class: Google::Apis::FormsV1::CreateItemResponse, decorator: Google::Apis::FormsV1::CreateItemResponse::Representation
804
+
805
+ end
806
+ end
807
+
808
+ class RowQuestion
809
+ # @private
810
+ class Representation < Google::Apis::Core::JsonRepresentation
811
+ property :title, as: 'title'
812
+ end
813
+ end
814
+
815
+ class ScaleQuestion
816
+ # @private
817
+ class Representation < Google::Apis::Core::JsonRepresentation
818
+ property :high, as: 'high'
819
+ property :high_label, as: 'highLabel'
820
+ property :low, as: 'low'
821
+ property :low_label, as: 'lowLabel'
822
+ end
823
+ end
824
+
825
+ class TextAnswer
826
+ # @private
827
+ class Representation < Google::Apis::Core::JsonRepresentation
828
+ property :value, as: 'value'
829
+ end
830
+ end
831
+
832
+ class TextAnswers
833
+ # @private
834
+ class Representation < Google::Apis::Core::JsonRepresentation
835
+ collection :answers, as: 'answers', class: Google::Apis::FormsV1::TextAnswer, decorator: Google::Apis::FormsV1::TextAnswer::Representation
836
+
837
+ end
838
+ end
839
+
840
+ class TextItem
841
+ # @private
842
+ class Representation < Google::Apis::Core::JsonRepresentation
843
+ end
844
+ end
845
+
846
+ class TextLink
847
+ # @private
848
+ class Representation < Google::Apis::Core::JsonRepresentation
849
+ property :display_text, as: 'displayText'
850
+ property :uri, as: 'uri'
851
+ end
852
+ end
853
+
854
+ class TextQuestion
855
+ # @private
856
+ class Representation < Google::Apis::Core::JsonRepresentation
857
+ property :paragraph, as: 'paragraph'
858
+ end
859
+ end
860
+
861
+ class TimeQuestion
862
+ # @private
863
+ class Representation < Google::Apis::Core::JsonRepresentation
864
+ property :duration, as: 'duration'
865
+ end
866
+ end
867
+
868
+ class UpdateFormInfoRequest
869
+ # @private
870
+ class Representation < Google::Apis::Core::JsonRepresentation
871
+ property :info, as: 'info', class: Google::Apis::FormsV1::Info, decorator: Google::Apis::FormsV1::Info::Representation
872
+
873
+ property :update_mask, as: 'updateMask'
874
+ end
875
+ end
876
+
877
+ class UpdateItemRequest
878
+ # @private
879
+ class Representation < Google::Apis::Core::JsonRepresentation
880
+ property :item, as: 'item', class: Google::Apis::FormsV1::Item, decorator: Google::Apis::FormsV1::Item::Representation
881
+
882
+ property :location, as: 'location', class: Google::Apis::FormsV1::Location, decorator: Google::Apis::FormsV1::Location::Representation
883
+
884
+ property :update_mask, as: 'updateMask'
885
+ end
886
+ end
887
+
888
+ class UpdateSettingsRequest
889
+ # @private
890
+ class Representation < Google::Apis::Core::JsonRepresentation
891
+ property :settings, as: 'settings', class: Google::Apis::FormsV1::FormSettings, decorator: Google::Apis::FormsV1::FormSettings::Representation
892
+
893
+ property :update_mask, as: 'updateMask'
894
+ end
895
+ end
896
+
897
+ class Video
898
+ # @private
899
+ class Representation < Google::Apis::Core::JsonRepresentation
900
+ property :properties, as: 'properties', class: Google::Apis::FormsV1::MediaProperties, decorator: Google::Apis::FormsV1::MediaProperties::Representation
901
+
902
+ property :youtube_uri, as: 'youtubeUri'
903
+ end
904
+ end
905
+
906
+ class VideoItem
907
+ # @private
908
+ class Representation < Google::Apis::Core::JsonRepresentation
909
+ property :caption, as: 'caption'
910
+ property :video, as: 'video', class: Google::Apis::FormsV1::Video, decorator: Google::Apis::FormsV1::Video::Representation
911
+
912
+ end
913
+ end
914
+
915
+ class VideoLink
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :display_text, as: 'displayText'
919
+ property :youtube_uri, as: 'youtubeUri'
920
+ end
921
+ end
922
+
923
+ class Watch
924
+ # @private
925
+ class Representation < Google::Apis::Core::JsonRepresentation
926
+ property :create_time, as: 'createTime'
927
+ property :error_type, as: 'errorType'
928
+ property :event_type, as: 'eventType'
929
+ property :expire_time, as: 'expireTime'
930
+ property :id, as: 'id'
931
+ property :state, as: 'state'
932
+ property :target, as: 'target', class: Google::Apis::FormsV1::WatchTarget, decorator: Google::Apis::FormsV1::WatchTarget::Representation
933
+
934
+ end
935
+ end
936
+
937
+ class WatchTarget
938
+ # @private
939
+ class Representation < Google::Apis::Core::JsonRepresentation
940
+ property :topic, as: 'topic', class: Google::Apis::FormsV1::CloudPubsubTopic, decorator: Google::Apis::FormsV1::CloudPubsubTopic::Representation
941
+
942
+ end
943
+ end
944
+
945
+ class WriteControl
946
+ # @private
947
+ class Representation < Google::Apis::Core::JsonRepresentation
948
+ property :required_revision_id, as: 'requiredRevisionId'
949
+ property :target_revision_id, as: 'targetRevisionId'
950
+ end
951
+ end
952
+ end
953
+ end
954
+ end