Autogenerated update (2017-09-27)

Update:
- analyticsreporting_v4
- bigquerydatatransfer_v1
- classroom_v1
- cloudtasks_v2beta2
- content_v2
- content_v2sandbox
- dataflow_v1b3
- deploymentmanager_alpha
- deploymentmanager_v2
- deploymentmanager_v2beta
- firebaserules_v1
- kgsearch_v1
- ml_v1
- oslogin_v1alpha
- oslogin_v1beta
- toolresults_v1beta3
This commit is contained in:
Google APIs 2017-09-27 00:35:09 +00:00
parent 37b7897513
commit 104c08fa2a
36 changed files with 1503 additions and 49 deletions

View File

@ -11272,6 +11272,20 @@
"/civicinfo:v2/key": key
"/civicinfo:v2/quotaUser": quota_user
"/civicinfo:v2/userIp": user_ip
"/classroom:v1/Announcement": announcement
"/classroom:v1/Announcement/alternateLink": alternate_link
"/classroom:v1/Announcement/assigneeMode": assignee_mode
"/classroom:v1/Announcement/courseId": course_id
"/classroom:v1/Announcement/creationTime": creation_time
"/classroom:v1/Announcement/creatorUserId": creator_user_id
"/classroom:v1/Announcement/id": id
"/classroom:v1/Announcement/individualStudentsOptions": individual_students_options
"/classroom:v1/Announcement/materials": materials
"/classroom:v1/Announcement/materials/material": material
"/classroom:v1/Announcement/scheduledTime": scheduled_time
"/classroom:v1/Announcement/state": state
"/classroom:v1/Announcement/text": text
"/classroom:v1/Announcement/updateTime": update_time
"/classroom:v1/Assignment": assignment
"/classroom:v1/Assignment/studentWorkFolder": student_work_folder
"/classroom:v1/AssignmentSubmission": assignment_submission
@ -11282,6 +11296,8 @@
"/classroom:v1/Attachment/form": form
"/classroom:v1/Attachment/link": link
"/classroom:v1/Attachment/youTubeVideo": you_tube_video
"/classroom:v1/CloudPubsubTopic": cloud_pubsub_topic
"/classroom:v1/CloudPubsubTopic/topicName": topic_name
"/classroom:v1/Course": course
"/classroom:v1/Course/alternateLink": alternate_link
"/classroom:v1/Course/calendarId": calendar_id
@ -11313,16 +11329,21 @@
"/classroom:v1/CourseMaterialSet/materials": materials
"/classroom:v1/CourseMaterialSet/materials/material": material
"/classroom:v1/CourseMaterialSet/title": title
"/classroom:v1/CourseRosterChangesInfo": course_roster_changes_info
"/classroom:v1/CourseRosterChangesInfo/courseId": course_id
"/classroom:v1/CourseWork": course_work
"/classroom:v1/CourseWork/alternateLink": alternate_link
"/classroom:v1/CourseWork/assigneeMode": assignee_mode
"/classroom:v1/CourseWork/assignment": assignment
"/classroom:v1/CourseWork/associatedWithDeveloper": associated_with_developer
"/classroom:v1/CourseWork/courseId": course_id
"/classroom:v1/CourseWork/creationTime": creation_time
"/classroom:v1/CourseWork/creatorUserId": creator_user_id
"/classroom:v1/CourseWork/description": description
"/classroom:v1/CourseWork/dueDate": due_date
"/classroom:v1/CourseWork/dueTime": due_time
"/classroom:v1/CourseWork/id": id
"/classroom:v1/CourseWork/individualStudentsOptions": individual_students_options
"/classroom:v1/CourseWork/materials": materials
"/classroom:v1/CourseWork/materials/material": material
"/classroom:v1/CourseWork/maxPoints": max_points
@ -11347,6 +11368,9 @@
"/classroom:v1/DriveFolder/id": id
"/classroom:v1/DriveFolder/title": title
"/classroom:v1/Empty": empty
"/classroom:v1/Feed": feed
"/classroom:v1/Feed/courseRosterChangesInfo": course_roster_changes_info
"/classroom:v1/Feed/feedType": feed_type
"/classroom:v1/Form": form
"/classroom:v1/Form/formUrl": form_url
"/classroom:v1/Form/responseUrl": response_url
@ -11371,6 +11395,9 @@
"/classroom:v1/GuardianInvitation/invitedEmailAddress": invited_email_address
"/classroom:v1/GuardianInvitation/state": state
"/classroom:v1/GuardianInvitation/studentId": student_id
"/classroom:v1/IndividualStudentsOptions": individual_students_options
"/classroom:v1/IndividualStudentsOptions/studentIds": student_ids
"/classroom:v1/IndividualStudentsOptions/studentIds/student_id": student_id
"/classroom:v1/Invitation": invitation
"/classroom:v1/Invitation/courseId": course_id
"/classroom:v1/Invitation/id": id
@ -11380,6 +11407,10 @@
"/classroom:v1/Link/thumbnailUrl": thumbnail_url
"/classroom:v1/Link/title": title
"/classroom:v1/Link/url": url
"/classroom:v1/ListAnnouncementsResponse": list_announcements_response
"/classroom:v1/ListAnnouncementsResponse/announcements": announcements
"/classroom:v1/ListAnnouncementsResponse/announcements/announcement": announcement
"/classroom:v1/ListAnnouncementsResponse/nextPageToken": next_page_token
"/classroom:v1/ListCourseAliasesResponse": list_course_aliases_response
"/classroom:v1/ListCourseAliasesResponse/aliases": aliases
"/classroom:v1/ListCourseAliasesResponse/aliases/alias": alias
@ -11421,9 +11452,20 @@
"/classroom:v1/Material/form": form
"/classroom:v1/Material/link": link
"/classroom:v1/Material/youtubeVideo": youtube_video
"/classroom:v1/ModifyAnnouncementAssigneesRequest": modify_announcement_assignees_request
"/classroom:v1/ModifyAnnouncementAssigneesRequest/assigneeMode": assignee_mode
"/classroom:v1/ModifyAnnouncementAssigneesRequest/modifyIndividualStudentsOptions": modify_individual_students_options
"/classroom:v1/ModifyAttachmentsRequest": modify_attachments_request
"/classroom:v1/ModifyAttachmentsRequest/addAttachments": add_attachments
"/classroom:v1/ModifyAttachmentsRequest/addAttachments/add_attachment": add_attachment
"/classroom:v1/ModifyCourseWorkAssigneesRequest": modify_course_work_assignees_request
"/classroom:v1/ModifyCourseWorkAssigneesRequest/assigneeMode": assignee_mode
"/classroom:v1/ModifyCourseWorkAssigneesRequest/modifyIndividualStudentsOptions": modify_individual_students_options
"/classroom:v1/ModifyIndividualStudentsOptions": modify_individual_students_options
"/classroom:v1/ModifyIndividualStudentsOptions/addStudentIds": add_student_ids
"/classroom:v1/ModifyIndividualStudentsOptions/addStudentIds/add_student_id": add_student_id
"/classroom:v1/ModifyIndividualStudentsOptions/removeStudentIds": remove_student_ids
"/classroom:v1/ModifyIndividualStudentsOptions/removeStudentIds/remove_student_id": remove_student_id
"/classroom:v1/MultipleChoiceQuestion": multiple_choice_question
"/classroom:v1/MultipleChoiceQuestion/choices": choices
"/classroom:v1/MultipleChoiceQuestion/choices/choice": choice
@ -11434,6 +11476,11 @@
"/classroom:v1/Name/fullName": full_name
"/classroom:v1/Name/givenName": given_name
"/classroom:v1/ReclaimStudentSubmissionRequest": reclaim_student_submission_request
"/classroom:v1/Registration": registration
"/classroom:v1/Registration/cloudPubsubTopic": cloud_pubsub_topic
"/classroom:v1/Registration/expiryTime": expiry_time
"/classroom:v1/Registration/feed": feed
"/classroom:v1/Registration/registrationId": registration_id
"/classroom:v1/ReturnStudentSubmissionRequest": return_student_submission_request
"/classroom:v1/SharedDriveFile": shared_drive_file
"/classroom:v1/SharedDriveFile/driveFile": drive_file
@ -11503,6 +11550,27 @@
"/classroom:v1/classroom.courses.aliases.list/courseId": course_id
"/classroom:v1/classroom.courses.aliases.list/pageSize": page_size
"/classroom:v1/classroom.courses.aliases.list/pageToken": page_token
"/classroom:v1/classroom.courses.announcements.create": create_course_announcement
"/classroom:v1/classroom.courses.announcements.create/courseId": course_id
"/classroom:v1/classroom.courses.announcements.delete": delete_course_announcement
"/classroom:v1/classroom.courses.announcements.delete/courseId": course_id
"/classroom:v1/classroom.courses.announcements.delete/id": id
"/classroom:v1/classroom.courses.announcements.get": get_course_announcement
"/classroom:v1/classroom.courses.announcements.get/courseId": course_id
"/classroom:v1/classroom.courses.announcements.get/id": id
"/classroom:v1/classroom.courses.announcements.list": list_course_announcements
"/classroom:v1/classroom.courses.announcements.list/announcementStates": announcement_states
"/classroom:v1/classroom.courses.announcements.list/courseId": course_id
"/classroom:v1/classroom.courses.announcements.list/orderBy": order_by
"/classroom:v1/classroom.courses.announcements.list/pageSize": page_size
"/classroom:v1/classroom.courses.announcements.list/pageToken": page_token
"/classroom:v1/classroom.courses.announcements.modifyAssignees": modify_course_announcement_assignees
"/classroom:v1/classroom.courses.announcements.modifyAssignees/courseId": course_id
"/classroom:v1/classroom.courses.announcements.modifyAssignees/id": id
"/classroom:v1/classroom.courses.announcements.patch": patch_course_announcement
"/classroom:v1/classroom.courses.announcements.patch/courseId": course_id
"/classroom:v1/classroom.courses.announcements.patch/id": id
"/classroom:v1/classroom.courses.announcements.patch/updateMask": update_mask
"/classroom:v1/classroom.courses.courseWork.create": create_course_work
"/classroom:v1/classroom.courses.courseWork.create/courseId": course_id
"/classroom:v1/classroom.courses.courseWork.delete": delete_course_course_work
@ -11517,6 +11585,9 @@
"/classroom:v1/classroom.courses.courseWork.list/orderBy": order_by
"/classroom:v1/classroom.courses.courseWork.list/pageSize": page_size
"/classroom:v1/classroom.courses.courseWork.list/pageToken": page_token
"/classroom:v1/classroom.courses.courseWork.modifyAssignees": modify_course_course_work_assignees
"/classroom:v1/classroom.courses.courseWork.modifyAssignees/courseId": course_id
"/classroom:v1/classroom.courses.courseWork.modifyAssignees/id": id
"/classroom:v1/classroom.courses.courseWork.patch": patch_course_course_work
"/classroom:v1/classroom.courses.courseWork.patch/courseId": course_id
"/classroom:v1/classroom.courses.courseWork.patch/id": id
@ -11607,6 +11678,9 @@
"/classroom:v1/classroom.invitations.list/pageSize": page_size
"/classroom:v1/classroom.invitations.list/pageToken": page_token
"/classroom:v1/classroom.invitations.list/userId": user_id
"/classroom:v1/classroom.registrations.create": create_registration
"/classroom:v1/classroom.registrations.delete": delete_registration
"/classroom:v1/classroom.registrations.delete/registrationId": registration_id
"/classroom:v1/classroom.userProfiles.get": get_user_profile
"/classroom:v1/classroom.userProfiles.get/userId": user_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.create": create_user_profile_guardian_invitation
@ -28127,7 +28201,13 @@
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems": line_items
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems/line_item": line_item
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentId": shipment_id
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos": shipment_infos
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos/shipment_info": shipment_info
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/trackingId": tracking_id
"/content:v2/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo": orders_custom_batch_request_entry_ship_line_items_shipment_info
"/content:v2/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/carrier": carrier
"/content:v2/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/shipmentId": shipment_id
"/content:v2/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/trackingId": tracking_id
"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment": orders_custom_batch_request_entry_update_shipment
"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/carrier": carrier
"/content:v2/OrdersCustomBatchRequestEntryUpdateShipment/shipmentId": shipment_id
@ -28177,6 +28257,8 @@
"/content:v2/OrdersShipLineItemsRequest/lineItems/line_item": line_item
"/content:v2/OrdersShipLineItemsRequest/operationId": operation_id
"/content:v2/OrdersShipLineItemsRequest/shipmentId": shipment_id
"/content:v2/OrdersShipLineItemsRequest/shipmentInfos": shipment_infos
"/content:v2/OrdersShipLineItemsRequest/shipmentInfos/shipment_info": shipment_info
"/content:v2/OrdersShipLineItemsRequest/trackingId": tracking_id
"/content:v2/OrdersShipLineItemsResponse": orders_ship_line_items_response
"/content:v2/OrdersShipLineItemsResponse/executionStatus": execution_status
@ -28948,7 +29030,13 @@
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/lineItems": line_items
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/lineItems/line_item": line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentId": shipment_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos": shipment_infos
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos/shipment_info": shipment_info
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/trackingId": tracking_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo": orders_custom_batch_request_entry_ship_line_items_shipment_info
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/carrier": carrier
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/shipmentId": shipment_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo/trackingId": tracking_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryUpdateShipment": orders_custom_batch_request_entry_update_shipment
"/content:v2sandbox/OrdersCustomBatchRequestEntryUpdateShipment/carrier": carrier
"/content:v2sandbox/OrdersCustomBatchRequestEntryUpdateShipment/shipmentId": shipment_id
@ -28998,6 +29086,8 @@
"/content:v2sandbox/OrdersShipLineItemsRequest/lineItems/line_item": line_item
"/content:v2sandbox/OrdersShipLineItemsRequest/operationId": operation_id
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentId": shipment_id
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentInfos": shipment_infos
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentInfos/shipment_info": shipment_info
"/content:v2sandbox/OrdersShipLineItemsRequest/trackingId": tracking_id
"/content:v2sandbox/OrdersShipLineItemsResponse": orders_ship_line_items_response
"/content:v2sandbox/OrdersShipLineItemsResponse/executionStatus": execution_status
@ -29383,6 +29473,7 @@
"/dataflow:v1b3/DisplayData/url": url
"/dataflow:v1b3/DistributionUpdate": distribution_update
"/dataflow:v1b3/DistributionUpdate/count": count
"/dataflow:v1b3/DistributionUpdate/histogram": histogram
"/dataflow:v1b3/DistributionUpdate/logBuckets": log_buckets
"/dataflow:v1b3/DistributionUpdate/logBuckets/log_bucket": log_bucket
"/dataflow:v1b3/DistributionUpdate/max": max
@ -29445,6 +29536,10 @@
"/dataflow:v1b3/GetTemplateResponse": get_template_response
"/dataflow:v1b3/GetTemplateResponse/metadata": metadata
"/dataflow:v1b3/GetTemplateResponse/status": status
"/dataflow:v1b3/Histogram": histogram
"/dataflow:v1b3/Histogram/bucketCounts": bucket_counts
"/dataflow:v1b3/Histogram/bucketCounts/bucket_count": bucket_count
"/dataflow:v1b3/Histogram/firstBucketOffset": first_bucket_offset
"/dataflow:v1b3/InstructionInput": instruction_input
"/dataflow:v1b3/InstructionInput/outputNum": output_num
"/dataflow:v1b3/InstructionInput/producerInstructionIndex": producer_instruction_index
@ -31301,6 +31396,7 @@
"/deploymentmanager:alpha/Credential/serviceAccount": service_account
"/deploymentmanager:alpha/Credential/useProjectDefault": use_project_default
"/deploymentmanager:alpha/Deployment": deployment
"/deploymentmanager:alpha/Deployment/credential": credential
"/deploymentmanager:alpha/Deployment/description": description
"/deploymentmanager:alpha/Deployment/fingerprint": fingerprint
"/deploymentmanager:alpha/Deployment/id": id
@ -31322,6 +31418,7 @@
"/deploymentmanager:alpha/DeploymentOutputsEntry/key": key
"/deploymentmanager:alpha/DeploymentOutputsEntry/value": value
"/deploymentmanager:alpha/DeploymentUpdate": deployment_update
"/deploymentmanager:alpha/DeploymentUpdate/credential": credential
"/deploymentmanager:alpha/DeploymentUpdate/description": description
"/deploymentmanager:alpha/DeploymentUpdate/labels": labels
"/deploymentmanager:alpha/DeploymentUpdate/labels/label": label
@ -31436,6 +31533,7 @@
"/deploymentmanager:alpha/Resource/finalProperties": final_properties
"/deploymentmanager:alpha/Resource/id": id
"/deploymentmanager:alpha/Resource/insertTime": insert_time
"/deploymentmanager:alpha/Resource/lastUsedCredential": last_used_credential
"/deploymentmanager:alpha/Resource/manifest": manifest
"/deploymentmanager:alpha/Resource/name": name
"/deploymentmanager:alpha/Resource/properties": properties
@ -31455,6 +31553,7 @@
"/deploymentmanager:alpha/ResourceAccessControl/gcpIamPolicy": gcp_iam_policy
"/deploymentmanager:alpha/ResourceUpdate": resource_update
"/deploymentmanager:alpha/ResourceUpdate/accessControl": access_control
"/deploymentmanager:alpha/ResourceUpdate/credential": credential
"/deploymentmanager:alpha/ResourceUpdate/error": error
"/deploymentmanager:alpha/ResourceUpdate/error/errors": errors
"/deploymentmanager:alpha/ResourceUpdate/error/errors/error": error
@ -40206,6 +40305,12 @@
"/firebaserules:v1/FunctionMock/args/arg": arg
"/firebaserules:v1/FunctionMock/function": function
"/firebaserules:v1/FunctionMock/result": result
"/firebaserules:v1/GetReleaseExecutableResponse": get_release_executable_response
"/firebaserules:v1/GetReleaseExecutableResponse/executable": executable
"/firebaserules:v1/GetReleaseExecutableResponse/executableVersion": executable_version
"/firebaserules:v1/GetReleaseExecutableResponse/language": language
"/firebaserules:v1/GetReleaseExecutableResponse/rulesetName": ruleset_name
"/firebaserules:v1/GetReleaseExecutableResponse/updateTime": update_time
"/firebaserules:v1/Issue": issue
"/firebaserules:v1/Issue/description": description
"/firebaserules:v1/Issue/severity": severity
@ -40268,6 +40373,9 @@
"/firebaserules:v1/firebaserules.projects.releases.delete/name": name
"/firebaserules:v1/firebaserules.projects.releases.get": get_project_release
"/firebaserules:v1/firebaserules.projects.releases.get/name": name
"/firebaserules:v1/firebaserules.projects.releases.getExecutable": get_project_release_executable
"/firebaserules:v1/firebaserules.projects.releases.getExecutable/executableVersion": executable_version
"/firebaserules:v1/firebaserules.projects.releases.getExecutable/name": name
"/firebaserules:v1/firebaserules.projects.releases.list": list_project_releases
"/firebaserules:v1/firebaserules.projects.releases.list/filter": filter
"/firebaserules:v1/firebaserules.projects.releases.list/name": name

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4
VERSION = 'V4'
REVISION = '20170411'
REVISION = '20170925'
# View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20170917'
REVISION = '20170925'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -25,7 +25,13 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20170803'
REVISION = '20170926'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
# View announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS_READONLY = 'https://www.googleapis.com/auth/classroom.announcements.readonly'
# Manage your Google Classroom classes
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'

View File

@ -22,6 +22,104 @@ module Google
module Apis
module ClassroomV1
# Announcement created by a teacher for students of the course
class Announcement
include Google::Apis::Core::Hashable
# Absolute link to this announcement in the Classroom web UI.
# This is only populated if `state` is `PUBLISHED`.
# Read-only.
# Corresponds to the JSON property `alternateLink`
# @return [String]
attr_accessor :alternate_link
# Assignee mode of the announcement.
# If unspecified, the default value is `ALL_STUDENTS`.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Identifier of the course.
# Read-only.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# Timestamp when this announcement was created.
# Read-only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# Identifier for the user that created the announcement.
# Read-only.
# Corresponds to the JSON property `creatorUserId`
# @return [String]
attr_accessor :creator_user_id
# Classroom-assigned identifier of this announcement, unique per course.
# Read-only.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Assignee details about a coursework/announcement.
# This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `individualStudentsOptions`
# @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
attr_accessor :individual_students_options
# Additional materials.
# Announcements must have no more than 20 material items.
# Corresponds to the JSON property `materials`
# @return [Array<Google::Apis::ClassroomV1::Material>]
attr_accessor :materials
# Optional timestamp when this announcement is scheduled to be published.
# Corresponds to the JSON property `scheduledTime`
# @return [String]
attr_accessor :scheduled_time
# Status of this announcement.
# If unspecified, the default state is `DRAFT`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Description of this announcement.
# The text must be a valid UTF-8 string containing no more
# than 30,000 characters.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
# Timestamp of the most recent change to this announcement.
# Read-only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@course_id = args[:course_id] if args.key?(:course_id)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
@id = args[:id] if args.key?(:id)
@individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
@materials = args[:materials] if args.key?(:materials)
@scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
@state = args[:state] if args.key?(:state)
@text = args[:text] if args.key?(:text)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Additional details for assignments.
class Assignment
include Google::Apis::Core::Hashable
@ -104,6 +202,30 @@ module Google
end
end
# A reference to a Cloud Pub/Sub topic.
# To register for notifications, the owner of the topic must grant
# `classroom-notifications@system.gserviceaccount.com` the
# `projects.topics.publish` permission.
class CloudPubsubTopic
include Google::Apis::Core::Hashable
# The `name` field of a Cloud Pub/Sub
# [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#
# Topic).
# Corresponds to the JSON property `topicName`
# @return [String]
attr_accessor :topic_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@topic_name = args[:topic_name] if args.key?(:topic_name)
end
end
# A Course in Classroom.
class Course
include Google::Apis::Core::Hashable
@ -375,6 +497,25 @@ module Google
end
end
# Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`.
class CourseRosterChangesInfo
include Google::Apis::Core::Hashable
# The `course_id` of the course to subscribe to roster changes for.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] if args.key?(:course_id)
end
end
# Course work created by a teacher for students of the course.
class CourseWork
include Google::Apis::Core::Hashable
@ -386,6 +527,12 @@ module Google
# @return [String]
attr_accessor :alternate_link
# Assignee mode of the coursework.
# If unspecified, the default value is `ALL_STUDENTS`.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Additional details for assignments.
# Corresponds to the JSON property `assignment`
# @return [Google::Apis::ClassroomV1::Assignment]
@ -413,6 +560,12 @@ module Google
# @return [String]
attr_accessor :creation_time
# Identifier for the user that created the coursework.
# Read-only.
# Corresponds to the JSON property `creatorUserId`
# @return [String]
attr_accessor :creator_user_id
# Optional description of this course work.
# If set, the description must be a valid UTF-8 string containing no more
# than 30,000 characters.
@ -444,6 +597,12 @@ module Google
# @return [String]
attr_accessor :id
# Assignee details about a coursework/announcement.
# This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `individualStudentsOptions`
# @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
attr_accessor :individual_students_options
# Additional materials.
# CourseWork must have no more than 20 material items.
# Corresponds to the JSON property `materials`
@ -505,14 +664,17 @@ module Google
# Update properties of this object
def update!(**args)
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@assignment = args[:assignment] if args.key?(:assignment)
@associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer)
@course_id = args[:course_id] if args.key?(:course_id)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
@description = args[:description] if args.key?(:description)
@due_date = args[:due_date] if args.key?(:due_date)
@due_time = args[:due_time] if args.key?(:due_time)
@id = args[:id] if args.key?(:id)
@individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
@materials = args[:materials] if args.key?(:materials)
@max_points = args[:max_points] if args.key?(:max_points)
@multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question)
@ -656,6 +818,32 @@ module Google
end
end
# A class of notifications that an application can register to receive.
# For example: "all roster changes for a domain".
class Feed
include Google::Apis::Core::Hashable
# Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`.
# Corresponds to the JSON property `courseRosterChangesInfo`
# @return [Google::Apis::ClassroomV1::CourseRosterChangesInfo]
attr_accessor :course_roster_changes_info
# The type of feed.
# Corresponds to the JSON property `feedType`
# @return [String]
attr_accessor :feed_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_roster_changes_info = args[:course_roster_changes_info] if args.key?(:course_roster_changes_info)
@feed_type = args[:feed_type] if args.key?(:feed_type)
end
end
# Google Forms item.
class Form
include Google::Apis::Core::Hashable
@ -847,6 +1035,27 @@ module Google
end
end
# Assignee details about a coursework/announcement.
# This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
class IndividualStudentsOptions
include Google::Apis::Core::Hashable
# Identifiers for the students that have access to the
# coursework/announcement.
# Corresponds to the JSON property `studentIds`
# @return [Array<String>]
attr_accessor :student_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@student_ids = args[:student_ids] if args.key?(:student_ids)
end
end
# An invitation to join a course.
class Invitation
include Google::Apis::Core::Hashable
@ -925,6 +1134,32 @@ module Google
end
end
# Response when listing course work.
class ListAnnouncementsResponse
include Google::Apis::Core::Hashable
# Announcement items that match the request.
# Corresponds to the JSON property `announcements`
# @return [Array<Google::Apis::ClassroomV1::Announcement>]
attr_accessor :announcements
# Token identifying the next page of results to return. If empty, no further
# results are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@announcements = args[:announcements] if args.key?(:announcements)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response when listing course aliases.
class ListCourseAliasesResponse
include Google::Apis::Core::Hashable
@ -1198,6 +1433,33 @@ module Google
end
end
# Request to modify assignee mode and options of an announcement.
class ModifyAnnouncementAssigneesRequest
include Google::Apis::Core::Hashable
# Mode of the announcement describing whether it will be accessible by all
# students or specified individual students.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Contains fields to add or remove students from a course work or announcement
# where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `modifyIndividualStudentsOptions`
# @return [Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions]
attr_accessor :modify_individual_students_options
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@modify_individual_students_options = args[:modify_individual_students_options] if args.key?(:modify_individual_students_options)
end
end
# Request to modify the attachments of a student submission.
class ModifyAttachmentsRequest
include Google::Apis::Core::Hashable
@ -1219,6 +1481,61 @@ module Google
end
end
# Request to modify assignee mode and options of a coursework.
class ModifyCourseWorkAssigneesRequest
include Google::Apis::Core::Hashable
# Mode of the coursework describing whether it will be assigned to all
# students or specified individual students.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Contains fields to add or remove students from a course work or announcement
# where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `modifyIndividualStudentsOptions`
# @return [Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions]
attr_accessor :modify_individual_students_options
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@modify_individual_students_options = args[:modify_individual_students_options] if args.key?(:modify_individual_students_options)
end
end
# Contains fields to add or remove students from a course work or announcement
# where the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`.
class ModifyIndividualStudentsOptions
include Google::Apis::Core::Hashable
# Ids of students to be added as having access to this
# coursework/announcement.
# Corresponds to the JSON property `addStudentIds`
# @return [Array<String>]
attr_accessor :add_student_ids
# Ids of students to be removed from having access to this
# coursework/announcement.
# Corresponds to the JSON property `removeStudentIds`
# @return [Array<String>]
attr_accessor :remove_student_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@add_student_ids = args[:add_student_ids] if args.key?(:add_student_ids)
@remove_student_ids = args[:remove_student_ids] if args.key?(:remove_student_ids)
end
end
# Additional details for multiple-choice questions.
class MultipleChoiceQuestion
include Google::Apis::Core::Hashable
@ -1305,6 +1622,50 @@ module Google
end
end
# An instruction to Classroom to send notifications from the `feed` to the
# provided `destination`.
class Registration
include Google::Apis::Core::Hashable
# A reference to a Cloud Pub/Sub topic.
# To register for notifications, the owner of the topic must grant
# `classroom-notifications@system.gserviceaccount.com` the
# `projects.topics.publish` permission.
# Corresponds to the JSON property `cloudPubsubTopic`
# @return [Google::Apis::ClassroomV1::CloudPubsubTopic]
attr_accessor :cloud_pubsub_topic
# The time until which the `Registration` is effective.
# This is a read-only field assigned by the server.
# Corresponds to the JSON property `expiryTime`
# @return [String]
attr_accessor :expiry_time
# A class of notifications that an application can register to receive.
# For example: "all roster changes for a domain".
# Corresponds to the JSON property `feed`
# @return [Google::Apis::ClassroomV1::Feed]
attr_accessor :feed
# A server-generated unique identifier for this `Registration`.
# Read-only.
# Corresponds to the JSON property `registrationId`
# @return [String]
attr_accessor :registration_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cloud_pubsub_topic = args[:cloud_pubsub_topic] if args.key?(:cloud_pubsub_topic)
@expiry_time = args[:expiry_time] if args.key?(:expiry_time)
@feed = args[:feed] if args.key?(:feed)
@registration_id = args[:registration_id] if args.key?(:registration_id)
end
end
# Request to return a student submission.
class ReturnStudentSubmissionRequest
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis
module ClassroomV1
class Announcement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CloudPubsubTopic
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Course
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CourseRosterChangesInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CourseWork
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Feed
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Form
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -124,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class IndividualStudentsOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Invitation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListAnnouncementsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseAliasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,12 +232,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ModifyAnnouncementAssigneesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModifyAttachmentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModifyCourseWorkAssigneesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModifyIndividualStudentsOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MultipleChoiceQuestion
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -226,6 +280,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Registration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReturnStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -298,6 +358,26 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Announcement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternate_link, as: 'alternateLink'
property :assignee_mode, as: 'assigneeMode'
property :course_id, as: 'courseId'
property :creation_time, as: 'creationTime'
property :creator_user_id, as: 'creatorUserId'
property :id, as: 'id'
property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :scheduled_time, as: 'scheduledTime'
property :state, as: 'state'
property :text, as: 'text'
property :update_time, as: 'updateTime'
end
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -328,6 +408,13 @@ module Google
end
end
class CloudPubsubTopic
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :topic_name, as: 'topicName'
end
end
class Course
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -384,21 +471,32 @@ module Google
end
end
class CourseRosterChangesInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
end
end
class CourseWork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternate_link, as: 'alternateLink'
property :assignee_mode, as: 'assigneeMode'
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
property :associated_with_developer, as: 'associatedWithDeveloper'
property :course_id, as: 'courseId'
property :creation_time, as: 'creationTime'
property :creator_user_id, as: 'creatorUserId'
property :description, as: 'description'
property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation
property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
property :id, as: 'id'
property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :max_points, as: 'maxPoints'
@ -447,6 +545,15 @@ module Google
end
end
class Feed
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_roster_changes_info, as: 'courseRosterChangesInfo', class: Google::Apis::ClassroomV1::CourseRosterChangesInfo, decorator: Google::Apis::ClassroomV1::CourseRosterChangesInfo::Representation
property :feed_type, as: 'feedType'
end
end
class Form
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -497,6 +604,13 @@ module Google
end
end
class IndividualStudentsOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :student_ids, as: 'studentIds'
end
end
class Invitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -516,6 +630,15 @@ module Google
end
end
class ListAnnouncementsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :announcements, as: 'announcements', class: Google::Apis::ClassroomV1::Announcement, decorator: Google::Apis::ClassroomV1::Announcement::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListCourseAliasesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -611,6 +734,15 @@ module Google
end
end
class ModifyAnnouncementAssigneesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignee_mode, as: 'assigneeMode'
property :modify_individual_students_options, as: 'modifyIndividualStudentsOptions', class: Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions::Representation
end
end
class ModifyAttachmentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -619,6 +751,23 @@ module Google
end
end
class ModifyCourseWorkAssigneesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignee_mode, as: 'assigneeMode'
property :modify_individual_students_options, as: 'modifyIndividualStudentsOptions', class: Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions::Representation
end
end
class ModifyIndividualStudentsOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_student_ids, as: 'addStudentIds'
collection :remove_student_ids, as: 'removeStudentIds'
end
end
class MultipleChoiceQuestion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -648,6 +797,18 @@ module Google
end
end
class Registration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_pubsub_topic, as: 'cloudPubsubTopic', class: Google::Apis::ClassroomV1::CloudPubsubTopic, decorator: Google::Apis::ClassroomV1::CloudPubsubTopic::Representation
property :expiry_time, as: 'expiryTime'
property :feed, as: 'feed', class: Google::Apis::ClassroomV1::Feed, decorator: Google::Apis::ClassroomV1::Feed::Representation
property :registration_id, as: 'registrationId'
end
end
class ReturnStudentSubmissionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -460,6 +460,301 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates an announcement.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course, create announcements in the requested course, share a
# Drive attachment, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course does not exist.
# * `FAILED_PRECONDITION` for the following request error:
# * AttachmentNotVisible
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Google::Apis::ClassroomV1::Announcement] announcement_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Announcement] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Announcement]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_course_announcement(course_id, announcement_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/courses/{courseId}/announcements', options)
command.request_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.request_object = announcement_object
command.response_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.response_class = Google::Apis::ClassroomV1::Announcement
command.params['courseId'] = course_id unless course_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an announcement.
# This request must be made by the Developer Console project of the
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
# create the corresponding announcement item.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project did not create
# the corresponding announcement, if the requesting user is not permitted
# to delete the requested course or for access errors.
# * `FAILED_PRECONDITION` if the requested announcement has already been
# deleted.
# * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the announcement to delete.
# This identifier is a Classroom-assigned identifier.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_course_announcement(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/courses/{courseId}/announcements/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns an announcement.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or announcement, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course or announcement does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the announcement.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Announcement] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Announcement]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_course_announcement(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/announcements/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.response_class = Google::Apis::ClassroomV1::Announcement
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of announcements that the requester is permitted to view.
# Course students may only view `PUBLISHED` announcements. Course teachers
# and domain administrators may view all announcements.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
# the requested course or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Array<String>, String] announcement_states
# Restriction on the `state` of announcements returned.
# If this argument is left unspecified, the default value is `PUBLISHED`.
# @param [String] order_by
# Optional sort ordering for results. A comma-separated list of fields with
# an optional sort direction keyword. Supported field is `updateTime`.
# Supported direction keywords are `asc` and `desc`.
# If not specified, `updateTime desc` is the default behavior.
# Examples: `updateTime asc`, `updateTime`
# @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum.
# The server may return fewer than the specified number of results.
# @param [String] page_token
# nextPageToken
# value returned from a previous
# list call,
# indicating that the subsequent page of results should be returned.
# The list request
# must be otherwise identical to the one that resulted in this token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::ListAnnouncementsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::ListAnnouncementsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_course_announcements(course_id, announcement_states: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/announcements', options)
command.response_representation = Google::Apis::ClassroomV1::ListAnnouncementsResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListAnnouncementsResponse
command.params['courseId'] = course_id unless course_id.nil?
command.query['announcementStates'] = announcement_states unless announcement_states.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Modifies assignee mode and options of an announcement.
# Only a teacher of the course that contains the announcement may
# call this method.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or course work or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course or course work does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the announcement.
# @param [Google::Apis::ClassroomV1::ModifyAnnouncementAssigneesRequest] modify_announcement_assignees_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Announcement] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Announcement]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_course_announcement_assignees(course_id, id, modify_announcement_assignees_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/courses/{courseId}/announcements/{id}:modifyAssignees', options)
command.request_representation = Google::Apis::ClassroomV1::ModifyAnnouncementAssigneesRequest::Representation
command.request_object = modify_announcement_assignees_request_object
command.response_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.response_class = Google::Apis::ClassroomV1::Announcement
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates one or more fields of an announcement.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project did not create
# the corresponding announcement or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `FAILED_PRECONDITION` if the requested announcement has already been
# deleted.
# * `NOT_FOUND` if the requested course or announcement does not exist
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the announcement.
# @param [Google::Apis::ClassroomV1::Announcement] announcement_object
# @param [String] update_mask
# Mask that identifies which fields on the announcement to update.
# This field is required to do an update. The update fails if invalid
# fields are specified. If a field supports empty values, it can be cleared
# by specifying it in the update mask and not in the Announcement object. If
# a field that does not support empty values is included in the update mask
# and not set in the Announcement object, an `INVALID_ARGUMENT` error will be
# returned.
# The following fields may be specified by teachers:
# * `text`
# * `state`
# * `scheduled_time`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Announcement] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Announcement]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_course_announcement(course_id, id, announcement_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/courses/{courseId}/announcements/{id}', options)
command.request_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.request_object = announcement_object
command.response_representation = Google::Apis::ClassroomV1::Announcement::Representation
command.response_class = Google::Apis::ClassroomV1::Announcement
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates course work.
# The resulting course work (and corresponding student submissions) are
# associated with the Developer Console project of the
@ -659,6 +954,51 @@ module Google
execute_or_queue_command(command, &block)
end
# Modifies assignee mode and options of a coursework.
# Only a teacher of the course that contains the coursework may
# call this method.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or course work or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course or course work does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the coursework.
# @param [Google::Apis::ClassroomV1::ModifyCourseWorkAssigneesRequest] modify_course_work_assignees_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::CourseWork] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWork]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_course_course_work_assignees(course_id, id, modify_course_work_assignees_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{id}:modifyAssignees', options)
command.request_representation = Google::Apis::ClassroomV1::ModifyCourseWorkAssigneesRequest::Representation
command.request_object = modify_course_work_assignees_request_object
command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWork
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates one or more fields of a course work.
# See google.classroom.v1.CourseWork for details
# of which fields may be updated and who may change them.
@ -1711,6 +2051,92 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a `Registration`, causing Classroom to start sending notifications
# from the provided `feed` to the provided `destination`.
# Returns the created `Registration`. Currently, this will be the same as
# the argument, but with server-assigned fields such as `expiry_time` and
# `id` filled in.
# Note that any value specified for the `expiry_time` or `id` fields will be
# ignored.
# While Classroom may validate the `destination` and return errors on a best
# effort basis, it is the caller's responsibility to ensure that it exists
# and that Classroom has permission to publish to it.
# This method may return the following error codes:
# * `PERMISSION_DENIED` if:
# * the authenticated user does not have permission to receive
# notifications from the requested field; or
# * the credential provided does not include the appropriate scope for the
# requested feed.
# * another access error is encountered.
# * `INVALID_ARGUMENT` if:
# * no `destination` is specified, or the specified `destination` is not
# valid; or
# * no `feed` is specified, or the specified `feed` is not valid.
# * `NOT_FOUND` if:
# * the specified `feed` cannot be located, or the requesting user does not
# have permission to determine whether or not it exists; or
# * the specified `destination` cannot be located, or Classroom has not
# been granted permission to publish to it.
# @param [Google::Apis::ClassroomV1::Registration] registration_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Registration] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Registration]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_registration(registration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/registrations', options)
command.request_representation = Google::Apis::ClassroomV1::Registration::Representation
command.request_object = registration_object
command.response_representation = Google::Apis::ClassroomV1::Registration::Representation
command.response_class = Google::Apis::ClassroomV1::Registration
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a `Registration`, causing Classroom to stop sending notifications
# for that `Registration`.
# @param [String] registration_id
# The `registration_id` of the `Registration` to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_registration(registration_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/registrations/{registrationId}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['registrationId'] = registration_id unless registration_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a user profile.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20170915'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -51,7 +51,7 @@ module Google
# the task is dispatched.
# This proto can only be used for tasks in a queue which has
# Queue.app_engine_http_target set.
# Using this type of target requires
# Using AppEngineHttpRequest requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project
# and the following scope:
@ -180,7 +180,7 @@ module Google
# specified by its AppEngineHttpTarget and AppEngineHttpRequest.
# The documentation for AppEngineHttpRequest explains how the
# task's host URL is constructed.
# Using this type of queue configuration requires
# Using AppEngineHttpTarget requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project
# and the following scope:
@ -1045,7 +1045,7 @@ module Google
# specified by its AppEngineHttpTarget and AppEngineHttpRequest.
# The documentation for AppEngineHttpRequest explains how the
# task's host URL is constructed.
# Using this type of queue configuration requires
# Using AppEngineHttpTarget requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project
# and the following scope:
@ -1440,7 +1440,7 @@ module Google
# the task is dispatched.
# This proto can only be used for tasks in a queue which has
# Queue.app_engine_http_target set.
# Using this type of target requires
# Using AppEngineHttpRequest requires
# [`appengine.applications.get`](/appengine/docs/admin-api/access-control)
# Google IAM permission for the project
# and the following scope:

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20170921'
REVISION = '20170926'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -1498,7 +1498,7 @@ module Google
attr_accessor :included_destinations
# The two-letter ISO 639-1 language of the items in the feed. Must be a valid
# language for targetCountryLanguage.country.
# language for targets[].country.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
@ -2987,7 +2987,8 @@ module Google
class OrderLineItemShippingDetailsMethod
include Google::Apis::Core::Hashable
# The carrier for the shipping. Optional.
# The carrier for the shipping. Optional. See shipments[].carrier for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -3276,6 +3277,29 @@ module Google
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Acceptable values are:
# - "gsx"
# - "ups"
# - "united parcel service"
# - "usps"
# - "united states postal service"
# - "fedex"
# - "dhl"
# - "ecourier"
# - "cxt"
# - "google"
# - "on trac"
# - "ontrac"
# - "on-trac"
# - "on_trac"
# - "delvic"
# - "dynamex"
# - "lasership"
# - "smartpost"
# - "fedex smartpost"
# - "mpx"
# - "uds"
# - "united delivery service"
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -3852,7 +3876,9 @@ module Google
class OrdersCustomBatchRequestEntryShipLineItems
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -3862,6 +3888,46 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
end
#
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
include Google::Apis::Core::Hashable
# The carrier handling the shipment. See shipments[].carrier in the Orders
# resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -3879,7 +3945,6 @@ module Google
# Update properties of this object
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
@ -3889,7 +3954,8 @@ module Google
class OrdersCustomBatchRequestEntryUpdateShipment
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing.
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -4214,7 +4280,9 @@ module Google
class OrdersShipLineItemsRequest
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -4229,12 +4297,18 @@ module Google
# @return [String]
attr_accessor :operation_id
# The ID of the shipment.
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# The tracking id for the shipment.
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
@ -4249,6 +4323,7 @@ module Google
@line_items = args[:line_items] if args.key?(:line_items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
end
@ -4334,7 +4409,8 @@ module Google
class OrdersUpdateShipmentRequest
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing.
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier

View File

@ -598,6 +598,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryUpdateShipment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2038,6 +2044,17 @@ module Google
property :carrier, as: 'carrier'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
property :tracking_id, as: 'trackingId'
end
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :carrier, as: 'carrier'
property :shipment_id, as: 'shipmentId'
property :tracking_id, as: 'trackingId'
end
@ -2149,6 +2166,8 @@ module Google
property :operation_id, as: 'operationId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
property :tracking_id, as: 'trackingId'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2sandbox
VERSION = 'V2sandbox'
REVISION = '20170921'
REVISION = '20170926'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -691,7 +691,8 @@ module Google
class OrderLineItemShippingDetailsMethod
include Google::Apis::Core::Hashable
# The carrier for the shipping. Optional.
# The carrier for the shipping. Optional. See shipments[].carrier for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -980,6 +981,29 @@ module Google
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Acceptable values are:
# - "gsx"
# - "ups"
# - "united parcel service"
# - "usps"
# - "united states postal service"
# - "fedex"
# - "dhl"
# - "ecourier"
# - "cxt"
# - "google"
# - "on trac"
# - "ontrac"
# - "on-trac"
# - "on_trac"
# - "delvic"
# - "dynamex"
# - "lasership"
# - "smartpost"
# - "fedex smartpost"
# - "mpx"
# - "uds"
# - "united delivery service"
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -1556,7 +1580,9 @@ module Google
class OrdersCustomBatchRequestEntryShipLineItems
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -1566,6 +1592,46 @@ module Google
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
end
#
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
include Google::Apis::Core::Hashable
# The carrier handling the shipment. See shipments[].carrier in the Orders
# resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
# The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -1583,7 +1649,6 @@ module Google
# Update properties of this object
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
@ -1593,7 +1658,8 @@ module Google
class OrdersCustomBatchRequestEntryUpdateShipment
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing.
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -1918,7 +1984,9 @@ module Google
class OrdersShipLineItemsRequest
include Google::Apis::Core::Hashable
# The carrier handling the shipment.
# Deprecated. Please use shipmentInfo instead. The carrier handling the shipment.
# See shipments[].carrier in the Orders resource representation for a list of
# acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -1933,12 +2001,18 @@ module Google
# @return [String]
attr_accessor :operation_id
# The ID of the shipment.
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
attr_accessor :shipment_id
# The tracking id for the shipment.
# Shipment information. This field is repeated because a single line item can be
# shipped in several packages (and have several tracking IDs).
# Corresponds to the JSON property `shipmentInfos`
# @return [Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>]
attr_accessor :shipment_infos
# Deprecated. Please use shipmentInfo instead. The tracking id for the shipment.
# Corresponds to the JSON property `trackingId`
# @return [String]
attr_accessor :tracking_id
@ -1953,6 +2027,7 @@ module Google
@line_items = args[:line_items] if args.key?(:line_items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end
end
@ -2038,7 +2113,8 @@ module Google
class OrdersUpdateShipmentRequest
include Google::Apis::Core::Hashable
# The carrier handling the shipment. Not updated if missing.
# The carrier handling the shipment. Not updated if missing. See shipments[].
# carrier in the Orders resource representation for a list of acceptable values.
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier

View File

@ -238,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryUpdateShipment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -795,6 +801,17 @@ module Google
property :carrier, as: 'carrier'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment::Representation
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
property :tracking_id, as: 'trackingId'
end
end
class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :carrier, as: 'carrier'
property :shipment_id, as: 'shipmentId'
property :tracking_id, as: 'trackingId'
end
@ -906,6 +923,8 @@ module Google
property :operation_id, as: 'operationId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
property :tracking_id, as: 'trackingId'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20170907'
REVISION = '20170918'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -894,6 +894,16 @@ module Google
# @return [Google::Apis::DataflowV1b3::SplitInt64]
attr_accessor :count
# Histogram of value counts for a distribution.
# Buckets have an inclusive lower bound and exclusive upper bound and use
# "1,2,5 bucketing": The first bucket range is from [0,1) and all subsequent
# bucket boundaries are powers of ten multiplied by 1, 2, or 5. Thus, bucket
# boundaries are 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ...
# Negative values are not supported.
# Corresponds to the JSON property `histogram`
# @return [Google::Apis::DataflowV1b3::Histogram]
attr_accessor :histogram
# A representation of an int64, n, that is immune to precision loss when
# encoded in JSON.
# Corresponds to the JSON property `max`
@ -924,6 +934,7 @@ module Google
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@histogram = args[:histogram] if args.key?(:histogram)
@max = args[:max] if args.key?(:max)
@min = args[:min] if args.key?(:min)
@sum = args[:sum] if args.key?(:sum)
@ -1344,6 +1355,41 @@ module Google
end
end
# Histogram of value counts for a distribution.
# Buckets have an inclusive lower bound and exclusive upper bound and use
# "1,2,5 bucketing": The first bucket range is from [0,1) and all subsequent
# bucket boundaries are powers of ten multiplied by 1, 2, or 5. Thus, bucket
# boundaries are 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ...
# Negative values are not supported.
class Histogram
include Google::Apis::Core::Hashable
# Counts of values in each bucket. For efficiency, prefix and trailing
# buckets with count = 0 are elided. Buckets can store the full range of
# values of an unsigned long, with ULLONG_MAX falling into the 59th bucket
# with range [1e19, 2e19).
# Corresponds to the JSON property `bucketCounts`
# @return [Array<Fixnum>]
attr_accessor :bucket_counts
# Starting index of first stored bucket. The non-inclusive upper-bound of
# the ith bucket is given by:
# pow(10,(i-first_bucket_offset)/3) * (1,2,5)[(i-first_bucket_offset)%3]
# Corresponds to the JSON property `firstBucketOffset`
# @return [Fixnum]
attr_accessor :first_bucket_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
@first_bucket_offset = args[:first_bucket_offset] if args.key?(:first_bucket_offset)
end
end
# An input of an instruction, as a reference to an output of a
# producer instruction.
class InstructionInput
@ -5159,9 +5205,13 @@ module Google
class WorkerShutdownNotice
include Google::Apis::Core::Hashable
# Optional reason to be attached for the shutdown notice.
# For example: "PREEMPTION" would indicate the VM is being shut down because
# of preemption. Other possible reasons may be added in the future.
# The reason for the worker shutdown.
# Current possible values are:
# "UNKNOWN": shutdown reason is unknown.
# "PREEMPTION": shutdown reason is preemption.
# Other possible reasons may be added in the future.
# Note that this must match the names of the enum specified in
# google3/cloud/dataflow/router/protos/cloud_worker_messages_service.proto.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason

View File

@ -214,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Histogram
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstructionInput
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1010,6 +1016,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :histogram, as: 'histogram', class: Google::Apis::DataflowV1b3::Histogram, decorator: Google::Apis::DataflowV1b3::Histogram::Representation
property :max, as: 'max', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :min, as: 'min', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
@ -1130,6 +1138,14 @@ module Google
end
end
class Histogram
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bucket_counts, as: 'bucketCounts'
property :first_bucket_offset, as: 'firstBucketOffset'
end
end
class InstructionInput
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerAlpha
VERSION = 'Alpha'
REVISION = '20170914'
REVISION = '20170925'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -486,6 +486,12 @@ module Google
class Deployment
include Google::Apis::Core::Hashable
# The credential used by Deployment Manager and TypeProvider. Only one of the
# options is permitted.
# Corresponds to the JSON property `credential`
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
attr_accessor :credential
# An optional user-provided description of the deployment.
# Corresponds to the JSON property `description`
# @return [String]
@ -571,6 +577,7 @@ module Google
# Update properties of this object
def update!(**args)
@credential = args[:credential] if args.key?(:credential)
@description = args[:description] if args.key?(:description)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@ -640,6 +647,12 @@ module Google
class DeploymentUpdate
include Google::Apis::Core::Hashable
# The credential used by Deployment Manager and TypeProvider. Only one of the
# options is permitted.
# Corresponds to the JSON property `credential`
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
attr_accessor :credential
# Output only. An optional user-provided description of the deployment after the
# current update has been applied.
# Corresponds to the JSON property `description`
@ -667,6 +680,7 @@ module Google
# Update properties of this object
def update!(**args)
@credential = args[:credential] if args.key?(:credential)
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
@manifest = args[:manifest] if args.key?(:manifest)
@ -1557,6 +1571,12 @@ module Google
# @return [String]
attr_accessor :insert_time
# The credential used by Deployment Manager and TypeProvider. Only one of the
# options is permitted.
# Corresponds to the JSON property `lastUsedCredential`
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
attr_accessor :last_used_credential
# Output only. URL of the manifest representing the current configuration of
# this resource.
# Corresponds to the JSON property `manifest`
@ -1611,6 +1631,7 @@ module Google
@final_properties = args[:final_properties] if args.key?(:final_properties)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@last_used_credential = args[:last_used_credential] if args.key?(:last_used_credential)
@manifest = args[:manifest] if args.key?(:manifest)
@name = args[:name] if args.key?(:name)
@properties = args[:properties] if args.key?(:properties)
@ -1714,6 +1735,12 @@ module Google
# @return [Google::Apis::DeploymentmanagerAlpha::ResourceAccessControl]
attr_accessor :access_control
# The credential used by Deployment Manager and TypeProvider. Only one of the
# options is permitted.
# Corresponds to the JSON property `credential`
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
attr_accessor :credential
# Output only. If errors are generated during update of the resource, this field
# will be populated.
# Corresponds to the JSON property `error`
@ -1761,6 +1788,7 @@ module Google
# Update properties of this object
def update!(**args)
@access_control = args[:access_control] if args.key?(:access_control)
@credential = args[:credential] if args.key?(:credential)
@error = args[:error] if args.key?(:error)
@final_properties = args[:final_properties] if args.key?(:final_properties)
@intent = args[:intent] if args.key?(:intent)
@ -1922,7 +1950,8 @@ module Google
# @return [String]
attr_accessor :action
# Additional restrictions that must be met
# Additional restrictions that must be met. All conditions must pass for the
# rule to match.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::DeploymentmanagerAlpha::Condition>]
attr_accessor :conditions

View File

@ -539,6 +539,8 @@ module Google
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation
property :description, as: 'description'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id'
@ -578,6 +580,8 @@ module Google
class DeploymentUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation
property :description, as: 'description'
collection :labels, as: 'labels', class: Google::Apis::DeploymentmanagerAlpha::DeploymentUpdateLabelEntry, decorator: Google::Apis::DeploymentmanagerAlpha::DeploymentUpdateLabelEntry::Representation
@ -814,6 +818,8 @@ module Google
property :final_properties, as: 'finalProperties'
property :id, :numeric_string => true, as: 'id'
property :insert_time, as: 'insertTime'
property :last_used_credential, as: 'lastUsedCredential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation
property :manifest, as: 'manifest'
property :name, as: 'name'
property :properties, as: 'properties'
@ -857,6 +863,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :access_control, as: 'accessControl', class: Google::Apis::DeploymentmanagerAlpha::ResourceAccessControl, decorator: Google::Apis::DeploymentmanagerAlpha::ResourceAccessControl::Representation
property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation
property :error, as: 'error', class: Google::Apis::DeploymentmanagerAlpha::ResourceUpdate::Error, decorator: Google::Apis::DeploymentmanagerAlpha::ResourceUpdate::Error::Representation
property :final_properties, as: 'finalProperties'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20170914'
REVISION = '20170925'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1574,7 +1574,8 @@ module Google
# @return [String]
attr_accessor :action
# Additional restrictions that must be met
# Additional restrictions that must be met. All conditions must pass for the
# rule to match.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::DeploymentmanagerV2::Condition>]
attr_accessor :conditions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/deployment-manager/
module DeploymentmanagerV2beta
VERSION = 'V2beta'
REVISION = '20170914'
REVISION = '20170925'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1895,7 +1895,8 @@ module Google
# @return [String]
attr_accessor :action
# Additional restrictions that must be met
# Additional restrictions that must be met. All conditions must pass for the
# rule to match.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::DeploymentmanagerV2beta::Condition>]
attr_accessor :conditions

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/storage/security
module FirebaserulesV1
VERSION = 'V1'
REVISION = '20170807'
REVISION = '20170925'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -171,6 +171,50 @@ module Google
end
end
# The response for FirebaseRulesService.GetReleaseExecutable
class GetReleaseExecutableResponse
include Google::Apis::Core::Hashable
# Executable view of the `Ruleset` referenced by the `Release`.
# Corresponds to the JSON property `executable`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :executable
# The Rules runtime version of the executable.
# Corresponds to the JSON property `executableVersion`
# @return [String]
attr_accessor :executable_version
# `Language` used to generate the executable bytes.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# `Ruleset` name associated with the `Release` executable.
# Corresponds to the JSON property `rulesetName`
# @return [String]
attr_accessor :ruleset_name
# Timestamp for the most recent `Release.update_time`.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@executable = args[:executable] if args.key?(:executable)
@executable_version = args[:executable_version] if args.key?(:executable_version)
@language = args[:language] if args.key?(:language)
@ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Issues include warnings, errors, and deprecation notices.
class Issue
include Google::Apis::Core::Hashable

View File

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GetReleaseExecutableResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Issue
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -173,6 +179,17 @@ module Google
end
end
class GetReleaseExecutableResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :executable, :base64 => true, as: 'executable'
property :executable_version, as: 'executableVersion'
property :language, as: 'language'
property :ruleset_name, as: 'rulesetName'
property :update_time, as: 'updateTime'
end
end
class Issue
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -215,6 +215,41 @@ module Google
execute_or_queue_command(command, &block)
end
# Get the `Release` executable to use when enforcing rules.
# @param [String] name
# Resource name of the `Release`.
# Format: `projects/`project_id`/releases/`release_id``
# @param [String] executable_version
# The requested runtime executable version.
# Defaults to FIREBASE_RULES_EXECUTABLE_V1
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::GetReleaseExecutableResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::GetReleaseExecutableResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_release_executable(name, executable_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}:getExecutable', options)
command.response_representation = Google::Apis::FirebaserulesV1::GetReleaseExecutableResponse::Representation
command.response_class = Google::Apis::FirebaserulesV1::GetReleaseExecutableResponse
command.params['name'] = name unless name.nil?
command.query['executableVersion'] = executable_version unless executable_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the `Release` values for a project. This list may optionally be
# filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any
# combination thereof.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/knowledge-graph/
module KgsearchV1
VERSION = 'V1'
REVISION = '20170109'
REVISION = '20170925'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/
module MlV1
VERSION = 'V1'
REVISION = '20170909'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -186,7 +186,8 @@ module Google
class GoogleCloudMlV1HyperparameterOutput
include Google::Apis::Core::Hashable
# All recorded object metrics for this trial.
# All recorded object metrics for this trial. This field is not currently
# populated.
# Corresponds to the JSON property `allMetrics`
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
attr_accessor :all_metrics
@ -465,7 +466,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 18
# Next ID: 19
# LINT.IfChange
# Corresponds to the JSON property `defaultVersion`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
@ -558,7 +559,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 18
# Next ID: 19
# LINT.IfChange
# Corresponds to the JSON property `version`
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
@ -1215,7 +1216,7 @@ module Google
# information about all of the versions of a given model by calling
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
# versions/list).
# Next ID: 18
# Next ID: 19
# LINT.IfChange
class GoogleCloudMlV1Version
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/rest/
module OsloginV1alpha
VERSION = 'V1alpha'
REVISION = '20170920'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/rest/
module OsloginV1beta
VERSION = 'V1beta'
REVISION = '20170920'
REVISION = '20170926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3
VERSION = 'V1beta3'
REVISION = '20170913'
REVISION = '20170925'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -707,7 +707,7 @@ module Google
class FailureDetail
include Google::Apis::Core::Hashable
# If the failure was severe because the system under test crashed.
# If the failure was severe because the system (app) under test crashed.
# Corresponds to the JSON property `crashed`
# @return [Boolean]
attr_accessor :crashed
@ -720,7 +720,7 @@ module Google
attr_accessor :not_installed
alias_method :not_installed?, :not_installed
# If a native process other than the app crashed.
# If a native process (including any other than the app) crashed.
# Corresponds to the JSON property `otherNativeCrash`
# @return [Boolean]
attr_accessor :other_native_crash