mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-16 06:26:35 +01:00
chore(source): add source at latest version
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-dns1-cli"
|
||||
version = "0.3.1+20150218"
|
||||
version = "0.3.2+20150624"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with dns (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dns1-cli"
|
||||
@@ -17,9 +17,10 @@ keywords = ["dns", "google", "cli"]
|
||||
name = "dns1"
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.6.4"
|
||||
mime = "0.0.12"
|
||||
serde = ">= 0.4.1"
|
||||
hyper = ">= 0.6.8"
|
||||
mime = "0.1.0"
|
||||
serde = ">= 0.5.0"
|
||||
serde_json = "*"
|
||||
yup-oauth2 = "*"
|
||||
strsim = "*"
|
||||
yup-hyper-mock = ">=1.0.0"
|
||||
|
||||
@@ -17,14 +17,14 @@ Everything else about the *dns* API can be found at the
|
||||
|
||||
You can download the pre-compiled 64bit binaries for the following platforms:
|
||||
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.1/ubuntu/dns1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.1/osx/dns1.tar.gz)
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.2/ubuntu/dns1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.2/osx/dns1.tar.gz)
|
||||
|
||||
Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/dns1-cli).
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *dns* API at revision *20150218*. The CLI is at version *0.3.1*.
|
||||
This documentation was generated from the *dns* API at revision *20150624*. The CLI is at version *0.3.2*.
|
||||
|
||||
```bash
|
||||
dns1 [options]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: dns v0.3.1+20150218
|
||||
site_name: dns v0.3.2+20150624
|
||||
site_url: http://byron.github.io/google-apis-rs/google-dns1-cli
|
||||
site_description: Write integrating applications with bcore
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// COPY OF 'src/rust/cli/cmn.rs'
|
||||
// DO NOT EDIT
|
||||
use oauth2::{ApplicationSecret, ConsoleApplicationSecret, TokenStorage, Token};
|
||||
use serde::json;
|
||||
use serde::json::value::Value;
|
||||
use serde_json as json;
|
||||
use serde_json::value::Value;
|
||||
use mime::Mime;
|
||||
use clap::{App, SubCommand};
|
||||
use strsim;
|
||||
|
||||
@@ -8,6 +8,7 @@ extern crate clap;
|
||||
extern crate yup_oauth2 as oauth2;
|
||||
extern crate yup_hyper_mock as mock;
|
||||
extern crate serde;
|
||||
extern crate serde_json;
|
||||
extern crate hyper;
|
||||
extern crate mime;
|
||||
extern crate strsim;
|
||||
@@ -27,7 +28,7 @@ use std::default::Default;
|
||||
use std::str::FromStr;
|
||||
|
||||
use oauth2::{Authenticator, DefaultAuthenticatorDelegate};
|
||||
use serde::json;
|
||||
use serde_json as json;
|
||||
use clap::ArgMatches;
|
||||
|
||||
enum DoitError {
|
||||
@@ -449,6 +450,9 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
"max-results" => {
|
||||
call = call.max_results(arg_from_str(value.unwrap_or("-0"), err, "max-results", "integer"));
|
||||
},
|
||||
"dns-name" => {
|
||||
call = call.dns_name(value.unwrap_or(""));
|
||||
},
|
||||
_ => {
|
||||
let mut found = false;
|
||||
for param in &self.gp {
|
||||
@@ -462,7 +466,7 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
v.extend(["page-token", "max-results"].iter().map(|v|*v));
|
||||
v.extend(["page-token", "dns-name", "max-results"].iter().map(|v|*v));
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
@@ -1021,7 +1025,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("dns1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("0.3.1+20150218")
|
||||
.version("0.3.2+20150624")
|
||||
.about("The Google Cloud DNS API provides services for configuring and serving authoritative DNS records.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dns1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
@@ -1103,7 +1107,7 @@ fn main() {
|
||||
},
|
||||
DoitError::ApiError(err) => {
|
||||
if debug {
|
||||
writeln!(io::stderr(), "{:?}", err).ok();
|
||||
writeln!(io::stderr(), "{:#?}", err).ok();
|
||||
} else {
|
||||
writeln!(io::stderr(), "{}", err).ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user