google-api-client 0.9.20 → 0.9.21

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.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -490,6 +490,7 @@ module Google
490
490
  property :read_ratio_max, as: 'readRatioMax'
491
491
  property :records_read, as: 'recordsRead'
492
492
  property :records_written, as: 'recordsWritten'
493
+ property :status, as: 'status'
493
494
  collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
494
495
 
495
496
  property :wait_ratio_avg, as: 'waitRatioAvg'
@@ -627,6 +628,7 @@ module Google
627
628
  property :field_delimiter, as: 'fieldDelimiter'
628
629
  property :ignore_unknown_values, as: 'ignoreUnknownValues'
629
630
  property :max_bad_records, as: 'maxBadRecords'
631
+ property :null_marker, as: 'nullMarker'
630
632
  collection :projection_fields, as: 'projectionFields'
631
633
  property :quote, as: 'quote'
632
634
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
@@ -751,6 +753,7 @@ module Google
751
753
 
752
754
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
753
755
 
756
+ property :statement_type, as: 'statementType'
754
757
  property :total_bytes_billed, as: 'totalBytesBilled'
755
758
  property :total_bytes_processed, as: 'totalBytesProcessed'
756
759
  collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
@@ -921,6 +924,7 @@ module Google
921
924
  property :friendly_name, as: 'friendlyName'
922
925
  property :id, as: 'id'
923
926
  property :kind, as: 'kind'
927
+ hash :labels, as: 'labels'
924
928
  property :last_modified_time, as: 'lastModifiedTime'
925
929
  property :location, as: 'location'
926
930
  property :num_bytes, as: 'numBytes'
@@ -1027,6 +1031,7 @@ module Google
1027
1031
  property :friendly_name, as: 'friendlyName'
1028
1032
  property :id, as: 'id'
1029
1033
  property :kind, as: 'kind'
1034
+ hash :labels, as: 'labels'
1030
1035
  property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
1031
1036
 
1032
1037
  property :type, as: 'type'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/books/docs/v1/getting_started
26
26
  module BooksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20161005'
28
+ REVISION = '20161206'
29
29
 
30
30
  # Manage your books
31
31
  AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
@@ -2026,6 +2026,11 @@ module Google
2026
2026
  # @return [String]
2027
2027
  attr_accessor :kind
2028
2028
 
2029
+ #
2030
+ # Corresponds to the JSON property `notificationGroup`
2031
+ # @return [String]
2032
+ attr_accessor :notification_group
2033
+
2029
2034
  #
2030
2035
  # Corresponds to the JSON property `notification_type`
2031
2036
  # @return [String]
@@ -2070,6 +2075,7 @@ module Google
2070
2075
  @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
2071
2076
  @icon_url = args[:icon_url] if args.key?(:icon_url)
2072
2077
  @kind = args[:kind] if args.key?(:kind)
2078
+ @notification_group = args[:notification_group] if args.key?(:notification_group)
2073
2079
  @notification_type = args[:notification_type] if args.key?(:notification_type)
2074
2080
  @pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id)
2075
2081
  @reason = args[:reason] if args.key?(:reason)
@@ -2413,8 +2419,7 @@ module Google
2413
2419
  # @return [String]
2414
2420
  attr_accessor :kind
2415
2421
 
2416
- # Series info list. The client always expects this element in the JSON output,
2417
- # hence declared here as OutputAlways.
2422
+ #
2418
2423
  # Corresponds to the JSON property `series`
2419
2424
  # @return [Array<Google::Apis::BooksV1::Series::Series>]
2420
2425
  attr_accessor :series
@@ -1212,6 +1212,7 @@ module Google
1212
1212
  property :dont_show_notification, as: 'dont_show_notification'
1213
1213
  property :icon_url, as: 'iconUrl'
1214
1214
  property :kind, as: 'kind'
1215
+ property :notification_group, as: 'notificationGroup'
1215
1216
  property :notification_type, as: 'notification_type'
1216
1217
  property :pcampaign_id, as: 'pcampaign_id'
1217
1218
  property :reason, as: 'reason'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20161101'
28
+ REVISION = '20170115'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20161006'
28
+ REVISION = '20170110'
29
29
 
30
30
  # View instructions for teacher-assigned work in your Google Classroom classes
31
31
  AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'
@@ -572,72 +572,6 @@ module Google
572
572
  end
573
573
  end
574
574
 
575
- # Response when listing guardians.
576
- class ListGuardiansResponse
577
- include Google::Apis::Core::Hashable
578
-
579
- # Guardians on this page of results that met the criteria specified in the
580
- # request.
581
- # Corresponds to the JSON property `guardians`
582
- # @return [Array<Google::Apis::ClassroomV1::Guardian>]
583
- attr_accessor :guardians
584
-
585
- # Token identifying the next page of results to return. If empty, no further
586
- # results are available.
587
- # Corresponds to the JSON property `nextPageToken`
588
- # @return [String]
589
- attr_accessor :next_page_token
590
-
591
- def initialize(**args)
592
- update!(**args)
593
- end
594
-
595
- # Update properties of this object
596
- def update!(**args)
597
- @guardians = args[:guardians] if args.key?(:guardians)
598
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
599
- end
600
- end
601
-
602
- # Association between a student and a guardian of that student. The guardian may
603
- # receive information about the student's course work.
604
- class Guardian
605
- include Google::Apis::Core::Hashable
606
-
607
- # Identifier for the student to whom the guardian relationship applies.
608
- # Corresponds to the JSON property `studentId`
609
- # @return [String]
610
- attr_accessor :student_id
611
-
612
- # Identifier for the guardian.
613
- # Corresponds to the JSON property `guardianId`
614
- # @return [String]
615
- attr_accessor :guardian_id
616
-
617
- # Global information for a user.
618
- # Corresponds to the JSON property `guardianProfile`
619
- # @return [Google::Apis::ClassroomV1::UserProfile]
620
- attr_accessor :guardian_profile
621
-
622
- # The email address to which the initial guardian invitation was sent. This
623
- # field is only visible to domain administrators.
624
- # Corresponds to the JSON property `invitedEmailAddress`
625
- # @return [String]
626
- attr_accessor :invited_email_address
627
-
628
- def initialize(**args)
629
- update!(**args)
630
- end
631
-
632
- # Update properties of this object
633
- def update!(**args)
634
- @student_id = args[:student_id] if args.key?(:student_id)
635
- @guardian_id = args[:guardian_id] if args.key?(:guardian_id)
636
- @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
637
- @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
638
- end
639
- end
640
-
641
575
  # Global information for a user.
642
576
  class UserProfile
643
577
  include Google::Apis::Core::Hashable
@@ -858,6 +792,72 @@ module Google
858
792
  end
859
793
  end
860
794
 
795
+ # Response when listing guardians.
796
+ class ListGuardiansResponse
797
+ include Google::Apis::Core::Hashable
798
+
799
+ # Guardians on this page of results that met the criteria specified in the
800
+ # request.
801
+ # Corresponds to the JSON property `guardians`
802
+ # @return [Array<Google::Apis::ClassroomV1::Guardian>]
803
+ attr_accessor :guardians
804
+
805
+ # Token identifying the next page of results to return. If empty, no further
806
+ # results are available.
807
+ # Corresponds to the JSON property `nextPageToken`
808
+ # @return [String]
809
+ attr_accessor :next_page_token
810
+
811
+ def initialize(**args)
812
+ update!(**args)
813
+ end
814
+
815
+ # Update properties of this object
816
+ def update!(**args)
817
+ @guardians = args[:guardians] if args.key?(:guardians)
818
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
819
+ end
820
+ end
821
+
822
+ # Association between a student and a guardian of that student. The guardian may
823
+ # receive information about the student's course work.
824
+ class Guardian
825
+ include Google::Apis::Core::Hashable
826
+
827
+ # Identifier for the student to whom the guardian relationship applies.
828
+ # Corresponds to the JSON property `studentId`
829
+ # @return [String]
830
+ attr_accessor :student_id
831
+
832
+ # Identifier for the guardian.
833
+ # Corresponds to the JSON property `guardianId`
834
+ # @return [String]
835
+ attr_accessor :guardian_id
836
+
837
+ # Global information for a user.
838
+ # Corresponds to the JSON property `guardianProfile`
839
+ # @return [Google::Apis::ClassroomV1::UserProfile]
840
+ attr_accessor :guardian_profile
841
+
842
+ # The email address to which the initial guardian invitation was sent. This
843
+ # field is only visible to domain administrators.
844
+ # Corresponds to the JSON property `invitedEmailAddress`
845
+ # @return [String]
846
+ attr_accessor :invited_email_address
847
+
848
+ def initialize(**args)
849
+ update!(**args)
850
+ end
851
+
852
+ # Update properties of this object
853
+ def update!(**args)
854
+ @student_id = args[:student_id] if args.key?(:student_id)
855
+ @guardian_id = args[:guardian_id] if args.key?(:guardian_id)
856
+ @guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
857
+ @invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
858
+ end
859
+ end
860
+
861
861
  # An invitation to join a course.
862
862
  class Invitation
863
863
  include Google::Apis::Core::Hashable
@@ -1002,7 +1002,7 @@ module Google
1002
1002
  attr_accessor :max_points
1003
1003
 
1004
1004
  # Type of this course work. The type is set when the course work is created and
1005
- # cannot be changed. When creating course work, this must be `ASSIGNMENT`.
1005
+ # cannot be changed.
1006
1006
  # Corresponds to the JSON property `workType`
1007
1007
  # @return [String]
1008
1008
  attr_accessor :work_type
@@ -1057,8 +1057,8 @@ module Google
1057
1057
  end
1058
1058
  end
1059
1059
 
1060
- # Material attached to course work. When creating attachments, only the Link
1061
- # field may be specified.
1060
+ # Material attached to course work. When creating attachments, setting the `form`
1061
+ # field is not supported.
1062
1062
  class Material
1063
1063
  include Google::Apis::Core::Hashable
1064
1064
 
@@ -1389,10 +1389,10 @@ module Google
1389
1389
  include Google::Apis::Core::Hashable
1390
1390
 
1391
1391
  # Attachments added by the student. Drive files that correspond to materials
1392
- # with a share mode of SUBMISSION_COPY may not exist yet if the student has not
1392
+ # with a share mode of STUDENT_COPY may not exist yet if the student has not
1393
1393
  # accessed the assignment in Classroom. Some attachment metadata is only
1394
1394
  # populated if the requesting user has permission to access it. Identifier and
1395
- # alternate_link fields are available, but others (e.g. title) may not be.
1395
+ # alternate_link fields are always available, but others (e.g. title) may not be.
1396
1396
  # Corresponds to the JSON property `attachments`
1397
1397
  # @return [Array<Google::Apis::ClassroomV1::Attachment>]
1398
1398
  attr_accessor :attachments
@@ -1407,8 +1407,8 @@ module Google
1407
1407
  end
1408
1408
  end
1409
1409
 
1410
- # Attachment added to student assignment work. When creating attachments, only
1411
- # the Link field may be specified.
1410
+ # Attachment added to student assignment work. When creating attachments,
1411
+ # setting the `form` field is not supported.
1412
1412
  class Attachment
1413
1413
  include Google::Apis::Core::Hashable
1414
1414
 
@@ -1553,7 +1553,7 @@ module Google
1553
1553
  include Google::Apis::Core::Hashable
1554
1554
 
1555
1555
  # Attachments to add. A student submission may not have more than 20 attachments.
1556
- # This may only contain link attachments.
1556
+ # Form attachments are not supported.
1557
1557
  # Corresponds to the JSON property `addAttachments`
1558
1558
  # @return [Array<Google::Apis::ClassroomV1::Attachment>]
1559
1559
  attr_accessor :add_attachments
@@ -106,55 +106,55 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class ListGuardiansResponse
109
+ class UserProfile
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class Guardian
115
+ class Name
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class UserProfile
121
+ class GlobalPermission
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Name
127
+ class Teacher
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class GlobalPermission
133
+ class ListTeachersResponse
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class Teacher
139
+ class Student
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class ListTeachersResponse
145
+ class ListStudentsResponse
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class Student
151
+ class ListGuardiansResponse
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
- class ListStudentsResponse
157
+ class Guardian
158
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
159
 
160
160
  include Google::Apis::Core::JsonObjectSupport
@@ -427,26 +427,6 @@ module Google
427
427
  end
428
428
  end
429
429
 
430
- class ListGuardiansResponse
431
- # @private
432
- class Representation < Google::Apis::Core::JsonRepresentation
433
- collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
434
-
435
- property :next_page_token, as: 'nextPageToken'
436
- end
437
- end
438
-
439
- class Guardian
440
- # @private
441
- class Representation < Google::Apis::Core::JsonRepresentation
442
- property :student_id, as: 'studentId'
443
- property :guardian_id, as: 'guardianId'
444
- property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
445
-
446
- property :invited_email_address, as: 'invitedEmailAddress'
447
- end
448
- end
449
-
450
430
  class UserProfile
451
431
  # @private
452
432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -516,6 +496,26 @@ module Google
516
496
  end
517
497
  end
518
498
 
499
+ class ListGuardiansResponse
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
503
+
504
+ property :next_page_token, as: 'nextPageToken'
505
+ end
506
+ end
507
+
508
+ class Guardian
509
+ # @private
510
+ class Representation < Google::Apis::Core::JsonRepresentation
511
+ property :student_id, as: 'studentId'
512
+ property :guardian_id, as: 'guardianId'
513
+ property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
514
+
515
+ property :invited_email_address, as: 'invitedEmailAddress'
516
+ end
517
+ end
518
+
519
519
  class Invitation
520
520
  # @private
521
521
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -743,9 +743,10 @@ module Google
743
743
  # must be made with an OAuth client ID from the associated Developer Console
744
744
  # project. This method returns the following error codes: * `PERMISSION_DENIED`
745
745
  # if the requesting user is not permitted to access the requested course, create
746
- # course work in the requested course, or for access errors. * `INVALID_ARGUMENT`
747
- # if the request is malformed. * `NOT_FOUND` if the requested course does not
748
- # exist.
746
+ # course work in the requested course, share a Drive attachment, or for access
747
+ # errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
748
+ # requested course does not exist. * `FAILED_PRECONDITION` for the following
749
+ # request error: * AttachmentNotVisible
749
750
  # @param [String] course_id
750
751
  # Identifier of the course. This identifier can be either the Classroom-assigned
751
752
  # identifier or an alias.
@@ -779,6 +780,105 @@ module Google
779
780
  execute_or_queue_command(command, &block)
780
781
  end
781
782
 
783
+ # Updates one or more fields of a course work. See google.classroom.v1.
784
+ # CourseWork for details of which fields may be updated and who may change them.
785
+ # This request must be made by the Developer Console project of the [OAuth
786
+ # client ID](https://support.google.com/cloud/answer/6158849) used to create the
787
+ # corresponding course work item. This method returns the following error codes:
788
+ # * `PERMISSION_DENIED` if the requesting developer project did not create the
789
+ # corresponding course work, if the user is not permitted to make the requested
790
+ # modification to the student submission, or for access errors. * `
791
+ # INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the
792
+ # requested course work has already been deleted. * `NOT_FOUND` if the requested
793
+ # course, course work, or student submission does not exist.
794
+ # @param [String] course_id
795
+ # Identifier of the course. This identifier can be either the Classroom-assigned
796
+ # identifier or an alias.
797
+ # @param [String] id
798
+ # Identifier of the course work.
799
+ # @param [Google::Apis::ClassroomV1::CourseWork] course_work_object
800
+ # @param [String] update_mask
801
+ # Mask that identifies which fields on the course work to update. This field is
802
+ # required to do an update. The update fails if invalid fields are specified. If
803
+ # a field supports empty values, it can be cleared by specifying it in the
804
+ # update mask and not in the CourseWork object. If a field that does not support
805
+ # empty values is included in the update mask and not set in the CourseWork
806
+ # object, an `INVALID_ARGUMENT` error will be returned. The following fields may
807
+ # be specified by teachers: * `title` * `description` * `state` * `due_date` * `
808
+ # due_time` * `max_points` * `submission_modification_mode`
809
+ # @param [String] fields
810
+ # Selector specifying which fields to include in a partial response.
811
+ # @param [String] quota_user
812
+ # Available to use for quota purposes for server-side applications. Can be any
813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
814
+ # @param [Google::Apis::RequestOptions] options
815
+ # Request-specific options
816
+ #
817
+ # @yield [result, err] Result & error if block supplied
818
+ # @yieldparam result [Google::Apis::ClassroomV1::CourseWork] parsed result object
819
+ # @yieldparam err [StandardError] error object if request failed
820
+ #
821
+ # @return [Google::Apis::ClassroomV1::CourseWork]
822
+ #
823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
826
+ def patch_course_course_work(course_id, id, course_work_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
827
+ command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{id}', options)
828
+ command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation
829
+ command.request_object = course_work_object
830
+ command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation
831
+ command.response_class = Google::Apis::ClassroomV1::CourseWork
832
+ command.params['courseId'] = course_id unless course_id.nil?
833
+ command.params['id'] = id unless id.nil?
834
+ command.query['updateMask'] = update_mask unless update_mask.nil?
835
+ command.query['fields'] = fields unless fields.nil?
836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
837
+ execute_or_queue_command(command, &block)
838
+ end
839
+
840
+ # Deletes a course work. This request must be made by the Developer Console
841
+ # project of the [OAuth client ID](https://support.google.com/cloud/answer/
842
+ # 6158849) used to create the corresponding course work item. This method
843
+ # returns the following error codes: * `PERMISSION_DENIED` if the requesting
844
+ # developer project did not create the corresponding course work, if the
845
+ # requesting user is not permitted to delete the requested course or for access
846
+ # errors. * `FAILED_PRECONDITION` if the requested course work has already been
847
+ # deleted. * `NOT_FOUND` if no course exists with the requested ID.
848
+ # @param [String] course_id
849
+ # Identifier of the course. This identifier can be either the Classroom-assigned
850
+ # identifier or an alias.
851
+ # @param [String] id
852
+ # Identifier of the course work to delete. This identifier is a Classroom-
853
+ # assigned identifier.
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::ClassroomV1::Empty]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def delete_course_course_work(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWork/{id}', options)
873
+ command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
874
+ command.response_class = Google::Apis::ClassroomV1::Empty
875
+ command.params['courseId'] = course_id unless course_id.nil?
876
+ command.params['id'] = id unless id.nil?
877
+ command.query['fields'] = fields unless fields.nil?
878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
879
+ execute_or_queue_command(command, &block)
880
+ end
881
+
782
882
  # Returns course work. This method returns the following error codes: * `
783
883
  # PERMISSION_DENIED` if the requesting user is not permitted to access the
784
884
  # requested course or course work, or for access errors. * `INVALID_ARGUMENT` if
@@ -1091,7 +1191,7 @@ module Google
1091
1191
 
1092
1192
  # Reclaims a student submission on behalf of the student that owns it.
1093
1193
  # Reclaiming a student submission transfers ownership of attached Drive files to
1094
- # the student and update the submission state. Only the student that ownes the
1194
+ # the student and update the submission state. Only the student that owns the
1095
1195
  # requested student submission may call this method, and only for a student
1096
1196
  # submission that has been turned in. This request must be made by the Developer
1097
1197
  # Console project of the [OAuth client ID](https://support.google.com/cloud/
@@ -1194,15 +1294,15 @@ module Google
1194
1294
  end
1195
1295
 
1196
1296
  # Modifies attachments of student submission. Attachments may only be added to
1197
- # student submissions whose type is `ASSIGNMENT`. This request must be made by
1198
- # the Developer Console project of the [OAuth client ID](https://support.google.
1199
- # com/cloud/answer/6158849) used to create the corresponding course work item.
1200
- # This method returns the following error codes: * `PERMISSION_DENIED` if the
1201
- # requesting user is not permitted to access the requested course or course work,
1202
- # if the user is not permitted to modify attachments on the requested student
1203
- # submission, or for access errors. * `INVALID_ARGUMENT` if the request is
1204
- # malformed. * `NOT_FOUND` if the requested course, course work, or student
1205
- # submission does not exist.
1297
+ # student submissions belonging to course work objects with a `workType` of `
1298
+ # ASSIGNMENT`. This request must be made by the Developer Console project of the
1299
+ # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
1300
+ # create the corresponding course work item. This method returns the following
1301
+ # error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
1302
+ # access the requested course or course work, if the user is not permitted to
1303
+ # modify attachments on the requested student submission, or for access errors. *
1304
+ # `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
1305
+ # requested course, course work, or student submission does not exist.
1206
1306
  # @param [String] course_id
1207
1307
  # Identifier of the course. This identifier can be either the Classroom-assigned
1208
1308
  # identifier or an alias.
@@ -1244,7 +1344,7 @@ module Google
1244
1344
 
1245
1345
  # Returns a user profile. This method returns the following error codes: * `
1246
1346
  # PERMISSION_DENIED` if the requesting user is not permitted to access this user
1247
- # profile or if no profile exists with the requested ID or for access errors.
1347
+ # profile, if no profile exists with the requested ID, or for access errors.
1248
1348
  # @param [String] user_id
1249
1349
  # Identifier of the profile to return. The identifier can be one of the
1250
1350
  # following: * the numeric identifier for the user * the email address of the
@@ -1554,13 +1654,15 @@ module Google
1554
1654
  end
1555
1655
 
1556
1656
  # Returns a specific guardian. This method returns the following error codes: * `
1557
- # PERMISSION_DENIED` if the requesting user is not permitted to view guardian
1558
- # information for the student identified by the `student_id`, if guardians are
1559
- # not enabled for the domain in question, or for other access errors. * `
1560
- # INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be
1561
- # recognized (it is not an email address, nor a `student_id` from the API, nor
1562
- # the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of
1563
- # the given student or `guardian_id`, or if the guardian has been disabled.
1657
+ # PERMISSION_DENIED` if no user that matches the provided `student_id` is
1658
+ # visible to the requesting user, if the requesting user is not permitted to
1659
+ # view guardian information for the student identified by the `student_id`, if
1660
+ # guardians are not enabled for the domain in question, or for other access
1661
+ # errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
1662
+ # cannot be recognized (it is not an email address, nor a `student_id` from the
1663
+ # API, nor the literal string `me`). * `NOT_FOUND` if the requesting user is
1664
+ # permitted to view guardians for the requested `student_id`, but no `Guardian`
1665
+ # record exists for that student that matches the provided `guardian_id`.
1564
1666
  # @param [String] student_id
1565
1667
  # The student whose guardian is being requested. One of the following: * the
1566
1668
  # numeric identifier for the user * the email address of the user * the string
@@ -1597,13 +1699,15 @@ module Google
1597
1699
 
1598
1700
  # Deletes a guardian. The guardian will no longer receive guardian notifications
1599
1701
  # and the guardian will no longer be accessible via the API. This method returns
1600
- # the following error codes: * `PERMISSION_DENIED` if the requesting user is not
1601
- # permitted to manage guardians for the student identified by the `student_id`,
1602
- # if guardians are not enabled for the domain in question, or for other access
1603
- # errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
1604
- # cannot be recognized (it is not an email address, nor a `student_id` from the
1605
- # API). * `NOT_FOUND` if Classroom cannot find any record of the given `
1606
- # student_id` or `guardian_id`, or if the guardian has already been disabled.
1702
+ # the following error codes: * `PERMISSION_DENIED` if no user that matches the
1703
+ # provided `student_id` is visible to the requesting user, if the requesting
1704
+ # user is not permitted to manage guardians for the student identified by the `
1705
+ # student_id`, if guardians are not enabled for the domain in question, or for
1706
+ # other access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but
1707
+ # its format cannot be recognized (it is not an email address, nor a `student_id`
1708
+ # from the API). * `NOT_FOUND` if the requesting user is permitted to modify
1709
+ # guardians for the requested `student_id`, but no `Guardian` record exists for
1710
+ # that student with the provided `guardian_id`.
1607
1711
  # @param [String] student_id
1608
1712
  # The student whose guardian is to be deleted. One of the following: * the
1609
1713
  # numeric identifier for the user * the email address of the user * the string