google-api-client 0.9.8 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
|
@@ -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 = '
|
|
28
|
+
REVISION = '20160913'
|
|
29
29
|
|
|
30
30
|
# Manage your calendars
|
|
31
31
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
|
@@ -20,12 +20,13 @@ module Google
|
|
|
20
20
|
module Apis
|
|
21
21
|
# Google Civic Information API
|
|
22
22
|
#
|
|
23
|
-
#
|
|
23
|
+
# Provides polling places, early vote locations, contest data, election
|
|
24
|
+
# officials, and government representatives for U.S. residential addresses.
|
|
24
25
|
#
|
|
25
26
|
# @see https://developers.google.com/civic-information
|
|
26
27
|
module CivicinfoV2
|
|
27
28
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
29
|
+
REVISION = '20160823'
|
|
29
30
|
end
|
|
30
31
|
end
|
|
31
32
|
end
|
|
@@ -79,6 +79,11 @@ module Google
|
|
|
79
79
|
# @return [String]
|
|
80
80
|
attr_accessor :absentee_voting_info_url
|
|
81
81
|
|
|
82
|
+
#
|
|
83
|
+
# Corresponds to the JSON property `addressLines`
|
|
84
|
+
# @return [Array<String>]
|
|
85
|
+
attr_accessor :address_lines
|
|
86
|
+
|
|
82
87
|
# A URL provided by this administrative body to give contest information to the
|
|
83
88
|
# voter.
|
|
84
89
|
# Corresponds to the JSON property `ballotInfoUrl`
|
|
@@ -151,6 +156,7 @@ module Google
|
|
|
151
156
|
# Update properties of this object
|
|
152
157
|
def update!(**args)
|
|
153
158
|
@absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
|
|
159
|
+
@address_lines = args[:address_lines] if args.key?(:address_lines)
|
|
154
160
|
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
|
|
155
161
|
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
|
|
156
162
|
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
|
|
@@ -316,9 +322,8 @@ module Google
|
|
|
316
322
|
attr_accessor :primary_party
|
|
317
323
|
|
|
318
324
|
# The set of ballot responses for the referendum. A ballot response represents a
|
|
319
|
-
# line on the ballot. Common examples might include "yes" or "no" for referenda
|
|
320
|
-
#
|
|
321
|
-
# contests of type 'Referendum'.
|
|
325
|
+
# line on the ballot. Common examples might include "yes" or "no" for referenda.
|
|
326
|
+
# This field is only populated for contests of type 'Referendum'.
|
|
322
327
|
# Corresponds to the JSON property `referendumBallotResponses`
|
|
323
328
|
# @return [Array<String>]
|
|
324
329
|
attr_accessor :referendum_ballot_responses
|
|
@@ -397,7 +402,8 @@ module Google
|
|
|
397
402
|
attr_accessor :special
|
|
398
403
|
|
|
399
404
|
# The type of contest. Usually this will be 'General', 'Primary', or 'Run-off'
|
|
400
|
-
# for contests with candidates. For referenda this will be 'Referendum'.
|
|
405
|
+
# for contests with candidates. For referenda this will be 'Referendum'. For
|
|
406
|
+
# Retention contests this will typically be 'Retention'.
|
|
401
407
|
# Corresponds to the JSON property `type`
|
|
402
408
|
# @return [String]
|
|
403
409
|
attr_accessor :type
|
|
@@ -615,6 +621,11 @@ module Google
|
|
|
615
621
|
# @return [String]
|
|
616
622
|
attr_accessor :id
|
|
617
623
|
|
|
624
|
+
#
|
|
625
|
+
# Corresponds to the JSON property `kgForeignKey`
|
|
626
|
+
# @return [String]
|
|
627
|
+
attr_accessor :kg_foreign_key
|
|
628
|
+
|
|
618
629
|
# The name of the district.
|
|
619
630
|
# Corresponds to the JSON property `name`
|
|
620
631
|
# @return [String]
|
|
@@ -635,6 +646,7 @@ module Google
|
|
|
635
646
|
# Update properties of this object
|
|
636
647
|
def update!(**args)
|
|
637
648
|
@id = args[:id] if args.key?(:id)
|
|
649
|
+
@kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key)
|
|
638
650
|
@name = args[:name] if args.key?(:name)
|
|
639
651
|
@scope = args[:scope] if args.key?(:scope)
|
|
640
652
|
end
|
|
@@ -160,6 +160,7 @@ module Google
|
|
|
160
160
|
# @private
|
|
161
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
162
162
|
property :absentee_voting_info_url, as: 'absenteeVotingInfoUrl'
|
|
163
|
+
collection :address_lines, as: 'addressLines'
|
|
163
164
|
property :ballot_info_url, as: 'ballotInfoUrl'
|
|
164
165
|
property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
|
|
165
166
|
|
|
@@ -286,6 +287,7 @@ module Google
|
|
|
286
287
|
# @private
|
|
287
288
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
288
289
|
property :id, as: 'id'
|
|
290
|
+
property :kg_foreign_key, as: 'kgForeignKey'
|
|
289
291
|
property :name, as: 'name'
|
|
290
292
|
property :scope, as: 'scope'
|
|
291
293
|
end
|
|
@@ -22,7 +22,8 @@ module Google
|
|
|
22
22
|
module CivicinfoV2
|
|
23
23
|
# Google Civic Information API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# Provides polling places, early vote locations, contest data, election
|
|
26
|
+
# officials, and government representatives for U.S. residential addresses.
|
|
26
27
|
#
|
|
27
28
|
# @example
|
|
28
29
|
# require 'google/apis/civicinfo_v2'
|
|
@@ -131,6 +132,10 @@ module Google
|
|
|
131
132
|
# obtained at https://www.googleapis.com/civicinfo/`version`/elections
|
|
132
133
|
# @param [Boolean] official_only
|
|
133
134
|
# If set to true, only data from official state sources will be returned.
|
|
135
|
+
# @param [Boolean] return_all_available_data
|
|
136
|
+
# If set to true, the query will return the success codeand include any partial
|
|
137
|
+
# information when it is unable to determine a matching address or unable to
|
|
138
|
+
# determine the election for electionId=0 queries.
|
|
134
139
|
# @param [String] fields
|
|
135
140
|
# Selector specifying which fields to include in a partial response.
|
|
136
141
|
# @param [String] quota_user
|
|
@@ -152,13 +157,14 @@ module Google
|
|
|
152
157
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
153
158
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
159
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
|
-
def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
160
|
+
def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
156
161
|
command = make_simple_command(:get, 'voterinfo', options)
|
|
157
162
|
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
|
|
158
163
|
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
|
|
159
164
|
command.query['address'] = address unless address.nil?
|
|
160
165
|
command.query['electionId'] = election_id unless election_id.nil?
|
|
161
166
|
command.query['officialOnly'] = official_only unless official_only.nil?
|
|
167
|
+
command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil?
|
|
162
168
|
command.query['fields'] = fields unless fields.nil?
|
|
163
169
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
164
170
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/classroom/
|
|
26
26
|
module ClassroomV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20160816'
|
|
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'
|
|
@@ -494,32 +494,62 @@ module Google
|
|
|
494
494
|
end
|
|
495
495
|
end
|
|
496
496
|
|
|
497
|
-
#
|
|
498
|
-
class
|
|
497
|
+
# Response when listing guardian invitations.
|
|
498
|
+
class ListGuardianInvitationsResponse
|
|
499
499
|
include Google::Apis::Core::Hashable
|
|
500
500
|
|
|
501
|
-
#
|
|
502
|
-
# Corresponds to the JSON property `
|
|
501
|
+
# Guardian invitations that matched the list request.
|
|
502
|
+
# Corresponds to the JSON property `guardianInvitations`
|
|
503
|
+
# @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
|
|
504
|
+
attr_accessor :guardian_invitations
|
|
505
|
+
|
|
506
|
+
# Token identifying the next page of results to return. If empty, no further
|
|
507
|
+
# results are available.
|
|
508
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
503
509
|
# @return [String]
|
|
504
|
-
attr_accessor :
|
|
510
|
+
attr_accessor :next_page_token
|
|
505
511
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
#
|
|
512
|
+
def initialize(**args)
|
|
513
|
+
update!(**args)
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
# Update properties of this object
|
|
517
|
+
def update!(**args)
|
|
518
|
+
@guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations)
|
|
519
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# An invitation to become the guardian of a specified user, sent to a specified
|
|
524
|
+
# email address.
|
|
525
|
+
class GuardianInvitation
|
|
526
|
+
include Google::Apis::Core::Hashable
|
|
527
|
+
|
|
528
|
+
# ID of the student (in standard format)
|
|
529
|
+
# Corresponds to the JSON property `studentId`
|
|
511
530
|
# @return [String]
|
|
512
|
-
attr_accessor :
|
|
531
|
+
attr_accessor :student_id
|
|
513
532
|
|
|
514
|
-
#
|
|
515
|
-
# Corresponds to the JSON property `
|
|
533
|
+
# Unique identifier for this invitation. Read-only.
|
|
534
|
+
# Corresponds to the JSON property `invitationId`
|
|
516
535
|
# @return [String]
|
|
517
|
-
attr_accessor :
|
|
536
|
+
attr_accessor :invitation_id
|
|
518
537
|
|
|
519
|
-
#
|
|
520
|
-
#
|
|
538
|
+
# Email address that the invitation was sent to. This field is only visible to
|
|
539
|
+
# domain administrators.
|
|
540
|
+
# Corresponds to the JSON property `invitedEmailAddress`
|
|
521
541
|
# @return [String]
|
|
522
|
-
attr_accessor :
|
|
542
|
+
attr_accessor :invited_email_address
|
|
543
|
+
|
|
544
|
+
# The state that this invitation is in.
|
|
545
|
+
# Corresponds to the JSON property `state`
|
|
546
|
+
# @return [String]
|
|
547
|
+
attr_accessor :state
|
|
548
|
+
|
|
549
|
+
# The time that this invitation was created. Read-only.
|
|
550
|
+
# Corresponds to the JSON property `creationTime`
|
|
551
|
+
# @return [String]
|
|
552
|
+
attr_accessor :creation_time
|
|
523
553
|
|
|
524
554
|
def initialize(**args)
|
|
525
555
|
update!(**args)
|
|
@@ -527,21 +557,23 @@ module Google
|
|
|
527
557
|
|
|
528
558
|
# Update properties of this object
|
|
529
559
|
def update!(**args)
|
|
530
|
-
@
|
|
531
|
-
@
|
|
532
|
-
@
|
|
533
|
-
@
|
|
560
|
+
@student_id = args[:student_id] if args.key?(:student_id)
|
|
561
|
+
@invitation_id = args[:invitation_id] if args.key?(:invitation_id)
|
|
562
|
+
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
|
|
563
|
+
@state = args[:state] if args.key?(:state)
|
|
564
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
|
534
565
|
end
|
|
535
566
|
end
|
|
536
567
|
|
|
537
|
-
# Response when listing
|
|
538
|
-
class
|
|
568
|
+
# Response when listing guardians.
|
|
569
|
+
class ListGuardiansResponse
|
|
539
570
|
include Google::Apis::Core::Hashable
|
|
540
571
|
|
|
541
|
-
#
|
|
542
|
-
#
|
|
543
|
-
#
|
|
544
|
-
|
|
572
|
+
# Guardians on this page of results that met the criteria specified in the
|
|
573
|
+
# request.
|
|
574
|
+
# Corresponds to the JSON property `guardians`
|
|
575
|
+
# @return [Array<Google::Apis::ClassroomV1::Guardian>]
|
|
576
|
+
attr_accessor :guardians
|
|
545
577
|
|
|
546
578
|
# Token identifying the next page of results to return. If empty, no further
|
|
547
579
|
# results are available.
|
|
@@ -555,11 +587,50 @@ module Google
|
|
|
555
587
|
|
|
556
588
|
# Update properties of this object
|
|
557
589
|
def update!(**args)
|
|
558
|
-
@
|
|
590
|
+
@guardians = args[:guardians] if args.key?(:guardians)
|
|
559
591
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
560
592
|
end
|
|
561
593
|
end
|
|
562
594
|
|
|
595
|
+
# Association between a student and a guardian of that student. The guardian may
|
|
596
|
+
# receive information about the student's course work.
|
|
597
|
+
class Guardian
|
|
598
|
+
include Google::Apis::Core::Hashable
|
|
599
|
+
|
|
600
|
+
# Identifier for the student to whom the guardian relationship applies.
|
|
601
|
+
# Corresponds to the JSON property `studentId`
|
|
602
|
+
# @return [String]
|
|
603
|
+
attr_accessor :student_id
|
|
604
|
+
|
|
605
|
+
# Identifier for the guardian.
|
|
606
|
+
# Corresponds to the JSON property `guardianId`
|
|
607
|
+
# @return [String]
|
|
608
|
+
attr_accessor :guardian_id
|
|
609
|
+
|
|
610
|
+
# Global information for a user.
|
|
611
|
+
# Corresponds to the JSON property `guardianProfile`
|
|
612
|
+
# @return [Google::Apis::ClassroomV1::UserProfile]
|
|
613
|
+
attr_accessor :guardian_profile
|
|
614
|
+
|
|
615
|
+
# The email address to which the initial guardian invitation was sent. This
|
|
616
|
+
# field is only visible to domain administrators.
|
|
617
|
+
# Corresponds to the JSON property `invitedEmailAddress`
|
|
618
|
+
# @return [String]
|
|
619
|
+
attr_accessor :invited_email_address
|
|
620
|
+
|
|
621
|
+
def initialize(**args)
|
|
622
|
+
update!(**args)
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
# Update properties of this object
|
|
626
|
+
def update!(**args)
|
|
627
|
+
@student_id = args[:student_id] if args.key?(:student_id)
|
|
628
|
+
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
|
|
629
|
+
@guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
|
|
630
|
+
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
563
634
|
# Global information for a user.
|
|
564
635
|
class UserProfile
|
|
565
636
|
include Google::Apis::Core::Hashable
|
|
@@ -780,6 +851,72 @@ module Google
|
|
|
780
851
|
end
|
|
781
852
|
end
|
|
782
853
|
|
|
854
|
+
# An invitation to join a course.
|
|
855
|
+
class Invitation
|
|
856
|
+
include Google::Apis::Core::Hashable
|
|
857
|
+
|
|
858
|
+
# Identifier assigned by Classroom. Read-only.
|
|
859
|
+
# Corresponds to the JSON property `id`
|
|
860
|
+
# @return [String]
|
|
861
|
+
attr_accessor :id
|
|
862
|
+
|
|
863
|
+
# Identifier of the invited user. When specified as a parameter of a request,
|
|
864
|
+
# this identifier can be set to one of the following: * the numeric identifier
|
|
865
|
+
# for the user * the email address of the user * the string literal `"me"`,
|
|
866
|
+
# indicating the requesting user
|
|
867
|
+
# Corresponds to the JSON property `userId`
|
|
868
|
+
# @return [String]
|
|
869
|
+
attr_accessor :user_id
|
|
870
|
+
|
|
871
|
+
# Identifier of the course to invite the user to.
|
|
872
|
+
# Corresponds to the JSON property `courseId`
|
|
873
|
+
# @return [String]
|
|
874
|
+
attr_accessor :course_id
|
|
875
|
+
|
|
876
|
+
# Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
|
|
877
|
+
# Corresponds to the JSON property `role`
|
|
878
|
+
# @return [String]
|
|
879
|
+
attr_accessor :role
|
|
880
|
+
|
|
881
|
+
def initialize(**args)
|
|
882
|
+
update!(**args)
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
# Update properties of this object
|
|
886
|
+
def update!(**args)
|
|
887
|
+
@id = args[:id] if args.key?(:id)
|
|
888
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
|
889
|
+
@course_id = args[:course_id] if args.key?(:course_id)
|
|
890
|
+
@role = args[:role] if args.key?(:role)
|
|
891
|
+
end
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
# Response when listing invitations.
|
|
895
|
+
class ListInvitationsResponse
|
|
896
|
+
include Google::Apis::Core::Hashable
|
|
897
|
+
|
|
898
|
+
# Invitations that match the list request.
|
|
899
|
+
# Corresponds to the JSON property `invitations`
|
|
900
|
+
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
|
|
901
|
+
attr_accessor :invitations
|
|
902
|
+
|
|
903
|
+
# Token identifying the next page of results to return. If empty, no further
|
|
904
|
+
# results are available.
|
|
905
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
906
|
+
# @return [String]
|
|
907
|
+
attr_accessor :next_page_token
|
|
908
|
+
|
|
909
|
+
def initialize(**args)
|
|
910
|
+
update!(**args)
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
# Update properties of this object
|
|
914
|
+
def update!(**args)
|
|
915
|
+
@invitations = args[:invitations] if args.key?(:invitations)
|
|
916
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
783
920
|
# Course work created by a teacher for students of the course.
|
|
784
921
|
class CourseWork
|
|
785
922
|
include Google::Apis::Core::Hashable
|
|
@@ -807,12 +944,12 @@ module Google
|
|
|
807
944
|
# @return [String]
|
|
808
945
|
attr_accessor :description
|
|
809
946
|
|
|
810
|
-
# Additional materials.
|
|
947
|
+
# Additional materials. CourseWork must have no more than 20 material items.
|
|
811
948
|
# Corresponds to the JSON property `materials`
|
|
812
949
|
# @return [Array<Google::Apis::ClassroomV1::Material>]
|
|
813
950
|
attr_accessor :materials
|
|
814
951
|
|
|
815
|
-
# Status of this course work
|
|
952
|
+
# Status of this course work. If unspecified, the default state is `DRAFT`.
|
|
816
953
|
# Corresponds to the JSON property `state`
|
|
817
954
|
# @return [String]
|
|
818
955
|
attr_accessor :state
|
|
@@ -852,7 +989,7 @@ module Google
|
|
|
852
989
|
attr_accessor :due_time
|
|
853
990
|
|
|
854
991
|
# Maximum grade for this course work. If zero or unspecified, this assignment is
|
|
855
|
-
# considered ungraded. This must be
|
|
992
|
+
# considered ungraded. This must be a non-negative integer value.
|
|
856
993
|
# Corresponds to the JSON property `maxPoints`
|
|
857
994
|
# @return [Float]
|
|
858
995
|
attr_accessor :max_points
|
|
@@ -1146,7 +1283,7 @@ module Google
|
|
|
1146
1283
|
# @return [String]
|
|
1147
1284
|
attr_accessor :user_id
|
|
1148
1285
|
|
|
1149
|
-
# Creation time of this submission
|
|
1286
|
+
# Creation time of this submission. This may be unset if the student has not
|
|
1150
1287
|
# accessed this item. Read-only.
|
|
1151
1288
|
# Corresponds to the JSON property `creationTime`
|
|
1152
1289
|
# @return [String]
|
|
@@ -1169,14 +1306,15 @@ module Google
|
|
|
1169
1306
|
attr_accessor :late
|
|
1170
1307
|
alias_method :late?, :late
|
|
1171
1308
|
|
|
1172
|
-
# Optional pending grade. If unset, no grade was set. This must be
|
|
1173
|
-
# value. This is only visible to and modifiable by course
|
|
1309
|
+
# Optional pending grade. If unset, no grade was set. This must be a non-
|
|
1310
|
+
# negative integer value. This is only visible to and modifiable by course
|
|
1311
|
+
# teachers.
|
|
1174
1312
|
# Corresponds to the JSON property `draftGrade`
|
|
1175
1313
|
# @return [Float]
|
|
1176
1314
|
attr_accessor :draft_grade
|
|
1177
1315
|
|
|
1178
|
-
# Optional grade. If unset, no grade was set. This must be
|
|
1179
|
-
# This may be modified only by course teachers.
|
|
1316
|
+
# Optional grade. If unset, no grade was set. This must be a non-negative
|
|
1317
|
+
# integer value. This may be modified only by course teachers.
|
|
1180
1318
|
# Corresponds to the JSON property `assignedGrade`
|
|
1181
1319
|
# @return [Float]
|
|
1182
1320
|
attr_accessor :assigned_grade
|
|
@@ -1407,7 +1545,8 @@ module Google
|
|
|
1407
1545
|
class ModifyAttachmentsRequest
|
|
1408
1546
|
include Google::Apis::Core::Hashable
|
|
1409
1547
|
|
|
1410
|
-
# Attachments to add.
|
|
1548
|
+
# Attachments to add. A student submission may not have more than 20 attachments.
|
|
1549
|
+
# This may only contain link attachments.
|
|
1411
1550
|
# Corresponds to the JSON property `addAttachments`
|
|
1412
1551
|
# @return [Array<Google::Apis::ClassroomV1::Attachment>]
|
|
1413
1552
|
attr_accessor :add_attachments
|
|
@@ -94,13 +94,25 @@ module Google
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class ListGuardianInvitationsResponse
|
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
99
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
class
|
|
103
|
+
class GuardianInvitation
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class ListGuardiansResponse
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class Guardian
|
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
117
|
|
|
106
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -148,6 +160,18 @@ module Google
|
|
|
148
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
149
161
|
end
|
|
150
162
|
|
|
163
|
+
class Invitation
|
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
|
+
|
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class ListInvitationsResponse
|
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
|
+
|
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
173
|
+
end
|
|
174
|
+
|
|
151
175
|
class CourseWork
|
|
152
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
177
|
|
|
@@ -382,25 +406,46 @@ module Google
|
|
|
382
406
|
end
|
|
383
407
|
end
|
|
384
408
|
|
|
385
|
-
class
|
|
409
|
+
class ListGuardianInvitationsResponse
|
|
386
410
|
# @private
|
|
387
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
property :
|
|
391
|
-
property :role, as: 'role'
|
|
412
|
+
collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation
|
|
413
|
+
|
|
414
|
+
property :next_page_token, as: 'nextPageToken'
|
|
392
415
|
end
|
|
393
416
|
end
|
|
394
417
|
|
|
395
|
-
class
|
|
418
|
+
class GuardianInvitation
|
|
396
419
|
# @private
|
|
397
420
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
398
|
-
|
|
421
|
+
property :student_id, as: 'studentId'
|
|
422
|
+
property :invitation_id, as: 'invitationId'
|
|
423
|
+
property :invited_email_address, as: 'invitedEmailAddress'
|
|
424
|
+
property :state, as: 'state'
|
|
425
|
+
property :creation_time, as: 'creationTime'
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
class ListGuardiansResponse
|
|
430
|
+
# @private
|
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
432
|
+
collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
|
|
399
433
|
|
|
400
434
|
property :next_page_token, as: 'nextPageToken'
|
|
401
435
|
end
|
|
402
436
|
end
|
|
403
437
|
|
|
438
|
+
class Guardian
|
|
439
|
+
# @private
|
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
441
|
+
property :student_id, as: 'studentId'
|
|
442
|
+
property :guardian_id, as: 'guardianId'
|
|
443
|
+
property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
|
|
444
|
+
|
|
445
|
+
property :invited_email_address, as: 'invitedEmailAddress'
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
404
449
|
class UserProfile
|
|
405
450
|
# @private
|
|
406
451
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -470,6 +515,25 @@ module Google
|
|
|
470
515
|
end
|
|
471
516
|
end
|
|
472
517
|
|
|
518
|
+
class Invitation
|
|
519
|
+
# @private
|
|
520
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
521
|
+
property :id, as: 'id'
|
|
522
|
+
property :user_id, as: 'userId'
|
|
523
|
+
property :course_id, as: 'courseId'
|
|
524
|
+
property :role, as: 'role'
|
|
525
|
+
end
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
class ListInvitationsResponse
|
|
529
|
+
# @private
|
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
531
|
+
collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation
|
|
532
|
+
|
|
533
|
+
property :next_page_token, as: 'nextPageToken'
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
|
|
473
537
|
class CourseWork
|
|
474
538
|
# @private
|
|
475
539
|
class Representation < Google::Apis::Core::JsonRepresentation
|