pub struct LocationMethods<'a> { /* private fields */ }
Expand description

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_mybusinessaccountmanagement1 as mybusinessaccountmanagement1;
 
use std::default::Default;
use mybusinessaccountmanagement1::{MyBusinessAccountManagement, oauth2, hyper, hyper_rustls};
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
        secret,
        oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = MyBusinessAccountManagement::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `admins_create(...)`, `admins_delete(...)`, `admins_list(...)`, `admins_patch(...)` and `transfer(...)`
// to build up your call.
let rb = hub.locations();

Implementations

Create a builder to help you perform the following task:

Invites the specified user to become an administrator for the specified location. The invitee must accept the invitation in order to be granted access to the location. See AcceptInvitation to programmatically accept an invitation.

Arguments
  • request - No description provided.
  • parent - Required. The resource name of the location this admin is created for. locations/{location_id}/admins.

Create a builder to help you perform the following task:

Removes the specified admin as a manager of the specified location.

Arguments
  • name - Required. The resource name of the admin to remove from the location.

Create a builder to help you perform the following task:

Lists all of the admins for the specified location.

Arguments
  • parent - Required. The name of the location to list admins of. locations/{location_id}/admins.

Create a builder to help you perform the following task:

Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.

Arguments
  • request - No description provided.
  • name - Immutable. The resource name. For account admins, this is in the form: accounts/{account_id}/admins/{admin_id} For location admins, this is in the form: locations/{location_id}/admins/{admin_id} This field will be ignored if set during admin creation.

Create a builder to help you perform the following task:

Moves a location from an account that the user owns to another account that the same user administers. The user must be an owner of the account the location is currently associated with and must also be at least a manager of the destination account.

Arguments
  • request - No description provided.
  • name - Required. The name of the location to transfer. locations/{location_id}.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more