Struct google_androiddeviceprovisioning1::PartnerMethods[][src]

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_androiddeviceprovisioning1 as androiddeviceprovisioning1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use androiddeviceprovisioning1::AndroidProvisioningPartner;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = AndroidProvisioningPartner::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `customers_create(...)`, `customers_list(...)`, `devices_claim(...)`, `devices_claim_async(...)`, `devices_find_by_identifier(...)`, `devices_find_by_owner(...)`, `devices_get(...)`, `devices_metadata(...)`, `devices_unclaim(...)`, `devices_unclaim_async(...)` and `devices_update_metadata_async(...)`
// to build up your call.
let rb = hub.partners();

Methods

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

Create a builder to help you perform the following task:

Get a device.

Arguments

  • name - Resource name in partners/[PARTNER_ID]/devices/[DEVICE_ID].

Create a builder to help you perform the following task:

Find devices by device identifier.

Arguments

  • request - No description provided.
  • partnerId - ID of the partner.

Create a builder to help you perform the following task:

Find devices by ownership.

Arguments

  • request - No description provided.
  • partnerId - ID of the partner.

Create a builder to help you perform the following task:

Claim the device identified by device identifier.

Arguments

  • request - No description provided.
  • partnerId - ID of the partner.

Create a builder to help you perform the following task:

Unclaim devices asynchronously.

Arguments

  • request - No description provided.
  • partnerId - Partner ID.

Create a builder to help you perform the following task:

Claim devices asynchronously.

Arguments

  • request - No description provided.
  • partnerId - Partner ID.

Create a builder to help you perform the following task:

Set metadata in batch asynchronously.

Arguments

  • request - No description provided.
  • partnerId - Partner ID.

Create a builder to help you perform the following task:

Update the metadata.

Arguments

  • request - No description provided.
  • metadataOwnerId - The owner of the newly set metadata. Set this to the partner ID.
  • deviceId - ID of the partner.

Create a builder to help you perform the following task:

Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The API doesn't notify the customer that they have access.

Arguments

  • request - No description provided.
  • parent - Required. The parent resource ID in the format partners/[PARTNER_ID] that identifies the reseller.

Create a builder to help you perform the following task:

Lists the customers that are enrolled to the reseller identified by the partnerId argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.

Arguments

  • partnerId - The ID of the partner.

Create a builder to help you perform the following task:

Unclaim the device identified by the device_id or the deviceIdentifier.

Arguments

  • request - No description provided.
  • partnerId - ID of the partner.

Trait Implementations

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

Auto Trait Implementations

impl<'a, C, A> !Send for PartnerMethods<'a, C, A>

impl<'a, C, A> !Sync for PartnerMethods<'a, C, A>