mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(source): add source at latest version
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
[package]
|
||||
|
||||
name = "google-androidenterprise1-cli"
|
||||
version = "0.3.1+20150303"
|
||||
version = "0.3.2+20150715"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Android Enterprise (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1-cli"
|
||||
homepage = "https://developers.google.com/play/enterprise"
|
||||
documentation = "http://byron.github.io/google-apis-rs/google_androidenterprise1_cli"
|
||||
license = "MIT"
|
||||
keywords = ["androidenterprise", "google", "cli"]
|
||||
@@ -16,9 +17,10 @@ keywords = ["androidenterprise", "google", "cli"]
|
||||
name = "androidenterprise1"
|
||||
|
||||
[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"
|
||||
|
||||
@@ -10,18 +10,21 @@ capabilities. Errors will be printed to standard error, and cause the program's
|
||||
|
||||
If data-structures are requested, these will be returned as pretty-printed JSON, to be useful as input to other tools.
|
||||
|
||||
Everything else about the *Android Enterprise* API can be found at the
|
||||
[official documentation site](https://developers.google.com/play/enterprise).
|
||||
|
||||
# Downloads
|
||||
|
||||
You can download the pre-compiled 64bit binaries for the following platforms:
|
||||
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.1/ubuntu/androidenterprise1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.1/osx/androidenterprise1.tar.gz)
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.3.2/ubuntu/androidenterprise1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.3.2/osx/androidenterprise1.tar.gz)
|
||||
|
||||
Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1-cli).
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *Android Enterprise* API at revision *20150303*. The CLI is at version *0.3.1*.
|
||||
This documentation was generated from the *Android Enterprise* API at revision *20150715*. The CLI is at version *0.3.2*.
|
||||
|
||||
```bash
|
||||
androidenterprise1 [options]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: Android Enterprise v0.3.1+20150303
|
||||
site_name: Android Enterprise v0.3.2+20150715
|
||||
site_url: http://byron.github.io/google-apis-rs/google-androidenterprise1-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 {
|
||||
@@ -4401,7 +4402,9 @@ fn main() {
|
||||
Some(true)),
|
||||
]),
|
||||
("generate-approval-url",
|
||||
Some(r##"Generates a URL that can be used to display an iframe to view the product's permissions (if any) and approve the product. This URL can be used to approve the product for a limited time (currently 1 hour) using the Products.approve call."##),
|
||||
Some(r##"Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.
|
||||
|
||||
Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_androidenterprise1_cli/products_generate-approval-url",
|
||||
vec![
|
||||
(Some(r##"enterprise-id"##),
|
||||
@@ -4661,7 +4664,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("androidenterprise1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("0.3.1+20150303")
|
||||
.version("0.3.2+20150715")
|
||||
.about("Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android for Work users.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androidenterprise1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
@@ -4743,7 +4746,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