pub struct InappproductMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on inappproduct resources.
It is not used directly, but through the AndroidPublisher hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_androidpublisher3 as androidpublisher3;
use androidpublisher3::{AndroidPublisher, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = AndroidPublisher::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `batch_delete(...)`, `batch_get(...)`, `batch_update(...)`, `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.inappproducts();Implementations§
Source§impl<'a, C> InappproductMethods<'a, C>
impl<'a, C> InappproductMethods<'a, C>
Sourcepub fn batch_delete(
&self,
request: InappproductsBatchDeleteRequest,
package_name: &str,
) -> InappproductBatchDeleteCall<'a, C>
pub fn batch_delete( &self, request: InappproductsBatchDeleteRequest, package_name: &str, ) -> InappproductBatchDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should not be used to delete subscriptions. See this article for more information.
§Arguments
request- No description provided.packageName- Package name of the app.
Sourcepub fn batch_get(&self, package_name: &str) -> InappproductBatchGetCall<'a, C>
pub fn batch_get(&self, package_name: &str) -> InappproductBatchGetCall<'a, C>
Create a builder to help you perform the following task:
Reads multiple in-app products, which can be managed products or subscriptions. This method should not be used to retrieve subscriptions. See this article for more information.
§Arguments
packageName- Package name of the app.
Sourcepub fn batch_update(
&self,
request: InappproductsBatchUpdateRequest,
package_name: &str,
) -> InappproductBatchUpdateCall<'a, C>
pub fn batch_update( &self, request: InappproductsBatchUpdateRequest, package_name: &str, ) -> InappproductBatchUpdateCall<'a, C>
Create a builder to help you perform the following task:
Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should no longer be used to update subscriptions. See this article for more information.
§Arguments
request- No description provided.packageName- Package name of the app.
Sourcepub fn delete(
&self,
package_name: &str,
sku: &str,
) -> InappproductDeleteCall<'a, C>
pub fn delete( &self, package_name: &str, sku: &str, ) -> InappproductDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an in-app product (a managed product or a subscription). This method should no longer be used to delete subscriptions. See this article for more information.
§Arguments
packageName- Package name of the app.sku- Unique identifier for the in-app product.
Sourcepub fn get(&self, package_name: &str, sku: &str) -> InappproductGetCall<'a, C>
pub fn get(&self, package_name: &str, sku: &str) -> InappproductGetCall<'a, C>
Create a builder to help you perform the following task:
Gets an in-app product, which can be a managed product or a subscription. This method should no longer be used to retrieve subscriptions. See this article for more information.
§Arguments
packageName- Package name of the app.sku- Unique identifier for the in-app product.
Sourcepub fn insert(
&self,
request: InAppProduct,
package_name: &str,
) -> InappproductInsertCall<'a, C>
pub fn insert( &self, request: InAppProduct, package_name: &str, ) -> InappproductInsertCall<'a, C>
Create a builder to help you perform the following task:
Creates an in-app product (a managed product or a subscription). This method should no longer be used to create subscriptions. See this article for more information.
§Arguments
request- No description provided.packageName- Package name of the app.
Sourcepub fn list(&self, package_name: &str) -> InappproductListCall<'a, C>
pub fn list(&self, package_name: &str) -> InappproductListCall<'a, C>
Create a builder to help you perform the following task:
Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field tokenPagination.nextPageToken will be set and the caller should provide its value as a token request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See this article for more information.
§Arguments
packageName- Package name of the app.
Sourcepub fn patch(
&self,
request: InAppProduct,
package_name: &str,
sku: &str,
) -> InappproductPatchCall<'a, C>
pub fn patch( &self, request: InAppProduct, package_name: &str, sku: &str, ) -> InappproductPatchCall<'a, C>
Create a builder to help you perform the following task:
Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.
§Arguments
request- No description provided.packageName- Package name of the app.sku- Unique identifier for the in-app product.
Sourcepub fn update(
&self,
request: InAppProduct,
package_name: &str,
sku: &str,
) -> InappproductUpdateCall<'a, C>
pub fn update( &self, request: InAppProduct, package_name: &str, sku: &str, ) -> InappproductUpdateCall<'a, C>
Create a builder to help you perform the following task:
Updates an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.
§Arguments
request- No description provided.packageName- Package name of the app.sku- Unique identifier for the in-app product.