EditMethods

Struct EditMethods 

Source
pub struct EditMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on edit 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 `apks_addexternallyhosted(...)`, `apks_list(...)`, `apks_upload(...)`, `bundles_list(...)`, `bundles_upload(...)`, `commit(...)`, `countryavailability_get(...)`, `delete(...)`, `deobfuscationfiles_upload(...)`, `details_get(...)`, `details_patch(...)`, `details_update(...)`, `expansionfiles_get(...)`, `expansionfiles_patch(...)`, `expansionfiles_update(...)`, `expansionfiles_upload(...)`, `get(...)`, `images_delete(...)`, `images_deleteall(...)`, `images_list(...)`, `images_upload(...)`, `insert(...)`, `listings_delete(...)`, `listings_deleteall(...)`, `listings_get(...)`, `listings_list(...)`, `listings_patch(...)`, `listings_update(...)`, `testers_get(...)`, `testers_patch(...)`, `testers_update(...)`, `tracks_create(...)`, `tracks_get(...)`, `tracks_list(...)`, `tracks_patch(...)`, `tracks_update(...)` and `validate(...)`
// to build up your call.
let rb = hub.edits();

Implementations§

Source§

impl<'a, C> EditMethods<'a, C>

Source

pub fn apks_addexternallyhosted( &self, request: ApksAddExternallyHostedRequest, package_name: &str, edit_id: &str, ) -> EditApkAddexternallyhostedCall<'a, C>

Create a builder to help you perform the following task:

Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn apks_list( &self, package_name: &str, edit_id: &str, ) -> EditApkListCall<'a, C>

Create a builder to help you perform the following task:

Lists all current APKs of the app and edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn apks_upload( &self, package_name: &str, edit_id: &str, ) -> EditApkUploadCall<'a, C>

Create a builder to help you perform the following task:

Uploads an APK and adds to the current edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn bundles_list( &self, package_name: &str, edit_id: &str, ) -> EditBundleListCall<'a, C>

Create a builder to help you perform the following task:

Lists all current Android App Bundles of the app and edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn bundles_upload( &self, package_name: &str, edit_id: &str, ) -> EditBundleUploadCall<'a, C>

Create a builder to help you perform the following task:

Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See Timeouts and Errors for an example in java.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn countryavailability_get( &self, package_name: &str, edit_id: &str, track: &str, ) -> EditCountryavailabilityGetCall<'a, C>

Create a builder to help you perform the following task:

Gets country availability.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - The track to read from.
Source

pub fn deobfuscationfiles_upload( &self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &str, ) -> EditDeobfuscationfileUploadCall<'a, C>

Create a builder to help you perform the following task:

Uploads a new deobfuscation file and attaches to the specified APK.

§Arguments
  • packageName - Unique identifier for the Android app.
  • editId - Unique identifier for this edit.
  • apkVersionCode - The version code of the APK whose Deobfuscation File is being uploaded.
  • deobfuscationFileType - The type of the deobfuscation file.
Source

pub fn details_get( &self, package_name: &str, edit_id: &str, ) -> EditDetailGetCall<'a, C>

Create a builder to help you perform the following task:

Gets details of an app.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn details_patch( &self, request: AppDetails, package_name: &str, edit_id: &str, ) -> EditDetailPatchCall<'a, C>

Create a builder to help you perform the following task:

Patches details of an app.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn details_update( &self, request: AppDetails, package_name: &str, edit_id: &str, ) -> EditDetailUpdateCall<'a, C>

Create a builder to help you perform the following task:

Updates details of an app.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn expansionfiles_get( &self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str, ) -> EditExpansionfileGetCall<'a, C>

Create a builder to help you perform the following task:

Fetches the expansion file configuration for the specified APK.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • apkVersionCode - The version code of the APK whose expansion file configuration is being read or modified.
  • expansionFileType - The file type of the file configuration which is being read or modified.
Source

pub fn expansionfiles_patch( &self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str, ) -> EditExpansionfilePatchCall<'a, C>

Create a builder to help you perform the following task:

Patches the APK’s expansion file configuration to reference another APK’s expansion file. To add a new expansion file use the Upload method.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • apkVersionCode - The version code of the APK whose expansion file configuration is being read or modified.
  • expansionFileType - The file type of the expansion file configuration which is being updated.
Source

pub fn expansionfiles_update( &self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str, ) -> EditExpansionfileUpdateCall<'a, C>

Create a builder to help you perform the following task:

Updates the APK’s expansion file configuration to reference another APK’s expansion file. To add a new expansion file use the Upload method.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • apkVersionCode - The version code of the APK whose expansion file configuration is being read or modified.
  • expansionFileType - The file type of the file configuration which is being read or modified.
Source

pub fn expansionfiles_upload( &self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str, ) -> EditExpansionfileUploadCall<'a, C>

Create a builder to help you perform the following task:

Uploads a new expansion file and attaches to the specified APK.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • apkVersionCode - The version code of the APK whose expansion file configuration is being read or modified.
  • expansionFileType - The file type of the expansion file configuration which is being updated.
Source

pub fn images_delete( &self, package_name: &str, edit_id: &str, language: &str, image_type: &str, image_id: &str, ) -> EditImageDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes the image (specified by id) from the edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
  • imageType - Type of the Image.
  • imageId - Unique identifier an image within the set of images attached to this edit.
Source

pub fn images_deleteall( &self, package_name: &str, edit_id: &str, language: &str, image_type: &str, ) -> EditImageDeleteallCall<'a, C>

Create a builder to help you perform the following task:

Deletes all images for the specified language and image type. Returns an empty response if no images are found.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German). Providing a language that is not supported by the App is a no-op.
  • imageType - Type of the Image. Providing an image type that refers to no images is a no-op.
Source

pub fn images_list( &self, package_name: &str, edit_id: &str, language: &str, image_type: &str, ) -> EditImageListCall<'a, C>

Create a builder to help you perform the following task:

Lists all images. The response may be empty.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German). There must be a store listing for the specified language.
  • imageType - Type of the Image. Providing an image type that refers to no images will return an empty response.
Source

pub fn images_upload( &self, package_name: &str, edit_id: &str, language: &str, image_type: &str, ) -> EditImageUploadCall<'a, C>

Create a builder to help you perform the following task:

Uploads an image of the specified language and image type, and adds to the edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German). Providing a language that is not supported by the App is a no-op.
  • imageType - Type of the Image.
Source

pub fn listings_delete( &self, package_name: &str, edit_id: &str, language: &str, ) -> EditListingDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a localized store listing.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
Source

pub fn listings_deleteall( &self, package_name: &str, edit_id: &str, ) -> EditListingDeleteallCall<'a, C>

Create a builder to help you perform the following task:

Deletes all store listings.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn listings_get( &self, package_name: &str, edit_id: &str, language: &str, ) -> EditListingGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a localized store listing.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
Source

pub fn listings_list( &self, package_name: &str, edit_id: &str, ) -> EditListingListCall<'a, C>

Create a builder to help you perform the following task:

Lists all localized store listings.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn listings_patch( &self, request: Listing, package_name: &str, edit_id: &str, language: &str, ) -> EditListingPatchCall<'a, C>

Create a builder to help you perform the following task:

Patches a localized store listing.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
Source

pub fn listings_update( &self, request: Listing, package_name: &str, edit_id: &str, language: &str, ) -> EditListingUpdateCall<'a, C>

Create a builder to help you perform the following task:

Creates or updates a localized store listing.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • language - Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
Source

pub fn testers_get( &self, package_name: &str, edit_id: &str, track: &str, ) -> EditTesterGetCall<'a, C>

Create a builder to help you perform the following task:

Gets testers. Note: Testers resource does not support email lists.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - The track to read from.
Source

pub fn testers_patch( &self, request: Testers, package_name: &str, edit_id: &str, track: &str, ) -> EditTesterPatchCall<'a, C>

Create a builder to help you perform the following task:

Patches testers. Note: Testers resource does not support email lists.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - The track to update.
Source

pub fn testers_update( &self, request: Testers, package_name: &str, edit_id: &str, track: &str, ) -> EditTesterUpdateCall<'a, C>

Create a builder to help you perform the following task:

Updates testers. Note: Testers resource does not support email lists.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - The track to update.
Source

pub fn tracks_create( &self, request: TrackConfig, package_name: &str, edit_id: &str, ) -> EditTrackCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new track.

§Arguments
  • request - No description provided.
  • packageName - Required. Package name of the app.
  • editId - Required. Identifier of the edit.
Source

pub fn tracks_get( &self, package_name: &str, edit_id: &str, track: &str, ) -> EditTrackGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a track.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - Identifier of the track. More on track name
Source

pub fn tracks_list( &self, package_name: &str, edit_id: &str, ) -> EditTrackListCall<'a, C>

Create a builder to help you perform the following task:

Lists all tracks.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn tracks_patch( &self, request: Track, package_name: &str, edit_id: &str, track: &str, ) -> EditTrackPatchCall<'a, C>

Create a builder to help you perform the following task:

Patches a track.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - Identifier of the track. More on track name
Source

pub fn tracks_update( &self, request: Track, package_name: &str, edit_id: &str, track: &str, ) -> EditTrackUpdateCall<'a, C>

Create a builder to help you perform the following task:

Updates a track.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
  • track - Identifier of the track. More on track name
Source

pub fn commit(&self, package_name: &str, edit_id: &str) -> EditCommitCall<'a, C>

Create a builder to help you perform the following task:

Commits an app edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn delete(&self, package_name: &str, edit_id: &str) -> EditDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes an app edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn get(&self, package_name: &str, edit_id: &str) -> EditGetCall<'a, C>

Create a builder to help you perform the following task:

Gets an app edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.
Source

pub fn insert( &self, request: AppEdit, package_name: &str, ) -> EditInsertCall<'a, C>

Create a builder to help you perform the following task:

Creates a new edit for an app.

§Arguments
  • request - No description provided.
  • packageName - Package name of the app.
Source

pub fn validate( &self, package_name: &str, edit_id: &str, ) -> EditValidateCall<'a, C>

Create a builder to help you perform the following task:

Validates an app edit.

§Arguments
  • packageName - Package name of the app.
  • editId - Identifier of the edit.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for EditMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for EditMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for EditMethods<'a, C>

§

impl<'a, C> Send for EditMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for EditMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for EditMethods<'a, C>

§

impl<'a, C> !UnwindSafe for EditMethods<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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