google-apis-classroom_v1 0.7.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f845afaef133a4a0c77e1754438dc282f5fcb40ebf5679a7fa8f486c5710f35
4
- data.tar.gz: df799258c7a035c32a53f0d371913d683d2ce875a292b27a821b851a22bc6252
3
+ metadata.gz: 3f0f20afb3445ea1a6bc2505015acb6f94decba603b79560f40fa4c326941c66
4
+ data.tar.gz: 0a08a25898250427a05ceebd90e22e269bd5aaf90eaf6c957766ea16c726c15b
5
5
  SHA512:
6
- metadata.gz: 57bd340d9d5716700838214e498d4d0f76b8712fa73913506eb21e138120dfc5f330569b38c28766a27c305fc630bdd98ff3b5418c8ffb321956239b4320f3a7
7
- data.tar.gz: f6162060906ba80775c304aefe0ea7166c4737a279f0ba711975a9e443be460ea7404cd47f661d5efb79ab00f89ea64bfb492186772cfe68d4977ca1026bb91d
6
+ metadata.gz: accad60bb7c2ddd248d3e12a24c0251ef4812d47cbd571297cbcfdcabbe3ac9dde33620659406f4636b26af26e238c5beeb134d36f46c43ab4fd4bb28632aa97
7
+ data.tar.gz: 9a9a7edbbd06ff80d4ad024f9d33c17072fe8450be42a664198bb505add0116b208881e2c38000e976b72dec1695d328a619988f919cdf816353beaec86c6f75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-classroom_v1
2
2
 
3
+ ### v0.11.0 (2022-02-04)
4
+
5
+ * Regenerated from discovery document revision 20220131
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.10.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.9.0 (2021-11-03)
13
+
14
+ * Regenerated from discovery document revision 20211029
15
+
16
+ ### v0.8.0 (2021-10-20)
17
+
18
+ * Unspecified changes
19
+
3
20
  ### v0.7.0 (2021-08-31)
4
21
 
5
22
  * Regenerated from discovery document revision 20210827
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/classroom_v1"
51
51
  client = Google::Apis::ClassroomV1::ClassroomService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Classroom service in particular.)
67
67
 
@@ -274,6 +274,12 @@ module Google
274
274
  # @return [String]
275
275
  attr_accessor :enrollment_code
276
276
 
277
+ # The gradebook settings for a course. See the [help center article](https://
278
+ # support.google.com/edu/classroom/answer/9184995) for details.
279
+ # Corresponds to the JSON property `gradebookSettings`
280
+ # @return [Google::Apis::ClassroomV1::GradebookSettings]
281
+ attr_accessor :gradebook_settings
282
+
277
283
  # Whether or not guardian notifications are enabled for this course. Read-only.
278
284
  # Corresponds to the JSON property `guardiansEnabled`
279
285
  # @return [Boolean]
@@ -350,6 +356,7 @@ module Google
350
356
  @description = args[:description] if args.key?(:description)
351
357
  @description_heading = args[:description_heading] if args.key?(:description_heading)
352
358
  @enrollment_code = args[:enrollment_code] if args.key?(:enrollment_code)
359
+ @gradebook_settings = args[:gradebook_settings] if args.key?(:gradebook_settings)
353
360
  @guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
354
361
  @id = args[:id] if args.key?(:id)
355
362
  @name = args[:name] if args.key?(:name)
@@ -530,10 +537,10 @@ module Google
530
537
  # day and time zone are either specified elsewhere or are insignificant. The
531
538
  # date is relative to the Gregorian Calendar. This can represent one of the
532
539
  # following: * A full date, with non-zero year, month, and day values * A month
533
- # and day value, with a zero year, such as an anniversary * A year on its own,
534
- # with zero month and day values * A year and month value, with a zero day, such
535
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
536
- # google.protobuf.Timestamp`.
540
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
541
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
542
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
543
+ # DateTime * google.protobuf.Timestamp
537
544
  # Corresponds to the JSON property `dueDate`
538
545
  # @return [Google::Apis::ClassroomV1::Date]
539
546
  attr_accessor :due_date
@@ -545,6 +552,14 @@ module Google
545
552
  # @return [Google::Apis::ClassroomV1::TimeOfDay]
546
553
  attr_accessor :due_time
547
554
 
555
+ # Details for a grade category in a course. Coursework may have zero or one
556
+ # grade category, and the category may be used in computing the overall grade.
557
+ # See the [help center article](https://support.google.com/edu/classroom/answer/
558
+ # 9184995) for details.
559
+ # Corresponds to the JSON property `gradeCategory`
560
+ # @return [Google::Apis::ClassroomV1::GradeCategory]
561
+ attr_accessor :grade_category
562
+
548
563
  # Classroom-assigned identifier of this course work, unique per course. Read-
549
564
  # only.
550
565
  # Corresponds to the JSON property `id`
@@ -628,6 +643,7 @@ module Google
628
643
  @description = args[:description] if args.key?(:description)
629
644
  @due_date = args[:due_date] if args.key?(:due_date)
630
645
  @due_time = args[:due_time] if args.key?(:due_time)
646
+ @grade_category = args[:grade_category] if args.key?(:grade_category)
631
647
  @id = args[:id] if args.key?(:id)
632
648
  @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
633
649
  @materials = args[:materials] if args.key?(:materials)
@@ -772,10 +788,10 @@ module Google
772
788
  # day and time zone are either specified elsewhere or are insignificant. The
773
789
  # date is relative to the Gregorian Calendar. This can represent one of the
774
790
  # following: * A full date, with non-zero year, month, and day values * A month
775
- # and day value, with a zero year, such as an anniversary * A year on its own,
776
- # with zero month and day values * A year and month value, with a zero day, such
777
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
778
- # google.protobuf.Timestamp`.
791
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
792
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
793
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
794
+ # DateTime * google.protobuf.Timestamp
779
795
  class Date
780
796
  include Google::Apis::Core::Hashable
781
797
 
@@ -983,6 +999,50 @@ module Google
983
999
  end
984
1000
  end
985
1001
 
1002
+ # Details for a grade category in a course. Coursework may have zero or one
1003
+ # grade category, and the category may be used in computing the overall grade.
1004
+ # See the [help center article](https://support.google.com/edu/classroom/answer/
1005
+ # 9184995) for details.
1006
+ class GradeCategory
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ # Default value of denominator. Only applicable when grade calculation type is
1010
+ # TOTAL_POINTS.
1011
+ # Corresponds to the JSON property `defaultGradeDenominator`
1012
+ # @return [Fixnum]
1013
+ attr_accessor :default_grade_denominator
1014
+
1015
+ # ID of the grade category.
1016
+ # Corresponds to the JSON property `id`
1017
+ # @return [String]
1018
+ attr_accessor :id
1019
+
1020
+ # Name of the grade category.
1021
+ # Corresponds to the JSON property `name`
1022
+ # @return [String]
1023
+ attr_accessor :name
1024
+
1025
+ # The weight of the category average as part of overall average. A weight of 12.
1026
+ # 34% is represented as 123400 (100% is 1,000,000). The last two digits should
1027
+ # always be zero since we use two decimal precision. Only applicable when grade
1028
+ # calculation type is WEIGHTED_CATEGORIES.
1029
+ # Corresponds to the JSON property `weight`
1030
+ # @return [Fixnum]
1031
+ attr_accessor :weight
1032
+
1033
+ def initialize(**args)
1034
+ update!(**args)
1035
+ end
1036
+
1037
+ # Update properties of this object
1038
+ def update!(**args)
1039
+ @default_grade_denominator = args[:default_grade_denominator] if args.key?(:default_grade_denominator)
1040
+ @id = args[:id] if args.key?(:id)
1041
+ @name = args[:name] if args.key?(:name)
1042
+ @weight = args[:weight] if args.key?(:weight)
1043
+ end
1044
+ end
1045
+
986
1046
  # The history of each grade on this submission.
987
1047
  class GradeHistory
988
1048
  include Google::Apis::Core::Hashable
@@ -1026,6 +1086,38 @@ module Google
1026
1086
  end
1027
1087
  end
1028
1088
 
1089
+ # The gradebook settings for a course. See the [help center article](https://
1090
+ # support.google.com/edu/classroom/answer/9184995) for details.
1091
+ class GradebookSettings
1092
+ include Google::Apis::Core::Hashable
1093
+
1094
+ # Indicates how the overall grade is calculated.
1095
+ # Corresponds to the JSON property `calculationType`
1096
+ # @return [String]
1097
+ attr_accessor :calculation_type
1098
+
1099
+ # Indicates who can see the overall grade..
1100
+ # Corresponds to the JSON property `displaySetting`
1101
+ # @return [String]
1102
+ attr_accessor :display_setting
1103
+
1104
+ # Grade categories that are available for coursework in the course.
1105
+ # Corresponds to the JSON property `gradeCategories`
1106
+ # @return [Array<Google::Apis::ClassroomV1::GradeCategory>]
1107
+ attr_accessor :grade_categories
1108
+
1109
+ def initialize(**args)
1110
+ update!(**args)
1111
+ end
1112
+
1113
+ # Update properties of this object
1114
+ def update!(**args)
1115
+ @calculation_type = args[:calculation_type] if args.key?(:calculation_type)
1116
+ @display_setting = args[:display_setting] if args.key?(:display_setting)
1117
+ @grade_categories = args[:grade_categories] if args.key?(:grade_categories)
1118
+ end
1119
+ end
1120
+
1029
1121
  # Association between a student and a guardian of that student. The guardian may
1030
1122
  # receive information about the student's course work.
1031
1123
  class Guardian
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ClassroomV1
18
18
  # Version of the google-apis-classroom_v1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210827"
25
+ REVISION = "20220131"
26
26
  end
27
27
  end
28
28
  end
@@ -142,12 +142,24 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class GradeCategory
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class GradeHistory
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class GradebookSettings
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class Guardian
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -458,6 +470,8 @@ module Google
458
470
  property :description, as: 'description'
459
471
  property :description_heading, as: 'descriptionHeading'
460
472
  property :enrollment_code, as: 'enrollmentCode'
473
+ property :gradebook_settings, as: 'gradebookSettings', class: Google::Apis::ClassroomV1::GradebookSettings, decorator: Google::Apis::ClassroomV1::GradebookSettings::Representation
474
+
461
475
  property :guardians_enabled, as: 'guardiansEnabled'
462
476
  property :id, as: 'id'
463
477
  property :name, as: 'name'
@@ -524,6 +538,8 @@ module Google
524
538
 
525
539
  property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
526
540
 
541
+ property :grade_category, as: 'gradeCategory', class: Google::Apis::ClassroomV1::GradeCategory, decorator: Google::Apis::ClassroomV1::GradeCategory::Representation
542
+
527
543
  property :id, as: 'id'
528
544
  property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
529
545
 
@@ -633,6 +649,16 @@ module Google
633
649
  end
634
650
  end
635
651
 
652
+ class GradeCategory
653
+ # @private
654
+ class Representation < Google::Apis::Core::JsonRepresentation
655
+ property :default_grade_denominator, as: 'defaultGradeDenominator'
656
+ property :id, as: 'id'
657
+ property :name, as: 'name'
658
+ property :weight, as: 'weight'
659
+ end
660
+ end
661
+
636
662
  class GradeHistory
637
663
  # @private
638
664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -644,6 +670,16 @@ module Google
644
670
  end
645
671
  end
646
672
 
673
+ class GradebookSettings
674
+ # @private
675
+ class Representation < Google::Apis::Core::JsonRepresentation
676
+ property :calculation_type, as: 'calculationType'
677
+ property :display_setting, as: 'displaySetting'
678
+ collection :grade_categories, as: 'gradeCategories', class: Google::Apis::ClassroomV1::GradeCategory, decorator: Google::Apis::ClassroomV1::GradeCategory::Representation
679
+
680
+ end
681
+ end
682
+
647
683
  class Guardian
648
684
  # @private
649
685
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1784,14 +1784,14 @@ module Google
1784
1784
  execute_or_queue_command(command, &block)
1785
1785
  end
1786
1786
 
1787
- # Deletes a teacher of a course. This method returns the following error codes: *
1788
- # `PERMISSION_DENIED` if the requesting user is not permitted to delete
1789
- # teachers of this course or for access errors. * `NOT_FOUND` if no teacher of
1790
- # this course has the requested ID or if the course does not exist. * `
1791
- # FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of
1792
- # this course. * `FAILED_PRECONDITION` if the requested ID belongs to the owner
1793
- # of the course Drive folder. * `FAILED_PRECONDITION` if the course no longer
1794
- # has an active owner.
1787
+ # Removes the specified teacher from the specified course. This method returns
1788
+ # the following error codes: * `PERMISSION_DENIED` if the requesting user is not
1789
+ # permitted to delete teachers of this course or for access errors. * `NOT_FOUND`
1790
+ # if no teacher of this course has the requested ID or if the course does not
1791
+ # exist. * `FAILED_PRECONDITION` if the requested ID belongs to the primary
1792
+ # teacher of this course. * `FAILED_PRECONDITION` if the requested ID belongs to
1793
+ # the owner of the course Drive folder. * `FAILED_PRECONDITION` if the course no
1794
+ # longer has an active owner.
1795
1795
  # @param [String] course_id
1796
1796
  # Identifier of the course. This identifier can be either the Classroom-assigned
1797
1797
  # identifier or an alias.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-classroom_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2022-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-classroom_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-classroom_v1/v0.7.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-classroom_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-classroom_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-classroom_v1/v0.11.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-classroom_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Classroom API V1