make regen-apis

This commit is contained in:
OMGeeky
2023-10-23 12:55:17 +02:00
parent 8fc78fe0ae
commit c356d5fd0e
887 changed files with 9716 additions and 8753 deletions

View File

@@ -266,13 +266,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &str) -> EditDeobfuscationfileUploadCall<'a, S> {
pub fn deobfuscationfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, deobfuscation_file_type: &EditDeobfuscationFileTypeEnum) -> EditDeobfuscationfileUploadCall<'a, S> {
EditDeobfuscationfileUploadCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_apk_version_code: apk_version_code,
_deobfuscation_file_type: deobfuscation_file_type.to_string(),
_deobfuscation_file_type: deobfuscation_file_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -350,13 +350,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileGetCall<'a, S> {
pub fn expansionfiles_get(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileGetCall<'a, S> {
EditExpansionfileGetCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_apk_version_code: apk_version_code,
_expansion_file_type: expansion_file_type.to_string(),
_expansion_file_type: expansion_file_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -374,14 +374,14 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfilePatchCall<'a, S> {
pub fn expansionfiles_patch(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfilePatchCall<'a, S> {
EditExpansionfilePatchCall {
hub: self.hub,
_request: request,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_apk_version_code: apk_version_code,
_expansion_file_type: expansion_file_type.to_string(),
_expansion_file_type: expansion_file_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -399,14 +399,14 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUpdateCall<'a, S> {
pub fn expansionfiles_update(&self, request: ExpansionFile, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUpdateCall<'a, S> {
EditExpansionfileUpdateCall {
hub: self.hub,
_request: request,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_apk_version_code: apk_version_code,
_expansion_file_type: expansion_file_type.to_string(),
_expansion_file_type: expansion_file_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -423,13 +423,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &str) -> EditExpansionfileUploadCall<'a, S> {
pub fn expansionfiles_upload(&self, package_name: &str, edit_id: &str, apk_version_code: i32, expansion_file_type: &EditExpansionFileTypeEnum) -> EditExpansionfileUploadCall<'a, S> {
EditExpansionfileUploadCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_apk_version_code: apk_version_code,
_expansion_file_type: expansion_file_type.to_string(),
_expansion_file_type: expansion_file_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -447,13 +447,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str, image_id: &str) -> EditImageDeleteCall<'a, S> {
pub fn images_delete(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum, image_id: &str) -> EditImageDeleteCall<'a, S> {
EditImageDeleteCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_language: language.to_string(),
_image_type: image_type.to_string(),
_image_type: image_type.clone(),
_image_id: image_id.to_string(),
_delegate: Default::default(),
_additional_params: Default::default(),
@@ -471,13 +471,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageDeleteallCall<'a, S> {
pub fn images_deleteall(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageDeleteallCall<'a, S> {
EditImageDeleteallCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_language: language.to_string(),
_image_type: image_type.to_string(),
_image_type: image_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -494,13 +494,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageListCall<'a, S> {
pub fn images_list(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageListCall<'a, S> {
EditImageListCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_language: language.to_string(),
_image_type: image_type.to_string(),
_image_type: image_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),
@@ -517,13 +517,13 @@ impl<'a, S> EditMethods<'a, S> {
/// * `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.
pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &str) -> EditImageUploadCall<'a, S> {
pub fn images_upload(&self, package_name: &str, edit_id: &str, language: &str, image_type: &EditImageTypeEnum) -> EditImageUploadCall<'a, S> {
EditImageUploadCall {
hub: self.hub,
_package_name: package_name.to_string(),
_edit_id: edit_id.to_string(),
_language: language.to_string(),
_image_type: image_type.to_string(),
_image_type: image_type.clone(),
_delegate: Default::default(),
_additional_params: Default::default(),
_scopes: Default::default(),

View File

@@ -30,3 +30,6 @@ pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -250,11 +250,11 @@ pub struct AutoRenewingBasePlanType {
/// The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
#[serde(rename="prorationMode")]
pub proration_mode: Option<String>,
pub proration_mode: Option<AutoRenewingBasePlanTypeProrationModeEnum>,
/// Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
#[serde(rename="resubscribeState")]
pub resubscribe_state: Option<String>,
pub resubscribe_state: Option<AutoRenewingBasePlanTypeResubscribeStateEnum>,
}
impl client::Part for AutoRenewingBasePlanType {}
@@ -313,7 +313,7 @@ pub struct BasePlan {
pub regional_configs: Option<Vec<RegionalBasePlanConfig>>,
/// Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
pub state: Option<String>,
pub state: Option<BasePlanStateEnum>,
}
impl client::Part for BasePlan {}
@@ -376,7 +376,7 @@ impl client::ResponseResult for BundlesListResponse {}
pub struct CancelSurveyResult {
/// The reason the user selected in the cancel survey.
pub reason: Option<String>,
pub reason: Option<CancelSurveyResultReasonEnum>,
/// Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey.
#[serde(rename="reasonUserInput")]
@@ -579,7 +579,7 @@ pub struct DeobfuscationFile {
/// The type of the deobfuscation file.
#[serde(rename="symbolType")]
pub symbol_type: Option<String>,
pub symbol_type: Option<DeobfuscationFileSymbolTypeEnum>,
}
impl client::Part for DeobfuscationFile {}
@@ -1178,7 +1178,7 @@ pub struct Grant {
/// The permissions granted to the user for this app.
#[serde(rename="appLevelPermissions")]
pub app_level_permissions: Option<Vec<String>>,
pub app_level_permissions: Option<Vec<GrantAppLevelPermissionsEnum>>,
/// Required. Resource name for this grant, following the pattern "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name.
pub name: Option<String>,
@@ -1317,13 +1317,13 @@ pub struct InAppProduct {
/// The type of the product, e.g. a recurring subscription.
#[serde(rename="purchaseType")]
pub purchase_type: Option<String>,
pub purchase_type: Option<InAppProductPurchaseTypeEnum>,
/// Stock-keeping-unit (SKU) of the product, unique within an app.
pub sku: Option<String>,
/// The status of the product, e.g. whether it's active.
pub status: Option<String>,
pub status: Option<InAppProductStatusEnum>,
/// Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year).
#[serde(rename="subscriptionPeriod")]
@@ -1632,7 +1632,7 @@ pub struct ManagedProductTaxAndComplianceSettings {
/// Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
#[serde(rename="eeaWithdrawalRightType")]
pub eea_withdrawal_right_type: Option<String>,
pub eea_withdrawal_right_type: Option<ManagedProductTaxAndComplianceSettingEeaWithdrawalRightTypeEnum>,
/// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR".
#[serde(rename="taxRateInfoByRegionCode")]
@@ -1881,7 +1881,7 @@ pub struct PrepaidBasePlanType {
/// Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
#[serde(rename="timeExtension")]
pub time_extension: Option<String>,
pub time_extension: Option<PrepaidBasePlanTypeTimeExtensionEnum>,
}
impl client::Part for PrepaidBasePlanType {}
@@ -2117,11 +2117,11 @@ pub struct RegionalTaxRateInfo {
/// To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
#[serde(rename="streamingTaxType")]
pub streaming_tax_type: Option<String>,
pub streaming_tax_type: Option<RegionalTaxRateInfoStreamingTaxTypeEnum>,
/// Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).
#[serde(rename="taxTier")]
pub tax_tier: Option<String>,
pub tax_tier: Option<RegionalTaxRateInfoTaxTierEnum>,
}
impl client::Part for RegionalTaxRateInfo {}
@@ -2405,11 +2405,11 @@ pub struct SubscriptionItemPriceChangeDetails {
/// Price change mode specifies how the subscription item price is changing.
#[serde(rename="priceChangeMode")]
pub price_change_mode: Option<String>,
pub price_change_mode: Option<SubscriptionItemPriceChangeDetailPriceChangeModeEnum>,
/// State the price change is currently in.
#[serde(rename="priceChangeState")]
pub price_change_state: Option<String>,
pub price_change_state: Option<SubscriptionItemPriceChangeDetailPriceChangeStateEnum>,
}
impl client::Part for SubscriptionItemPriceChangeDetails {}
@@ -2488,7 +2488,7 @@ pub struct SubscriptionOffer {
pub regional_configs: Option<Vec<RegionalSubscriptionOfferConfig>>,
/// Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
pub state: Option<String>,
pub state: Option<SubscriptionOfferStateEnum>,
/// The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
pub targeting: Option<SubscriptionOfferTargeting>,
@@ -2746,7 +2746,7 @@ pub struct SubscriptionPurchaseV2 {
/// The acknowledgement state of the subscription.
#[serde(rename="acknowledgementState")]
pub acknowledgement_state: Option<String>,
pub acknowledgement_state: Option<SubscriptionPurchaseV2AcknowledgementStateEnum>,
/// Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED.
#[serde(rename="canceledStateContext")]
@@ -2789,7 +2789,7 @@ pub struct SubscriptionPurchaseV2 {
/// The current state of the subscription.
#[serde(rename="subscriptionState")]
pub subscription_state: Option<String>,
pub subscription_state: Option<SubscriptionPurchaseV2SubscriptionStateEnum>,
/// Only present if this subscription purchase is a test purchase.
#[serde(rename="testPurchase")]
@@ -2870,7 +2870,7 @@ pub struct SubscriptionTaxAndComplianceSettings {
/// Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.
#[serde(rename="eeaWithdrawalRightType")]
pub eea_withdrawal_right_type: Option<String>,
pub eea_withdrawal_right_type: Option<SubscriptionTaxAndComplianceSettingEeaWithdrawalRightTypeEnum>,
/// A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR".
#[serde(rename="taxRateInfoByRegionCode")]
@@ -3090,7 +3090,7 @@ pub struct TrackRelease {
pub release_notes: Option<Vec<LocalizedText>>,
/// The status of the release.
pub status: Option<String>,
pub status: Option<TrackReleaseStatusEnum>,
/// Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can only be set when status is "inProgress" or "halted".
#[serde(rename="userFraction")]
@@ -3183,11 +3183,11 @@ pub struct User {
/// Output only. The state of the user's access to the Play Console.
#[serde(rename="accessState")]
pub access_state: Option<String>,
pub access_state: Option<UserAccessStateEnum>,
/// Permissions for the user which apply across the developer account.
#[serde(rename="developerAccountPermissions")]
pub developer_account_permissions: Option<Vec<String>>,
pub developer_account_permissions: Option<Vec<UserDeveloperAccountPermissionsEnum>>,
/// Immutable. The user's email address.
pub email: Option<String>,