google-api-client 0.44.2 → 0.45.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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/generated/google/apis/admob_v1.rb +4 -1
  4. data/generated/google/apis/admob_v1/classes.rb +2 -2
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/apigee_v1.rb +1 -1
  9. data/generated/google/apis/apigee_v1/classes.rb +206 -2
  10. data/generated/google/apis/apigee_v1/representations.rb +74 -0
  11. data/generated/google/apis/apigee_v1/service.rb +41 -19
  12. data/generated/google/apis/appengine_v1.rb +1 -1
  13. data/generated/google/apis/appengine_v1beta.rb +1 -1
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  16. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
  17. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  18. data/generated/google/apis/assuredworkloads_v1beta1.rb +34 -0
  19. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
  20. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
  21. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  22. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  23. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
  24. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  25. data/generated/google/apis/chat_v1.rb +1 -1
  26. data/generated/google/apis/chat_v1/classes.rb +3 -3
  27. data/generated/google/apis/classroom_v1.rb +7 -1
  28. data/generated/google/apis/classroom_v1/classes.rb +132 -0
  29. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  30. data/generated/google/apis/classroom_v1/service.rb +240 -0
  31. data/generated/google/apis/cloudasset_v1.rb +1 -1
  32. data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
  33. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  34. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  35. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +4 -2
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
  38. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  39. data/generated/google/apis/cloudidentity_v1/classes.rb +84 -0
  40. data/generated/google/apis/cloudidentity_v1/representations.rb +46 -0
  41. data/generated/google/apis/cloudidentity_v1/service.rb +39 -1
  42. data/generated/google/apis/cloudkms_v1.rb +1 -1
  43. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  44. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  45. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  46. data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
  47. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  48. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  49. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
  50. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  51. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  52. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
  53. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  54. data/generated/google/apis/container_v1beta1.rb +1 -1
  55. data/generated/google/apis/container_v1beta1/classes.rb +28 -0
  56. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  57. data/generated/google/apis/content_v2_1.rb +1 -1
  58. data/generated/google/apis/content_v2_1/classes.rb +1 -1
  59. data/generated/google/apis/customsearch_v1.rb +1 -1
  60. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  61. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  62. data/generated/google/apis/dataflow_v1b3/classes.rb +135 -0
  63. data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
  64. data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
  65. data/generated/google/apis/dataproc_v1.rb +1 -1
  66. data/generated/google/apis/dataproc_v1/classes.rb +3 -3
  67. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  68. data/generated/google/apis/dataproc_v1beta2/classes.rb +5 -4
  69. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  70. data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
  71. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  72. data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
  73. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  74. data/generated/google/apis/dialogflow_v3beta1/classes.rb +18 -0
  75. data/generated/google/apis/dialogflow_v3beta1/representations.rb +2 -0
  76. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  77. data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
  78. data/generated/google/apis/healthcare_v1.rb +1 -1
  79. data/generated/google/apis/healthcare_v1/service.rb +1 -3
  80. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  81. data/generated/google/apis/healthcare_v1beta1/classes.rb +7 -0
  82. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -0
  83. data/generated/google/apis/healthcare_v1beta1/service.rb +1 -3
  84. data/generated/google/apis/iam_v1.rb +1 -1
  85. data/generated/google/apis/iam_v1/service.rb +2 -1
  86. data/generated/google/apis/licensing_v1.rb +4 -3
  87. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  88. data/generated/google/apis/licensing_v1/service.rb +55 -85
  89. data/generated/google/apis/monitoring_v1.rb +1 -1
  90. data/generated/google/apis/monitoring_v1/classes.rb +10 -10
  91. data/generated/google/apis/monitoring_v3.rb +1 -1
  92. data/generated/google/apis/monitoring_v3/classes.rb +36 -30
  93. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  94. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
  95. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +7 -0
  98. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  99. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  100. data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
  101. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  102. data/generated/google/apis/pubsublite_v1.rb +1 -1
  103. data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
  104. data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
  105. data/generated/google/apis/pubsublite_v1/service.rb +33 -0
  106. data/generated/google/apis/redis_v1.rb +1 -1
  107. data/generated/google/apis/redis_v1/classes.rb +0 -386
  108. data/generated/google/apis/redis_v1/representations.rb +0 -139
  109. data/generated/google/apis/redis_v1beta1.rb +1 -1
  110. data/generated/google/apis/redis_v1beta1/classes.rb +0 -386
  111. data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
  112. data/generated/google/apis/reseller_v1.rb +2 -2
  113. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  114. data/generated/google/apis/reseller_v1/service.rb +122 -173
  115. data/generated/google/apis/run_v1.rb +1 -1
  116. data/generated/google/apis/run_v1/classes.rb +8 -8
  117. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  118. data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
  119. data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
  120. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  121. data/generated/google/apis/secretmanager_v1.rb +1 -1
  122. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  123. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
  124. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
  125. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  126. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -5
  127. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  128. data/generated/google/apis/servicecontrol_v2/classes.rb +7 -4
  129. data/generated/google/apis/sheets_v4.rb +1 -1
  130. data/generated/google/apis/sheets_v4/classes.rb +1 -1
  131. data/generated/google/apis/spanner_v1.rb +1 -1
  132. data/generated/google/apis/spanner_v1/classes.rb +7 -0
  133. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  134. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  135. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +142 -97
  136. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +104 -87
  137. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
  138. data/generated/google/apis/tagmanager_v2.rb +1 -1
  139. data/generated/google/apis/tasks_v1.rb +1 -1
  140. data/generated/google/apis/tasks_v1/classes.rb +1 -1
  141. data/generated/google/apis/tasks_v1/service.rb +4 -3
  142. data/generated/google/apis/testing_v1.rb +1 -1
  143. data/generated/google/apis/testing_v1/classes.rb +2 -2
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_v3.rb +1 -1
  146. data/generated/google/apis/youtube_v3/classes.rb +46 -845
  147. data/generated/google/apis/youtube_v3/representations.rb +0 -390
  148. data/generated/google/apis/youtube_v3/service.rb +2 -197
  149. data/lib/google/apis/version.rb +1 -1
  150. metadata +11 -11
  151. data/generated/google/apis/plus_v1.rb +0 -43
  152. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  153. data/generated/google/apis/plus_v1/representations.rb +0 -907
  154. data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
27
27
  module BillingbudgetsV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20200821'
29
+ REVISION = '20200912'
30
30
 
31
31
  # View and manage your Google Cloud Platform billing accounts
32
32
  AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'
@@ -27,12 +27,21 @@ module Google
27
27
  class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
+ # Optional. When set to true, disables default notifications sent when a
31
+ # threshold is exceeded. Default notifications are sent to those with Billing
32
+ # Account Administrator and Billing Account User IAM roles for the target
33
+ # account.
34
+ # Corresponds to the JSON property `disableDefaultIamRecipients`
35
+ # @return [Boolean]
36
+ attr_accessor :disable_default_iam_recipients
37
+ alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
38
+
30
39
  # Optional. Targets to send notifications to when a threshold is exceeded. This
31
- # is in addition to default recipients who have billing account roles. The value
32
- # is the full REST resource name of a monitoring notification channel with the
33
- # form `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
34
- # channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-
35
- # notification-recipients for more details.
40
+ # is in addition to default recipients who have billing account IAM roles. The
41
+ # value is the full REST resource name of a monitoring notification channel with
42
+ # the form `projects/`project_id`/notificationChannels/`channel_id``. A maximum
43
+ # of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/
44
+ # budgets-notification-recipients for more details.
36
45
  # Corresponds to the JSON property `monitoringNotificationChannels`
37
46
  # @return [Array<String>]
38
47
  attr_accessor :monitoring_notification_channels
@@ -64,6 +73,7 @@ module Google
64
73
 
65
74
  # Update properties of this object
66
75
  def update!(**args)
76
+ @disable_default_iam_recipients = args[:disable_default_iam_recipients] if args.key?(:disable_default_iam_recipients)
67
77
  @monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
68
78
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
69
79
  @schema_version = args[:schema_version] if args.key?(:schema_version)
@@ -91,6 +91,7 @@ module Google
91
91
  class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
92
92
  # @private
93
93
  class Representation < Google::Apis::Core::JsonRepresentation
94
+ property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients'
94
95
  collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
95
96
  property :pubsub_topic, as: 'pubsubTopic'
96
97
  property :schema_version, as: 'schemaVersion'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/hangouts/chat
26
26
  module ChatV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200801'
28
+ REVISION = '20200909'
29
29
  end
30
30
  end
31
31
  end
@@ -332,7 +332,7 @@ module Google
332
332
  end
333
333
  end
334
334
 
335
- # Hangouts Chat events.
335
+ # Google Chat events.
336
336
  class DeprecatedEvent
337
337
  include Google::Apis::Core::Hashable
338
338
 
@@ -343,7 +343,7 @@ module Google
343
343
  attr_accessor :action
344
344
 
345
345
  # The URL the bot should redirect the user to after they have completed an
346
- # authorization or configuration flow outside of Hangouts Chat. See the [
346
+ # authorization or configuration flow outside of Google Chat. See the [
347
347
  # Authorizing access to 3p services guide](/hangouts/chat/how-tos/auth-3p) for
348
348
  # more information.
349
349
  # Corresponds to the JSON property `configCompleteRedirectUrl`
@@ -373,7 +373,7 @@ module Google
373
373
 
374
374
  # A secret value that bots can use to verify if a request is from Google. The
375
375
  # token is randomly generated by Google, remains static, and can be obtained
376
- # from the Hangouts Chat API configuration page in the Cloud Console. Developers
376
+ # from the Google Chat API configuration page in the Cloud Console. Developers
377
377
  # can revoke/regenerate it if needed from the same page.
378
378
  # Corresponds to the JSON property `token`
379
379
  # @return [String]
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/classroom/
26
26
  module ClassroomV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200801'
28
+ REVISION = '20200915'
29
29
 
30
30
  # View and manage announcements in Google Classroom
31
31
  AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@@ -51,6 +51,12 @@ module Google
51
51
  # View course work and grades for students in the Google Classroom classes you teach or administer
52
52
  AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
53
53
 
54
+ # See, edit, and create classwork materials in Google Classroom
55
+ AUTH_CLASSROOM_COURSEWORKMATERIALS = 'https://www.googleapis.com/auth/classroom.courseworkmaterials'
56
+
57
+ # See all classwork materials for your Google Classroom classes
58
+ AUTH_CLASSROOM_COURSEWORKMATERIALS_READONLY = 'https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly'
59
+
54
60
  # View your Google Classroom guardians
55
61
  AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
56
62
 
@@ -662,6 +662,112 @@ module Google
662
662
  end
663
663
  end
664
664
 
665
+ # Course work material created by a teacher for students of the course
666
+ class CourseWorkMaterial
667
+ include Google::Apis::Core::Hashable
668
+
669
+ # Absolute link to this course work material in the Classroom web UI. This is
670
+ # only populated if `state` is `PUBLISHED`. Read-only.
671
+ # Corresponds to the JSON property `alternateLink`
672
+ # @return [String]
673
+ attr_accessor :alternate_link
674
+
675
+ # Assignee mode of the course work material. If unspecified, the default value
676
+ # is `ALL_STUDENTS`.
677
+ # Corresponds to the JSON property `assigneeMode`
678
+ # @return [String]
679
+ attr_accessor :assignee_mode
680
+
681
+ # Identifier of the course. Read-only.
682
+ # Corresponds to the JSON property `courseId`
683
+ # @return [String]
684
+ attr_accessor :course_id
685
+
686
+ # Timestamp when this course work material was created. Read-only.
687
+ # Corresponds to the JSON property `creationTime`
688
+ # @return [String]
689
+ attr_accessor :creation_time
690
+
691
+ # Identifier for the user that created the course work material. Read-only.
692
+ # Corresponds to the JSON property `creatorUserId`
693
+ # @return [String]
694
+ attr_accessor :creator_user_id
695
+
696
+ # Optional description of this course work material. The text must be a valid
697
+ # UTF-8 string containing no more than 30,000 characters.
698
+ # Corresponds to the JSON property `description`
699
+ # @return [String]
700
+ attr_accessor :description
701
+
702
+ # Classroom-assigned identifier of this course work material, unique per course.
703
+ # Read-only.
704
+ # Corresponds to the JSON property `id`
705
+ # @return [String]
706
+ attr_accessor :id
707
+
708
+ # Assignee details about a coursework/announcement. This field is set if and
709
+ # only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
710
+ # Corresponds to the JSON property `individualStudentsOptions`
711
+ # @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
712
+ attr_accessor :individual_students_options
713
+
714
+ # Additional materials. A course work material must have no more than 20
715
+ # material items.
716
+ # Corresponds to the JSON property `materials`
717
+ # @return [Array<Google::Apis::ClassroomV1::Material>]
718
+ attr_accessor :materials
719
+
720
+ # Optional timestamp when this course work material is scheduled to be published.
721
+ # Corresponds to the JSON property `scheduledTime`
722
+ # @return [String]
723
+ attr_accessor :scheduled_time
724
+
725
+ # Status of this course work material. If unspecified, the default state is `
726
+ # DRAFT`.
727
+ # Corresponds to the JSON property `state`
728
+ # @return [String]
729
+ attr_accessor :state
730
+
731
+ # Title of this course work material. The title must be a valid UTF-8 string
732
+ # containing between 1 and 3000 characters.
733
+ # Corresponds to the JSON property `title`
734
+ # @return [String]
735
+ attr_accessor :title
736
+
737
+ # Identifier for the topic that this course work material is associated with.
738
+ # Must match an existing topic in the course.
739
+ # Corresponds to the JSON property `topicId`
740
+ # @return [String]
741
+ attr_accessor :topic_id
742
+
743
+ # Timestamp of the most recent change to this course work material. Read-only.
744
+ # Corresponds to the JSON property `updateTime`
745
+ # @return [String]
746
+ attr_accessor :update_time
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
755
+ @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
756
+ @course_id = args[:course_id] if args.key?(:course_id)
757
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
758
+ @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
759
+ @description = args[:description] if args.key?(:description)
760
+ @id = args[:id] if args.key?(:id)
761
+ @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
762
+ @materials = args[:materials] if args.key?(:materials)
763
+ @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
764
+ @state = args[:state] if args.key?(:state)
765
+ @title = args[:title] if args.key?(:title)
766
+ @topic_id = args[:topic_id] if args.key?(:topic_id)
767
+ @update_time = args[:update_time] if args.key?(:update_time)
768
+ end
769
+ end
770
+
665
771
  # Represents a whole or partial calendar date, e.g. a birthday. The time of day
666
772
  # and time zone are either specified elsewhere or are not significant. The date
667
773
  # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
@@ -1148,6 +1254,32 @@ module Google
1148
1254
  end
1149
1255
  end
1150
1256
 
1257
+ # Response when listing course work material.
1258
+ class ListCourseWorkMaterialResponse
1259
+ include Google::Apis::Core::Hashable
1260
+
1261
+ # Course work material items that match the request.
1262
+ # Corresponds to the JSON property `courseWorkMaterial`
1263
+ # @return [Array<Google::Apis::ClassroomV1::CourseWorkMaterial>]
1264
+ attr_accessor :course_work_material
1265
+
1266
+ # Token identifying the next page of results to return. If empty, no further
1267
+ # results are available.
1268
+ # Corresponds to the JSON property `nextPageToken`
1269
+ # @return [String]
1270
+ attr_accessor :next_page_token
1271
+
1272
+ def initialize(**args)
1273
+ update!(**args)
1274
+ end
1275
+
1276
+ # Update properties of this object
1277
+ def update!(**args)
1278
+ @course_work_material = args[:course_work_material] if args.key?(:course_work_material)
1279
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1280
+ end
1281
+ end
1282
+
1151
1283
  # Response when listing course work.
1152
1284
  class ListCourseWorkResponse
1153
1285
  include Google::Apis::Core::Hashable
@@ -94,6 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class CourseWorkMaterial
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
97
103
  class Date
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class ListCourseWorkMaterialResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class ListCourseWorkResponse
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -537,6 +549,28 @@ module Google
537
549
  end
538
550
  end
539
551
 
552
+ class CourseWorkMaterial
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :alternate_link, as: 'alternateLink'
556
+ property :assignee_mode, as: 'assigneeMode'
557
+ property :course_id, as: 'courseId'
558
+ property :creation_time, as: 'creationTime'
559
+ property :creator_user_id, as: 'creatorUserId'
560
+ property :description, as: 'description'
561
+ property :id, as: 'id'
562
+ property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
563
+
564
+ collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
565
+
566
+ property :scheduled_time, as: 'scheduledTime'
567
+ property :state, as: 'state'
568
+ property :title, as: 'title'
569
+ property :topic_id, as: 'topicId'
570
+ property :update_time, as: 'updateTime'
571
+ end
572
+ end
573
+
540
574
  class Date
541
575
  # @private
542
576
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +710,15 @@ module Google
676
710
  end
677
711
  end
678
712
 
713
+ class ListCourseWorkMaterialResponse
714
+ # @private
715
+ class Representation < Google::Apis::Core::JsonRepresentation
716
+ collection :course_work_material, as: 'courseWorkMaterial', class: Google::Apis::ClassroomV1::CourseWorkMaterial, decorator: Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
717
+
718
+ property :next_page_token, as: 'nextPageToken'
719
+ end
720
+ end
721
+
679
722
  class ListCourseWorkResponse
680
723
  # @private
681
724
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1335,6 +1335,246 @@ module Google
1335
1335
  execute_or_queue_command(command, &block)
1336
1336
  end
1337
1337
 
1338
+ # Creates a course work material. This method returns the following error codes:
1339
+ # * `PERMISSION_DENIED` if the requesting user is not permitted to access the
1340
+ # requested course, create course work material in the requested course, share a
1341
+ # Drive attachment, or for access errors. * `INVALID_ARGUMENT` if the request is
1342
+ # malformed or if more than 20 * materials are provided. * `NOT_FOUND` if the
1343
+ # requested course does not exist. * `FAILED_PRECONDITION` for the following
1344
+ # request error: * AttachmentNotVisible
1345
+ # @param [String] course_id
1346
+ # Identifier of the course. This identifier can be either the Classroom-assigned
1347
+ # identifier or an alias.
1348
+ # @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_object
1349
+ # @param [String] fields
1350
+ # Selector specifying which fields to include in a partial response.
1351
+ # @param [String] quota_user
1352
+ # Available to use for quota purposes for server-side applications. Can be any
1353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1354
+ # @param [Google::Apis::RequestOptions] options
1355
+ # Request-specific options
1356
+ #
1357
+ # @yield [result, err] Result & error if block supplied
1358
+ # @yieldparam result [Google::Apis::ClassroomV1::CourseWorkMaterial] parsed result object
1359
+ # @yieldparam err [StandardError] error object if request failed
1360
+ #
1361
+ # @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
1362
+ #
1363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1366
+ def create_course_course_work_material(course_id, course_work_material_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1367
+ command = make_simple_command(:post, 'v1/courses/{courseId}/courseWorkMaterials', options)
1368
+ command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
1369
+ command.request_object = course_work_material_object
1370
+ command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
1371
+ command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
1372
+ command.params['courseId'] = course_id unless course_id.nil?
1373
+ command.query['fields'] = fields unless fields.nil?
1374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1375
+ execute_or_queue_command(command, &block)
1376
+ end
1377
+
1378
+ # Deletes a course work material. This request must be made by the Developer
1379
+ # Console project of the [OAuth client ID](https://support.google.com/cloud/
1380
+ # answer/6158849) used to create the corresponding course work material item.
1381
+ # This method returns the following error codes: * `PERMISSION_DENIED` if the
1382
+ # requesting developer project did not create the corresponding course work
1383
+ # material, if the requesting user is not permitted to delete the requested
1384
+ # course or for access errors. * `FAILED_PRECONDITION` if the requested course
1385
+ # work material has already been deleted. * `NOT_FOUND` if no course exists with
1386
+ # the requested ID.
1387
+ # @param [String] course_id
1388
+ # Identifier of the course. This identifier can be either the Classroom-assigned
1389
+ # identifier or an alias.
1390
+ # @param [String] id
1391
+ # Identifier of the course work material to delete. This identifier is a
1392
+ # Classroom-assigned identifier.
1393
+ # @param [String] fields
1394
+ # Selector specifying which fields to include in a partial response.
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::ClassroomV1::Empty]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ def delete_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
1411
+ command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
1412
+ command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
1413
+ command.response_class = Google::Apis::ClassroomV1::Empty
1414
+ command.params['courseId'] = course_id unless course_id.nil?
1415
+ command.params['id'] = id unless id.nil?
1416
+ command.query['fields'] = fields unless fields.nil?
1417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1418
+ execute_or_queue_command(command, &block)
1419
+ end
1420
+
1421
+ # Returns a course work material. This method returns the following error codes:
1422
+ # * `PERMISSION_DENIED` if the requesting user is not permitted to access the
1423
+ # requested course or course work material, or for access errors. * `
1424
+ # INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested
1425
+ # course or course work material does not exist.
1426
+ # @param [String] course_id
1427
+ # Identifier of the course. This identifier can be either the Classroom-assigned
1428
+ # identifier or an alias.
1429
+ # @param [String] id
1430
+ # Identifier of the course work material.
1431
+ # @param [String] fields
1432
+ # Selector specifying which fields to include in a partial response.
1433
+ # @param [String] quota_user
1434
+ # Available to use for quota purposes for server-side applications. Can be any
1435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1436
+ # @param [Google::Apis::RequestOptions] options
1437
+ # Request-specific options
1438
+ #
1439
+ # @yield [result, err] Result & error if block supplied
1440
+ # @yieldparam result [Google::Apis::ClassroomV1::CourseWorkMaterial] parsed result object
1441
+ # @yieldparam err [StandardError] error object if request failed
1442
+ #
1443
+ # @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
1444
+ #
1445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1448
+ def get_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
1449
+ command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
1450
+ command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
1451
+ command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
1452
+ command.params['courseId'] = course_id unless course_id.nil?
1453
+ command.params['id'] = id unless id.nil?
1454
+ command.query['fields'] = fields unless fields.nil?
1455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1456
+ execute_or_queue_command(command, &block)
1457
+ end
1458
+
1459
+ # Returns a list of course work material that the requester is permitted to view.
1460
+ # Course students may only view `PUBLISHED` course work material. Course
1461
+ # teachers and domain administrators may view all course work material. This
1462
+ # method returns the following error codes: * `PERMISSION_DENIED` if the
1463
+ # requesting user is not permitted to access the requested course or for access
1464
+ # errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
1465
+ # requested course does not exist.
1466
+ # @param [String] course_id
1467
+ # Identifier of the course. This identifier can be either the Classroom-assigned
1468
+ # identifier or an alias.
1469
+ # @param [Array<String>, String] course_work_material_states
1470
+ # Restriction on the work status to return. Only course work material that
1471
+ # matches is returned. If unspecified, items with a work status of `PUBLISHED`
1472
+ # is returned.
1473
+ # @param [String] material_drive_id
1474
+ # Optional filtering for course work material with at least one Drive material
1475
+ # whose ID matches the provided string. If `material_link` is also specified,
1476
+ # course work material must have materials matching both filters.
1477
+ # @param [String] material_link
1478
+ # Optional filtering for course work material with at least one link material
1479
+ # whose URL partially matches the provided string.
1480
+ # @param [String] order_by
1481
+ # Optional sort ordering for results. A comma-separated list of fields with an
1482
+ # optional sort direction keyword. Supported field is `updateTime`. Supported
1483
+ # direction keywords are `asc` and `desc`. If not specified, `updateTime desc`
1484
+ # is the default behavior. Examples: `updateTime asc`, `updateTime`
1485
+ # @param [Fixnum] page_size
1486
+ # Maximum number of items to return. Zero or unspecified indicates that the
1487
+ # server may assign a maximum. The server may return fewer than the specified
1488
+ # number of results.
1489
+ # @param [String] page_token
1490
+ # nextPageToken value returned from a previous list call, indicating that the
1491
+ # subsequent page of results should be returned. The list request must be
1492
+ # otherwise identical to the one that resulted in this token.
1493
+ # @param [String] fields
1494
+ # Selector specifying which fields to include in a partial response.
1495
+ # @param [String] quota_user
1496
+ # Available to use for quota purposes for server-side applications. Can be any
1497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1498
+ # @param [Google::Apis::RequestOptions] options
1499
+ # Request-specific options
1500
+ #
1501
+ # @yield [result, err] Result & error if block supplied
1502
+ # @yieldparam result [Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse] parsed result object
1503
+ # @yieldparam err [StandardError] error object if request failed
1504
+ #
1505
+ # @return [Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse]
1506
+ #
1507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1510
+ def list_course_course_work_materials(course_id, course_work_material_states: nil, material_drive_id: nil, material_link: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1511
+ command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials', options)
1512
+ command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse::Representation
1513
+ command.response_class = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse
1514
+ command.params['courseId'] = course_id unless course_id.nil?
1515
+ command.query['courseWorkMaterialStates'] = course_work_material_states unless course_work_material_states.nil?
1516
+ command.query['materialDriveId'] = material_drive_id unless material_drive_id.nil?
1517
+ command.query['materialLink'] = material_link unless material_link.nil?
1518
+ command.query['orderBy'] = order_by unless order_by.nil?
1519
+ command.query['pageSize'] = page_size unless page_size.nil?
1520
+ command.query['pageToken'] = page_token unless page_token.nil?
1521
+ command.query['fields'] = fields unless fields.nil?
1522
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1523
+ execute_or_queue_command(command, &block)
1524
+ end
1525
+
1526
+ # Updates one or more fields of a course work material. This method returns the
1527
+ # following error codes: * `PERMISSION_DENIED` if the requesting developer
1528
+ # project for access errors. * `INVALID_ARGUMENT` if the request is malformed. *
1529
+ # `FAILED_PRECONDITION` if the requested course work material has already been
1530
+ # deleted. * `NOT_FOUND` if the requested course or course work material does
1531
+ # not exist
1532
+ # @param [String] course_id
1533
+ # Identifier of the course. This identifier can be either the Classroom-assigned
1534
+ # identifier or an alias.
1535
+ # @param [String] id
1536
+ # Identifier of the course work material.
1537
+ # @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_object
1538
+ # @param [String] update_mask
1539
+ # Mask that identifies which fields on the course work material to update. This
1540
+ # field is required to do an update. The update fails if invalid fields are
1541
+ # specified. If a field supports empty values, it can be cleared by specifying
1542
+ # it in the update mask and not in the course work material object. If a field
1543
+ # that does not support empty values is included in the update mask and not set
1544
+ # in the course work material object, an `INVALID_ARGUMENT` error is returned.
1545
+ # The following fields may be specified by teachers: * `title` * `description` *
1546
+ # `state` * `scheduled_time` * `topic_id`
1547
+ # @param [String] fields
1548
+ # Selector specifying which fields to include in a partial response.
1549
+ # @param [String] quota_user
1550
+ # Available to use for quota purposes for server-side applications. Can be any
1551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1552
+ # @param [Google::Apis::RequestOptions] options
1553
+ # Request-specific options
1554
+ #
1555
+ # @yield [result, err] Result & error if block supplied
1556
+ # @yieldparam result [Google::Apis::ClassroomV1::CourseWorkMaterial] parsed result object
1557
+ # @yieldparam err [StandardError] error object if request failed
1558
+ #
1559
+ # @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
1560
+ #
1561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1564
+ def patch_course_course_work_material(course_id, id, course_work_material_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1565
+ command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
1566
+ command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
1567
+ command.request_object = course_work_material_object
1568
+ command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
1569
+ command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
1570
+ command.params['courseId'] = course_id unless course_id.nil?
1571
+ command.params['id'] = id unless id.nil?
1572
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1573
+ command.query['fields'] = fields unless fields.nil?
1574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1575
+ execute_or_queue_command(command, &block)
1576
+ end
1577
+
1338
1578
  # Adds a user as a student of a course. This method returns the following error
1339
1579
  # codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create
1340
1580
  # students in this course or for access errors. * `NOT_FOUND` if the requested