Struct google_androidenterprise1::ServiceaccountkeyMethods [] [src]

pub struct ServiceaccountkeyMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }

A builder providing access to all methods supported on serviceaccountkey resources. It is not used directly, but through the AndroidEnterprise hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate yup_oauth2 as oauth2;
extern crate google_androidenterprise1 as androidenterprise1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use androidenterprise1::AndroidEnterprise;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::new(),
                              <MemoryStorage as Default>::default(), None);
let mut hub = AndroidEnterprise::new(hyper::Client::new(), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)`, `insert(...)` and `list(...)`
// to build up your call.
let rb = hub.serviceaccountkeys();

Methods

impl<'a, C, A> ServiceaccountkeyMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

Arguments

  • enterpriseId - The ID of the enterprise.

Create a builder to help you perform the following task:

Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

Only the type of the key should be populated in the resource to be inserted.

Arguments

  • request - No description provided.
  • enterpriseId - The ID of the enterprise.

Create a builder to help you perform the following task:

Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

Arguments

  • enterpriseId - The ID of the enterprise.
  • keyId - The ID of the key.

Trait Implementations

impl<'a, C, A> MethodsBuilder for ServiceaccountkeyMethods<'a, C, A>
[src]