mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
update all code after version update
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-groupsmigration1-cli"
|
||||
version = "1.0.13+20181126"
|
||||
version = "1.0.14+20200630"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Groups Migration (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/groupsmigration1-cli"
|
||||
@@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"]
|
||||
|
||||
[dependencies.google-groupsmigration1]
|
||||
path = "../groupsmigration1"
|
||||
version = "1.0.13+20181126"
|
||||
version = "1.0.14+20200630"
|
||||
|
||||
@@ -25,12 +25,12 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *Groups Migration* API at revision *20181126*. The CLI is at version *1.0.13*.
|
||||
This documentation was generated from the *Groups Migration* API at revision *20200630*. The CLI is at version *1.0.14*.
|
||||
|
||||
```bash
|
||||
groupsmigration1 [options]
|
||||
archive
|
||||
insert <group-id> (-u (simple|resumable) -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
||||
insert <group-id> (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
||||
groupsmigration1 --help
|
||||
|
||||
Configuration:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: Groups Migration v1.0.13+20181126
|
||||
site_name: Groups Migration v1.0.14+20200630
|
||||
site_url: http://byron.github.io/google-apis-rs/google-groupsmigration1-cli
|
||||
site_description: A complete library to interact with Groups Migration (protocol v1)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ impl<'n> Engine<'n> {
|
||||
}
|
||||
}
|
||||
let vals = opt.values_of("mode").unwrap().collect::<Vec<&str>>();
|
||||
let protocol = calltype_from_str(vals[0], ["simple", "resumable"].iter().map(|&v| v.to_string()).collect(), err);
|
||||
let protocol = calltype_from_str(vals[0], ["simple"].iter().map(|&v| v.to_string()).collect(), err);
|
||||
let mut input_file = input_file_from_opts(vals[1], err);
|
||||
let mime_type = input_mime_from_opts(opt.value_of("mime").unwrap_or("application/octet-stream"), err);
|
||||
if dry_run {
|
||||
@@ -87,7 +87,6 @@ impl<'n> Engine<'n> {
|
||||
};
|
||||
match match protocol {
|
||||
CallType::Upload(UploadProtocol::Simple) => call.upload(input_file.unwrap(), mime_type.unwrap()),
|
||||
CallType::Upload(UploadProtocol::Resumable) => call.upload_resumable(input_file.unwrap(), mime_type.unwrap()),
|
||||
CallType::Standard => unreachable!()
|
||||
} {
|
||||
Err(api_err) => Err(DoitError::ApiError(api_err)),
|
||||
@@ -173,12 +172,15 @@ impl<'n> Engine<'n> {
|
||||
let engine = Engine {
|
||||
opt: opt,
|
||||
hub: api::GroupsMigration::new(client, auth),
|
||||
gp: vec!["alt", "fields", "key", "oauth-token", "pretty-print", "quota-user", "user-ip"],
|
||||
gp: vec!["$-xgafv", "access-token", "alt", "callback", "fields", "key", "oauth-token", "pretty-print", "quota-user", "upload-type", "upload-protocol"],
|
||||
gpm: vec![
|
||||
("$-xgafv", "$.xgafv"),
|
||||
("access-token", "access_token"),
|
||||
("oauth-token", "oauth_token"),
|
||||
("pretty-print", "prettyPrint"),
|
||||
("quota-user", "quotaUser"),
|
||||
("user-ip", "userIp"),
|
||||
("upload-type", "uploadType"),
|
||||
("upload-protocol", "upload_protocol"),
|
||||
]
|
||||
};
|
||||
|
||||
@@ -214,7 +216,7 @@ fn main() {
|
||||
|
||||
(Some(r##"mode"##),
|
||||
Some(r##"u"##),
|
||||
Some(r##"Specify the upload protocol (simple|resumable) and the file to upload"##),
|
||||
Some(r##"Specify the upload protocol (simple) and the file to upload"##),
|
||||
Some(true),
|
||||
Some(true)),
|
||||
|
||||
@@ -236,8 +238,9 @@ fn main() {
|
||||
|
||||
let mut app = App::new("groupsmigration1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("1.0.13+20181126")
|
||||
.about("Groups Migration Api.")
|
||||
.version("1.0.14+20200630")
|
||||
.about("The Groups Migration API allows domain administrators to archive
|
||||
emails into Google groups.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_groupsmigration1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
.long("scope")
|
||||
|
||||
Reference in New Issue
Block a user