Struct google_content2::api::LiasettingMethods
source · pub struct LiasettingMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on liasetting resources.
It is not used directly, but through the ShoppingContent
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_content2 as content2;
use std::default::Default;
use content2::{ShoppingContent, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = ShoppingContent::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `custombatch(...)`, `get(...)`, `getaccessiblegmbaccounts(...)`, `list(...)`, `listposdataproviders(...)`, `requestgmbaccess(...)`, `requestinventoryverification(...)`, `setinventoryverificationcontact(...)`, `setposdataprovider(...)` and `update(...)`
// to build up your call.
let rb = hub.liasettings();
Implementations§
source§impl<'a, S> LiasettingMethods<'a, S>
impl<'a, S> LiasettingMethods<'a, S>
sourcepub fn custombatch(
&self,
request: LiasettingsCustomBatchRequest
) -> LiasettingCustombatchCall<'a, S>
pub fn custombatch( &self, request: LiasettingsCustomBatchRequest ) -> LiasettingCustombatchCall<'a, S>
Create a builder to help you perform the following task:
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
§Arguments
request
- No description provided.
sourcepub fn get(&self, merchant_id: u64, account_id: u64) -> LiasettingGetCall<'a, S>
pub fn get(&self, merchant_id: u64, account_id: u64) -> LiasettingGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the LIA settings of the account.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account for which to get or update LIA settings.
sourcepub fn getaccessiblegmbaccounts(
&self,
merchant_id: u64,
account_id: u64
) -> LiasettingGetaccessiblegmbaccountCall<'a, S>
pub fn getaccessiblegmbaccounts( &self, merchant_id: u64, account_id: u64 ) -> LiasettingGetaccessiblegmbaccountCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the list of accessible Google My Business accounts.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account for which to retrieve accessible Google My Business accounts.
sourcepub fn list(&self, merchant_id: u64) -> LiasettingListCall<'a, S>
pub fn list(&self, merchant_id: u64) -> LiasettingListCall<'a, S>
Create a builder to help you perform the following task:
Lists the LIA settings of the sub-accounts in your Merchant Center account.
§Arguments
merchantId
- The ID of the managing account. This must be a multi-client account.
sourcepub fn listposdataproviders(&self) -> LiasettingListposdataproviderCall<'a, S>
pub fn listposdataproviders(&self) -> LiasettingListposdataproviderCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the list of POS data providers that have active settings for the all eiligible countries.
sourcepub fn requestgmbaccess(
&self,
merchant_id: u64,
account_id: u64,
gmb_email: &str
) -> LiasettingRequestgmbaccesCall<'a, S>
pub fn requestgmbaccess( &self, merchant_id: u64, account_id: u64, gmb_email: &str ) -> LiasettingRequestgmbaccesCall<'a, S>
Create a builder to help you perform the following task:
Requests access to a specified Google My Business account.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account for which GMB access is requested.gmbEmail
- The email of the Google My Business account.
sourcepub fn requestinventoryverification(
&self,
merchant_id: u64,
account_id: u64,
country: &str
) -> LiasettingRequestinventoryverificationCall<'a, S>
pub fn requestinventoryverification( &self, merchant_id: u64, account_id: u64, country: &str ) -> LiasettingRequestinventoryverificationCall<'a, S>
Create a builder to help you perform the following task:
Requests inventory validation for the specified country.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account that manages the order. This cannot be a multi-client account.country
- The country for which inventory validation is requested.
sourcepub fn setinventoryverificationcontact(
&self,
merchant_id: u64,
account_id: u64,
country: &str,
language: &str,
contact_name: &str,
contact_email: &str
) -> LiasettingSetinventoryverificationcontactCall<'a, S>
pub fn setinventoryverificationcontact( &self, merchant_id: u64, account_id: u64, country: &str, language: &str, contact_name: &str, contact_email: &str ) -> LiasettingSetinventoryverificationcontactCall<'a, S>
Create a builder to help you perform the following task:
Sets the inventory verification contract for the specified country.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account that manages the order. This cannot be a multi-client account.country
- The country for which inventory verification is requested.language
- The language for which inventory verification is requested.contactName
- The name of the inventory verification contact.contactEmail
- The email of the inventory verification contact.
sourcepub fn setposdataprovider(
&self,
merchant_id: u64,
account_id: u64,
country: &str
) -> LiasettingSetposdataproviderCall<'a, S>
pub fn setposdataprovider( &self, merchant_id: u64, account_id: u64, country: &str ) -> LiasettingSetposdataproviderCall<'a, S>
Create a builder to help you perform the following task:
Sets the POS data provider for the specified country.
§Arguments
merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account for which to retrieve accessible Google My Business accounts.country
- The country for which the POS data provider is selected.
sourcepub fn update(
&self,
request: LiaSettings,
merchant_id: u64,
account_id: u64
) -> LiasettingUpdateCall<'a, S>
pub fn update( &self, request: LiaSettings, merchant_id: u64, account_id: u64 ) -> LiasettingUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.
§Arguments
request
- No description provided.merchantId
- The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account andaccountId
must be the ID of a sub-account of this account.accountId
- The ID of the account for which to get or update LIA settings.