google-api-client 0.18.0 → 0.18.1
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 +41 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +238 -10
- data/generated/google/apis/admin_directory_v1/representations.rb +101 -0
- data/generated/google/apis/admin_directory_v1/service.rb +529 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +21 -17
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +21 -17
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +326 -0
- data/generated/google/apis/calendar_v3/representations.rb +118 -0
- data/generated/google/apis/calendar_v3/service.rb +28 -4
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +69 -0
- data/generated/google/apis/classroom_v1/representations.rb +31 -0
- data/generated/google/apis/classroom_v1/service.rb +88 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +49 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +20 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +9 -12
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +25 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +4 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +8 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +19 -13
- data/generated/google/apis/cloudshell_v1.rb +35 -0
- data/generated/google/apis/cloudshell_v1/classes.rb +409 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +161 -0
- data/generated/google/apis/cloudshell_v1/service.rb +214 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +35 -0
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +403 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +160 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +237 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +106 -13
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +31 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +63 -8
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +6 -7
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +4 -4
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +257 -0
- data/generated/google/apis/content_v2/representations.rb +114 -0
- data/generated/google/apis/content_v2/service.rb +84 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +257 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +114 -0
- data/generated/google/apis/content_v2sandbox/service.rb +84 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +32 -0
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +305 -0
- data/generated/google/apis/digitalassetlinks_v1/representations.rb +133 -0
- data/generated/google/apis/digitalassetlinks_v1/service.rb +324 -0
- data/generated/google/apis/dlp_v2beta2.rb +36 -0
- data/generated/google/apis/dlp_v2beta2/classes.rb +5475 -0
- data/generated/google/apis/dlp_v2beta2/representations.rb +2734 -0
- data/generated/google/apis/dlp_v2beta2/service.rb +1135 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +25 -16
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +50 -1
- data/generated/google/apis/monitoring_v3/representations.rb +16 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -5
- data/generated/google/apis/slides_v1.rb +4 -1
- data/generated/google/apis/speech_v1.rb +1 -4
- data/generated/google/apis/speech_v1beta1.rb +1 -4
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +0 -2
- data/generated/google/apis/streetviewpublish_v1/service.rb +6 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +81 -0
- data/generated/google/apis/testing_v1/representations.rb +45 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -6
- data/generated/google/apis/youtube_v3/representations.rb +0 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +576 -19
- data/generated/google/apis/youtubereporting_v1/representations.rb +218 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +18 -2
|
@@ -1129,6 +1129,11 @@ module Google
|
|
|
1129
1129
|
# method. If you want to access the primary calendar of the currently logged in
|
|
1130
1130
|
# user, use the "primary" keyword.
|
|
1131
1131
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
|
1132
|
+
# @param [Fixnum] conference_data_version
|
|
1133
|
+
# Version number of conference data supported by the API client. Version 0
|
|
1134
|
+
# assumes no conference data support and ignores conference data in the event's
|
|
1135
|
+
# body. Version 1 enables support for copying of ConferenceData as well as for
|
|
1136
|
+
# creating new conferences using the CreateConferenceRequest. The default is 0.
|
|
1132
1137
|
# @param [Boolean] supports_attachments
|
|
1133
1138
|
# Whether API client performing operation supports event attachments. Optional.
|
|
1134
1139
|
# The default is False.
|
|
@@ -1153,13 +1158,14 @@ module Google
|
|
|
1153
1158
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1154
1159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1155
1160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1156
|
-
def import_event(calendar_id, event_object = nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1161
|
+
def import_event(calendar_id, event_object = nil, conference_data_version: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1157
1162
|
command = make_simple_command(:post, 'calendars/{calendarId}/events/import', options)
|
|
1158
1163
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1159
1164
|
command.request_object = event_object
|
|
1160
1165
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1161
1166
|
command.response_class = Google::Apis::CalendarV3::Event
|
|
1162
1167
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
|
1168
|
+
command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
|
|
1163
1169
|
command.query['supportsAttachments'] = supports_attachments unless supports_attachments.nil?
|
|
1164
1170
|
command.query['fields'] = fields unless fields.nil?
|
|
1165
1171
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1173,6 +1179,11 @@ module Google
|
|
|
1173
1179
|
# method. If you want to access the primary calendar of the currently logged in
|
|
1174
1180
|
# user, use the "primary" keyword.
|
|
1175
1181
|
# @param [Google::Apis::CalendarV3::Event] event_object
|
|
1182
|
+
# @param [Fixnum] conference_data_version
|
|
1183
|
+
# Version number of conference data supported by the API client. Version 0
|
|
1184
|
+
# assumes no conference data support and ignores conference data in the event's
|
|
1185
|
+
# body. Version 1 enables support for copying of ConferenceData as well as for
|
|
1186
|
+
# creating new conferences using the CreateConferenceRequest. The default is 0.
|
|
1176
1187
|
# @param [Fixnum] max_attendees
|
|
1177
1188
|
# The maximum number of attendees to include in the response. If there are more
|
|
1178
1189
|
# than the specified number of attendees, only the participant is returned.
|
|
@@ -1204,13 +1215,14 @@ module Google
|
|
|
1204
1215
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1205
1216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1206
1217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1207
|
-
def insert_event(calendar_id, event_object = nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1218
|
+
def insert_event(calendar_id, event_object = nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1208
1219
|
command = make_simple_command(:post, 'calendars/{calendarId}/events', options)
|
|
1209
1220
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1210
1221
|
command.request_object = event_object
|
|
1211
1222
|
command.response_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1212
1223
|
command.response_class = Google::Apis::CalendarV3::Event
|
|
1213
1224
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
|
1225
|
+
command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
|
|
1214
1226
|
command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
|
|
1215
1227
|
command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
|
|
1216
1228
|
command.query['supportsAttachments'] = supports_attachments unless supports_attachments.nil?
|
|
@@ -1504,6 +1516,11 @@ module Google
|
|
|
1504
1516
|
# non-working value will be provided). The use of this option is discouraged and
|
|
1505
1517
|
# should only be used by clients which cannot handle the absence of an email
|
|
1506
1518
|
# address value in the mentioned places. Optional. The default is False.
|
|
1519
|
+
# @param [Fixnum] conference_data_version
|
|
1520
|
+
# Version number of conference data supported by the API client. Version 0
|
|
1521
|
+
# assumes no conference data support and ignores conference data in the event's
|
|
1522
|
+
# body. Version 1 enables support for copying of ConferenceData as well as for
|
|
1523
|
+
# creating new conferences using the CreateConferenceRequest. The default is 0.
|
|
1507
1524
|
# @param [Fixnum] max_attendees
|
|
1508
1525
|
# The maximum number of attendees to include in the response. If there are more
|
|
1509
1526
|
# than the specified number of attendees, only the participant is returned.
|
|
@@ -1535,7 +1552,7 @@ module Google
|
|
|
1535
1552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1536
1553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1537
1554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1538
|
-
def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1555
|
+
def patch_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1539
1556
|
command = make_simple_command(:patch, 'calendars/{calendarId}/events/{eventId}', options)
|
|
1540
1557
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1541
1558
|
command.request_object = event_object
|
|
@@ -1544,6 +1561,7 @@ module Google
|
|
|
1544
1561
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
|
1545
1562
|
command.params['eventId'] = event_id unless event_id.nil?
|
|
1546
1563
|
command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
|
|
1564
|
+
command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
|
|
1547
1565
|
command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
|
|
1548
1566
|
command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
|
|
1549
1567
|
command.query['supportsAttachments'] = supports_attachments unless supports_attachments.nil?
|
|
@@ -1611,6 +1629,11 @@ module Google
|
|
|
1611
1629
|
# non-working value will be provided). The use of this option is discouraged and
|
|
1612
1630
|
# should only be used by clients which cannot handle the absence of an email
|
|
1613
1631
|
# address value in the mentioned places. Optional. The default is False.
|
|
1632
|
+
# @param [Fixnum] conference_data_version
|
|
1633
|
+
# Version number of conference data supported by the API client. Version 0
|
|
1634
|
+
# assumes no conference data support and ignores conference data in the event's
|
|
1635
|
+
# body. Version 1 enables support for copying of ConferenceData as well as for
|
|
1636
|
+
# creating new conferences using the CreateConferenceRequest. The default is 0.
|
|
1614
1637
|
# @param [Fixnum] max_attendees
|
|
1615
1638
|
# The maximum number of attendees to include in the response. If there are more
|
|
1616
1639
|
# than the specified number of attendees, only the participant is returned.
|
|
@@ -1642,7 +1665,7 @@ module Google
|
|
|
1642
1665
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1643
1666
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1644
1667
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1645
|
-
def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1668
|
+
def update_event(calendar_id, event_id, event_object = nil, always_include_email: nil, conference_data_version: nil, max_attendees: nil, send_notifications: nil, supports_attachments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1646
1669
|
command = make_simple_command(:put, 'calendars/{calendarId}/events/{eventId}', options)
|
|
1647
1670
|
command.request_representation = Google::Apis::CalendarV3::Event::Representation
|
|
1648
1671
|
command.request_object = event_object
|
|
@@ -1651,6 +1674,7 @@ module Google
|
|
|
1651
1674
|
command.params['calendarId'] = calendar_id unless calendar_id.nil?
|
|
1652
1675
|
command.params['eventId'] = event_id unless event_id.nil?
|
|
1653
1676
|
command.query['alwaysIncludeEmail'] = always_include_email unless always_include_email.nil?
|
|
1677
|
+
command.query['conferenceDataVersion'] = conference_data_version unless conference_data_version.nil?
|
|
1654
1678
|
command.query['maxAttendees'] = max_attendees unless max_attendees.nil?
|
|
1655
1679
|
command.query['sendNotifications'] = send_notifications unless send_notifications.nil?
|
|
1656
1680
|
command.query['supportsAttachments'] = supports_attachments unless supports_attachments.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 = '20171213'
|
|
29
29
|
|
|
30
30
|
# View and manage announcements in Google Classroom
|
|
31
31
|
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
|
|
@@ -1395,6 +1395,32 @@ module Google
|
|
|
1395
1395
|
end
|
|
1396
1396
|
end
|
|
1397
1397
|
|
|
1398
|
+
# Response when listing topics.
|
|
1399
|
+
class ListTopicResponse
|
|
1400
|
+
include Google::Apis::Core::Hashable
|
|
1401
|
+
|
|
1402
|
+
# Token identifying the next page of results to return. If empty, no further
|
|
1403
|
+
# results are available.
|
|
1404
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1405
|
+
# @return [String]
|
|
1406
|
+
attr_accessor :next_page_token
|
|
1407
|
+
|
|
1408
|
+
# Topic items that match the request.
|
|
1409
|
+
# Corresponds to the JSON property `topic`
|
|
1410
|
+
# @return [Array<Google::Apis::ClassroomV1::Topic>]
|
|
1411
|
+
attr_accessor :topic
|
|
1412
|
+
|
|
1413
|
+
def initialize(**args)
|
|
1414
|
+
update!(**args)
|
|
1415
|
+
end
|
|
1416
|
+
|
|
1417
|
+
# Update properties of this object
|
|
1418
|
+
def update!(**args)
|
|
1419
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1420
|
+
@topic = args[:topic] if args.key?(:topic)
|
|
1421
|
+
end
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1398
1424
|
# Material attached to course work.
|
|
1399
1425
|
# When creating attachments, setting the `form` field is not supported.
|
|
1400
1426
|
class Material
|
|
@@ -2045,6 +2071,49 @@ module Google
|
|
|
2045
2071
|
end
|
|
2046
2072
|
end
|
|
2047
2073
|
|
|
2074
|
+
# Topic created by a teacher for the course
|
|
2075
|
+
class Topic
|
|
2076
|
+
include Google::Apis::Core::Hashable
|
|
2077
|
+
|
|
2078
|
+
# Identifier of the course.
|
|
2079
|
+
# Read-only.
|
|
2080
|
+
# Corresponds to the JSON property `courseId`
|
|
2081
|
+
# @return [String]
|
|
2082
|
+
attr_accessor :course_id
|
|
2083
|
+
|
|
2084
|
+
# The name of the topic, generated by the user.
|
|
2085
|
+
# Leading and trailing whitespaces, if any, will be trimmed. Also, multiple
|
|
2086
|
+
# consecutive whitespaces will be collapsed into one inside the name.
|
|
2087
|
+
# Topic names are case sensitive, and must be no longer than 100 characters.
|
|
2088
|
+
# Corresponds to the JSON property `name`
|
|
2089
|
+
# @return [String]
|
|
2090
|
+
attr_accessor :name
|
|
2091
|
+
|
|
2092
|
+
# Unique identifier for the topic.
|
|
2093
|
+
# Read-only.
|
|
2094
|
+
# Corresponds to the JSON property `topicId`
|
|
2095
|
+
# @return [String]
|
|
2096
|
+
attr_accessor :topic_id
|
|
2097
|
+
|
|
2098
|
+
# The time the topic was last updated by the system.
|
|
2099
|
+
# Read-only.
|
|
2100
|
+
# Corresponds to the JSON property `updateTime`
|
|
2101
|
+
# @return [String]
|
|
2102
|
+
attr_accessor :update_time
|
|
2103
|
+
|
|
2104
|
+
def initialize(**args)
|
|
2105
|
+
update!(**args)
|
|
2106
|
+
end
|
|
2107
|
+
|
|
2108
|
+
# Update properties of this object
|
|
2109
|
+
def update!(**args)
|
|
2110
|
+
@course_id = args[:course_id] if args.key?(:course_id)
|
|
2111
|
+
@name = args[:name] if args.key?(:name)
|
|
2112
|
+
@topic_id = args[:topic_id] if args.key?(:topic_id)
|
|
2113
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2114
|
+
end
|
|
2115
|
+
end
|
|
2116
|
+
|
|
2048
2117
|
# Request to turn in a student submission.
|
|
2049
2118
|
class TurnInStudentSubmissionRequest
|
|
2050
2119
|
include Google::Apis::Core::Hashable
|
|
@@ -226,6 +226,12 @@ module Google
|
|
|
226
226
|
include Google::Apis::Core::JsonObjectSupport
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
+
class ListTopicResponse
|
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
|
+
|
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
233
|
+
end
|
|
234
|
+
|
|
229
235
|
class Material
|
|
230
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
237
|
|
|
@@ -340,6 +346,12 @@ module Google
|
|
|
340
346
|
include Google::Apis::Core::JsonObjectSupport
|
|
341
347
|
end
|
|
342
348
|
|
|
349
|
+
class Topic
|
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
351
|
+
|
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
353
|
+
end
|
|
354
|
+
|
|
343
355
|
class TurnInStudentSubmissionRequest
|
|
344
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
345
357
|
|
|
@@ -720,6 +732,15 @@ module Google
|
|
|
720
732
|
end
|
|
721
733
|
end
|
|
722
734
|
|
|
735
|
+
class ListTopicResponse
|
|
736
|
+
# @private
|
|
737
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
738
|
+
property :next_page_token, as: 'nextPageToken'
|
|
739
|
+
collection :topic, as: 'topic', class: Google::Apis::ClassroomV1::Topic, decorator: Google::Apis::ClassroomV1::Topic::Representation
|
|
740
|
+
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
723
744
|
class Material
|
|
724
745
|
# @private
|
|
725
746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -909,6 +930,16 @@ module Google
|
|
|
909
930
|
end
|
|
910
931
|
end
|
|
911
932
|
|
|
933
|
+
class Topic
|
|
934
|
+
# @private
|
|
935
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
936
|
+
property :course_id, as: 'courseId'
|
|
937
|
+
property :name, as: 'name'
|
|
938
|
+
property :topic_id, as: 'topicId'
|
|
939
|
+
property :update_time, as: 'updateTime'
|
|
940
|
+
end
|
|
941
|
+
end
|
|
942
|
+
|
|
912
943
|
class TurnInStudentSubmissionRequest
|
|
913
944
|
# @private
|
|
914
945
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1848,6 +1848,94 @@ module Google
|
|
|
1848
1848
|
execute_or_queue_command(command, &block)
|
|
1849
1849
|
end
|
|
1850
1850
|
|
|
1851
|
+
# Returns a topic.
|
|
1852
|
+
# This method returns the following error codes:
|
|
1853
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
|
1854
|
+
# requested course or topic, or for access errors.
|
|
1855
|
+
# * `INVALID_ARGUMENT` if the request is malformed.
|
|
1856
|
+
# * `NOT_FOUND` if the requested course or topic does not exist.
|
|
1857
|
+
# @param [String] course_id
|
|
1858
|
+
# Identifier of the course.
|
|
1859
|
+
# @param [String] id
|
|
1860
|
+
# Identifier of the topic.
|
|
1861
|
+
# @param [String] fields
|
|
1862
|
+
# Selector specifying which fields to include in a partial response.
|
|
1863
|
+
# @param [String] quota_user
|
|
1864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1866
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1867
|
+
# Request-specific options
|
|
1868
|
+
#
|
|
1869
|
+
# @yield [result, err] Result & error if block supplied
|
|
1870
|
+
# @yieldparam result [Google::Apis::ClassroomV1::Topic] parsed result object
|
|
1871
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1872
|
+
#
|
|
1873
|
+
# @return [Google::Apis::ClassroomV1::Topic]
|
|
1874
|
+
#
|
|
1875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1878
|
+
def get_course_topic(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
|
1879
|
+
command = make_simple_command(:get, 'v1/courses/{courseId}/topics/{id}', options)
|
|
1880
|
+
command.response_representation = Google::Apis::ClassroomV1::Topic::Representation
|
|
1881
|
+
command.response_class = Google::Apis::ClassroomV1::Topic
|
|
1882
|
+
command.params['courseId'] = course_id unless course_id.nil?
|
|
1883
|
+
command.params['id'] = id unless id.nil?
|
|
1884
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1886
|
+
execute_or_queue_command(command, &block)
|
|
1887
|
+
end
|
|
1888
|
+
|
|
1889
|
+
# Returns the list of topics that the requester is permitted to view.
|
|
1890
|
+
# This method returns the following error codes:
|
|
1891
|
+
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
|
|
1892
|
+
# the requested course or for access errors.
|
|
1893
|
+
# * `INVALID_ARGUMENT` if the request is malformed.
|
|
1894
|
+
# * `NOT_FOUND` if the requested course does not exist.
|
|
1895
|
+
# @param [String] course_id
|
|
1896
|
+
# Identifier of the course.
|
|
1897
|
+
# This identifier can be either the Classroom-assigned identifier or an
|
|
1898
|
+
# alias.
|
|
1899
|
+
# @param [Fixnum] page_size
|
|
1900
|
+
# Maximum number of items to return. Zero or unspecified indicates that the
|
|
1901
|
+
# server may assign a maximum.
|
|
1902
|
+
# The server may return fewer than the specified number of results.
|
|
1903
|
+
# @param [String] page_token
|
|
1904
|
+
# nextPageToken
|
|
1905
|
+
# value returned from a previous
|
|
1906
|
+
# list call,
|
|
1907
|
+
# indicating that the subsequent page of results should be returned.
|
|
1908
|
+
# The list request
|
|
1909
|
+
# must be otherwise identical to the one that resulted in this token.
|
|
1910
|
+
# @param [String] fields
|
|
1911
|
+
# Selector specifying which fields to include in a partial response.
|
|
1912
|
+
# @param [String] quota_user
|
|
1913
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1914
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1915
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1916
|
+
# Request-specific options
|
|
1917
|
+
#
|
|
1918
|
+
# @yield [result, err] Result & error if block supplied
|
|
1919
|
+
# @yieldparam result [Google::Apis::ClassroomV1::ListTopicResponse] parsed result object
|
|
1920
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1921
|
+
#
|
|
1922
|
+
# @return [Google::Apis::ClassroomV1::ListTopicResponse]
|
|
1923
|
+
#
|
|
1924
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1925
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1926
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1927
|
+
def list_course_topics(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1928
|
+
command = make_simple_command(:get, 'v1/courses/{courseId}/topics', options)
|
|
1929
|
+
command.response_representation = Google::Apis::ClassroomV1::ListTopicResponse::Representation
|
|
1930
|
+
command.response_class = Google::Apis::ClassroomV1::ListTopicResponse
|
|
1931
|
+
command.params['courseId'] = course_id unless course_id.nil?
|
|
1932
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1933
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1934
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1935
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1936
|
+
execute_or_queue_command(command, &block)
|
|
1937
|
+
end
|
|
1938
|
+
|
|
1851
1939
|
# Accepts an invitation, removing it and adding the invited user to the
|
|
1852
1940
|
# teachers or students (as appropriate) of the specified course. Only the
|
|
1853
1941
|
# invited user may accept an invitation.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/container-builder/docs/
|
|
26
26
|
module CloudbuildV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20171212'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -165,6 +165,17 @@ module Google
|
|
|
165
165
|
# @return [String]
|
|
166
166
|
attr_accessor :timeout
|
|
167
167
|
|
|
168
|
+
# Stores timing information for phases of the build.
|
|
169
|
+
# Valid keys are:
|
|
170
|
+
# - BUILD: time to execute all build steps
|
|
171
|
+
# - PUSH: time to push all specified images.
|
|
172
|
+
# - FETCHSOURCE: time to fetch source.
|
|
173
|
+
# If the build does not specify source, or does not specify images,
|
|
174
|
+
# these keys will not be included.
|
|
175
|
+
# Corresponds to the JSON property `timing`
|
|
176
|
+
# @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
|
|
177
|
+
attr_accessor :timing
|
|
178
|
+
|
|
168
179
|
def initialize(**args)
|
|
169
180
|
update!(**args)
|
|
170
181
|
end
|
|
@@ -191,6 +202,7 @@ module Google
|
|
|
191
202
|
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
|
192
203
|
@tags = args[:tags] if args.key?(:tags)
|
|
193
204
|
@timeout = args[:timeout] if args.key?(:timeout)
|
|
205
|
+
@timing = args[:timing] if args.key?(:timing)
|
|
194
206
|
end
|
|
195
207
|
end
|
|
196
208
|
|
|
@@ -343,6 +355,11 @@ module Google
|
|
|
343
355
|
# @return [Array<String>]
|
|
344
356
|
attr_accessor :secret_env
|
|
345
357
|
|
|
358
|
+
# Stores start and end times for a build execution phase.
|
|
359
|
+
# Corresponds to the JSON property `timing`
|
|
360
|
+
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
|
361
|
+
attr_accessor :timing
|
|
362
|
+
|
|
346
363
|
# List of volumes to mount into the build step.
|
|
347
364
|
# Each volume will be created as an empty volume prior to execution of the
|
|
348
365
|
# build step. Upon completion of the build, volumes and their contents will
|
|
@@ -375,6 +392,7 @@ module Google
|
|
|
375
392
|
@id = args[:id] if args.key?(:id)
|
|
376
393
|
@name = args[:name] if args.key?(:name)
|
|
377
394
|
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
|
395
|
+
@timing = args[:timing] if args.key?(:timing)
|
|
378
396
|
@volumes = args[:volumes] if args.key?(:volumes)
|
|
379
397
|
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
|
380
398
|
end
|
|
@@ -475,6 +493,11 @@ module Google
|
|
|
475
493
|
# @return [String]
|
|
476
494
|
attr_accessor :name
|
|
477
495
|
|
|
496
|
+
# Stores start and end times for a build execution phase.
|
|
497
|
+
# Corresponds to the JSON property `pushTiming`
|
|
498
|
+
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
|
499
|
+
attr_accessor :push_timing
|
|
500
|
+
|
|
478
501
|
def initialize(**args)
|
|
479
502
|
update!(**args)
|
|
480
503
|
end
|
|
@@ -483,6 +506,7 @@ module Google
|
|
|
483
506
|
def update!(**args)
|
|
484
507
|
@digest = args[:digest] if args.key?(:digest)
|
|
485
508
|
@name = args[:name] if args.key?(:name)
|
|
509
|
+
@push_timing = args[:push_timing] if args.key?(:push_timing)
|
|
486
510
|
end
|
|
487
511
|
end
|
|
488
512
|
|
|
@@ -1041,6 +1065,31 @@ module Google
|
|
|
1041
1065
|
end
|
|
1042
1066
|
end
|
|
1043
1067
|
|
|
1068
|
+
# Stores start and end times for a build execution phase.
|
|
1069
|
+
class TimeSpan
|
|
1070
|
+
include Google::Apis::Core::Hashable
|
|
1071
|
+
|
|
1072
|
+
# End of time span.
|
|
1073
|
+
# Corresponds to the JSON property `endTime`
|
|
1074
|
+
# @return [String]
|
|
1075
|
+
attr_accessor :end_time
|
|
1076
|
+
|
|
1077
|
+
# Start of time span.
|
|
1078
|
+
# Corresponds to the JSON property `startTime`
|
|
1079
|
+
# @return [String]
|
|
1080
|
+
attr_accessor :start_time
|
|
1081
|
+
|
|
1082
|
+
def initialize(**args)
|
|
1083
|
+
update!(**args)
|
|
1084
|
+
end
|
|
1085
|
+
|
|
1086
|
+
# Update properties of this object
|
|
1087
|
+
def update!(**args)
|
|
1088
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1089
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
1090
|
+
end
|
|
1091
|
+
end
|
|
1092
|
+
|
|
1044
1093
|
# Volume describes a Docker container volume which is mounted into build steps
|
|
1045
1094
|
# in order to persist files across build step execution.
|
|
1046
1095
|
class Volume
|