mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Bump version to 1.0.9; update JSON schemas; add new APIs
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-classroom1"
|
||||
version = "1.0.8+20190401"
|
||||
version = "1.0.9+20190701"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with classroom (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/classroom1"
|
||||
homepage = "https://developers.google.com/classroom/"
|
||||
documentation = "https://docs.rs/google-classroom1/1.0.8+20190401"
|
||||
documentation = "https://docs.rs/google-classroom1/1.0.9+20190701"
|
||||
license = "MIT"
|
||||
keywords = ["classroom", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
|
||||
@@ -6,7 +6,7 @@ DO NOT EDIT !
|
||||
The MIT License (MIT)
|
||||
=====================
|
||||
|
||||
Copyright © `2015-2016` `Sebastian Thiel`
|
||||
Copyright © `2015-2019` `Sebastian Thiel`
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -748,6 +748,17 @@ pub fn remove_json_null_values(value: &mut json::value::Value) {
|
||||
map.remove(key);
|
||||
}
|
||||
}
|
||||
json::value::Value::Array(ref mut arr) => {
|
||||
let mut i = 0;
|
||||
while i < arr.len() {
|
||||
if arr[i].is_null() {
|
||||
arr.remove(i);
|
||||
} else {
|
||||
remove_json_null_values(&mut arr[i]);
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *classroom* crate version *1.0.8+20190401*, where *20190401* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
|
||||
//! This documentation was generated from *classroom* crate version *1.0.9+20190701*, where *20190701* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
|
||||
//!
|
||||
//! Everything else about the *classroom* *v1* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/classroom/).
|
||||
@@ -262,9 +262,7 @@ use std::mem;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
|
||||
pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, Error, CallBuilder, Hub, ReadSeek, Part,
|
||||
ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, MethodsBuilder,
|
||||
Resource, ErrorResponse, remove_json_null_values};
|
||||
pub use cmn::*;
|
||||
|
||||
|
||||
// ##############
|
||||
@@ -451,7 +449,7 @@ impl<'a, C, A> Classroom<C, A>
|
||||
Classroom {
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/1.0.8".to_string(),
|
||||
_user_agent: "google-api-rust-client/1.0.9".to_string(),
|
||||
_base_url: "https://classroom.googleapis.com/".to_string(),
|
||||
_root_url: "https://classroom.googleapis.com/".to_string(),
|
||||
}
|
||||
@@ -471,7 +469,7 @@ impl<'a, C, A> Classroom<C, A>
|
||||
}
|
||||
|
||||
/// Set the user-agent header field to use in all requests to the server.
|
||||
/// It defaults to `google-api-rust-client/1.0.8`.
|
||||
/// It defaults to `google-api-rust-client/1.0.9`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
@@ -559,8 +557,8 @@ pub struct Announcement {
|
||||
pub alternate_link: Option<String>,
|
||||
/// Identifiers of students with access to the announcement.
|
||||
/// This field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
|
||||
/// If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this
|
||||
/// field will be able to see the announcement.
|
||||
/// If the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students
|
||||
/// specified in this field will be able to see the announcement.
|
||||
#[serde(rename="individualStudentsOptions")]
|
||||
pub individual_students_options: Option<IndividualStudentsOptions>,
|
||||
/// Classroom-assigned identifier of this announcement, unique per course.
|
||||
@@ -1019,7 +1017,8 @@ pub struct Course {
|
||||
/// Information about a Drive Folder that is shared with all teachers of the
|
||||
/// course.
|
||||
///
|
||||
/// This field will only be set for teachers of the course and domain administrators.
|
||||
/// This field will only be set for teachers of the course and domain
|
||||
/// administrators.
|
||||
///
|
||||
/// Read-only.
|
||||
#[serde(rename="teacherFolder")]
|
||||
@@ -13733,6 +13732,7 @@ impl<'a, C, A> CourseCourseWorkPatchCall<'a, C, A> where C: BorrowMut<hyper::Cli
|
||||
/// * `max_points`
|
||||
/// * `scheduled_time`
|
||||
/// * `submission_modification_mode`
|
||||
/// * `topic_id`
|
||||
///
|
||||
/// Sets the *update mask* query property to the given value.
|
||||
pub fn update_mask(mut self, new_value: &str) -> CourseCourseWorkPatchCall<'a, C, A> {
|
||||
|
||||
Reference in New Issue
Block a user