From f31a8dbc9f9e2bc64fd2d8b3c75f42b5f99c27a0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 01:20:04 +0000 Subject: [PATCH] feat: Automated regeneration of AndroidPublisher client --- .../android_publisher/v3/api/applications.ex | 74 +++ .../android_publisher/v3/api/apprecovery.ex | 411 ++++++++++++ .../android_publisher/v3/api/edits.ex | 82 ++- .../v3/api/externaltransactions.ex | 249 ++++++++ .../android_publisher/v3/api/inappproducts.ex | 244 ++++++- .../android_publisher/v3/api/monetization.ex | 598 +++++++++++++++++- .../android_publisher/v3/api/orders.ex | 2 +- .../android_publisher/v3/api/purchases.ex | 158 +++++ .../android_publisher/v3/metadata.ex | 2 +- .../android_publisher/v3/model/abi.ex | 46 ++ .../v3/model/abi_targeting.ex | 49 ++ .../v3/model/activate_base_plan_request.ex | 16 +- .../activate_subscription_offer_request.ex | 19 +- .../v3/model/add_targeting_request.ex | 46 ++ .../v3/model/add_targeting_response.ex | 41 ++ .../android_publisher/v3/model/all_users.ex | 46 ++ .../v3/model/android_sdks.ex | 46 ++ .../v3/model/apk_description.ex | 62 ++ .../android_publisher/v3/model/apk_set.ex | 49 ++ .../v3/model/apk_targeting.ex | 67 ++ .../v3/model/app_recovery_action.ex | 68 ++ .../v3/model/app_version_list.ex | 46 ++ .../v3/model/app_version_range.ex | 49 ++ .../v3/model/archive_subscription_request.ex | 2 +- .../v3/model/asset_module_metadata.ex | 49 ++ .../v3/model/asset_slice_set.ex | 50 ++ .../v3/model/auto_renewing_base_plan_type.ex | 3 + .../batch_get_subscription_offers_request.ex | 50 ++ .../batch_get_subscription_offers_response.ex | 52 ++ .../model/batch_get_subscriptions_response.ex | 46 ++ .../batch_migrate_base_plan_prices_request.ex | 50 ++ ...batch_migrate_base_plan_prices_response.ex | 52 ++ .../batch_update_base_plan_states_request.ex | 47 ++ .../batch_update_base_plan_states_response.ex | 46 ++ ...pdate_subscription_offer_states_request.ex | 56 ++ ...date_subscription_offer_states_response.ex | 55 ++ ...atch_update_subscription_offers_request.ex | 55 ++ ...tch_update_subscription_offers_response.ex | 55 ++ .../batch_update_subscriptions_request.ex | 47 ++ .../batch_update_subscriptions_response.ex | 46 ++ .../v3/model/cancel_app_recovery_request.ex | 41 ++ .../v3/model/cancel_app_recovery_response.ex | 41 ++ .../create_draft_app_recovery_request.ex | 49 ++ .../v3/model/deactivate_base_plan_request.ex | 16 +- .../deactivate_subscription_offer_request.ex | 19 +- .../v3/model/deferred_item_replacement.ex | 46 ++ .../v3/model/deploy_app_recovery_request.ex | 41 ++ .../v3/model/deploy_app_recovery_response.ex | 41 ++ .../v3/model/device_feature.ex | 49 ++ .../v3/model/device_feature_targeting.ex | 46 ++ .../v3/model/device_group.ex | 2 +- .../v3/model/device_tier_config.ex | 7 +- .../v3/model/external_subscription.ex | 46 ++ .../v3/model/external_transaction.ex | 90 +++ .../v3/model/external_transaction_address.ex | 49 ++ .../external_transaction_test_purchase.ex | 41 ++ .../android_publisher/v3/model/full_refund.ex | 41 ++ .../model/generated_apks_per_signing_key.ex | 13 +- .../v3/model/generated_recovery_apk.ex | 55 ++ .../model/get_subscription_offer_request.ex | 55 ++ .../inappproducts_batch_delete_request.ex | 47 ++ .../model/inappproducts_batch_get_response.ex | 46 ++ .../inappproducts_batch_update_request.ex | 47 ++ .../inappproducts_batch_update_response.ex | 46 ++ .../v3/model/inappproducts_delete_request.ex | 52 ++ .../v3/model/inappproducts_update_request.ex | 61 ++ .../v3/model/language_targeting.ex | 49 ++ .../v3/model/list_app_recoveries_response.ex | 47 ++ ...ged_product_tax_and_compliance_settings.ex | 3 + .../model/migrate_base_plan_prices_request.ex | 13 + .../v3/model/module_metadata.ex | 58 ++ .../v3/model/module_targeting.ex | 59 ++ .../android_publisher/v3/model/multi_abi.ex | 46 ++ .../v3/model/multi_abi_targeting.ex | 49 ++ .../v3/model/one_time_external_transaction.ex | 46 ++ .../v3/model/partial_refund.ex | 49 ++ .../model/recurring_external_transaction.ex | 56 ++ .../refund_external_transaction_request.ex | 52 ++ .../model/regional_price_migration_config.ex | 5 +- .../v3/model/regional_tax_rate_info.ex | 2 +- .../android_publisher/v3/model/regions.ex | 46 ++ .../v3/model/regions_version.ex | 2 +- .../v3/model/remote_in_app_update.ex | 46 ++ .../v3/model/remote_in_app_update_data.ex | 50 ++ .../remote_in_app_update_data_per_bundle.ex | 52 ++ .../v3/model/revocation_context.ex | 47 ++ .../revocation_context_prorated_refund.ex | 41 ++ .../revoke_subscription_purchase_request.ex | 46 ++ .../revoke_subscription_purchase_response.ex | 43 ++ .../v3/model/safety_labels_update_request.ex | 46 ++ .../v3/model/safety_labels_update_response.ex | 41 ++ .../v3/model/screen_density.ex | 49 ++ .../v3/model/screen_density_targeting.ex | 49 ++ .../android_publisher/v3/model/sdk_version.ex | 46 ++ .../v3/model/sdk_version_targeting.ex | 49 ++ .../v3/model/split_apk_metadata.ex | 49 ++ .../v3/model/split_apk_variant.ex | 52 ++ .../v3/model/standalone_apk_metadata.ex | 46 ++ .../v3/model/subscription.ex | 2 +- .../subscription_item_price_change_details.ex | 2 +- .../model/subscription_purchase_line_item.ex | 4 + ...ubscription_tax_and_compliance_settings.ex | 3 + .../v3/model/system_apk_options.ex | 52 ++ .../android_publisher/v3/model/targeting.ex | 58 ++ .../v3/model/targeting_info.ex | 52 ++ .../v3/model/targeting_update.ex | 52 ++ .../v3/model/texture_compression_format.ex | 46 ++ .../texture_compression_format_targeting.ex | 54 ++ .../android_publisher/v3/model/track.ex | 2 +- .../v3/model/track_config.ex | 52 ++ .../v3/model/tracks_list_response.ex | 2 +- .../model/update_base_plan_state_request.ex | 54 ++ .../update_subscription_offer_request.ex | 58 ++ ...update_subscription_offer_state_request.ex | 58 ++ .../v3/model/update_subscription_request.ex | 58 ++ .../v3/model/user_countries_targeting.ex | 49 ++ .../v3/model/user_country_set.ex | 49 ++ .../android_publisher/v3/model/variant.ex | 3 + .../v3/model/variant_targeting.ex | 64 ++ 119 files changed, 6389 insertions(+), 37 deletions(-) create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/api/apprecovery.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/api/externaltransactions.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/abi.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/abi_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/all_users.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/android_sdks.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_description.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_set.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/app_recovery_action.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_list.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_range.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_module_metadata.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_slice_set.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscriptions_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/create_draft_app_recovery_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/deferred_item_replacement.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/external_subscription.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_address.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_test_purchase.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/full_refund.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_recovery_apk.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/get_subscription_offer_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_delete_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_get_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_delete_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_update_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/language_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/list_app_recoveries_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/module_metadata.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/module_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/one_time_external_transaction.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/partial_refund.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/recurring_external_transaction.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/refund_external_transaction_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/regions.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data_per_bundle.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context_prorated_refund.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_response.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_metadata.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_variant.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/standalone_apk_metadata.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/system_apk_options.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_info.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_update.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/track_config.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/update_base_plan_state_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_state_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_request.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/user_countries_targeting.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/user_country_set.ex create mode 100644 clients/android_publisher/lib/google_api/android_publisher/v3/model/variant_targeting.ex diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/applications.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/applications.ex index b94a8eda70..edc22e2273 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/applications.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/applications.ex @@ -25,6 +25,80 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Applications do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Writes the Safety Labels declaration of an app. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_applications_data_safety( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_applications_data_safety( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/applications/{packageName}/dataSafety", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse{}] + ) + end + @doc """ Creates a new device tier config for an app. diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/apprecovery.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/apprecovery.ex new file mode 100644 index 0000000000..b29721ab74 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/apprecovery.ex @@ -0,0 +1,411 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Api.Apprecovery do + @moduledoc """ + API calls for all endpoints tagged `Apprecovery`. + """ + + alias GoogleApi.AndroidPublisher.V3.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app for which recovery action is to be updated. + * `app_recovery_id` (*type:* `String.t`) - Required. ID corresponding to the app recovery action. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AddTargetingRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_apprecovery_add_targeting( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_apprecovery_add_targeting( + connection, + package_name, + app_recovery_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "appRecoveryId" => URI.encode(app_recovery_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse{}] + ) + end + + @doc """ + List all app recovery action resources associated with a particular package name and app version. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app for which list of recovery actions is requested. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:versionCode` (*type:* `String.t`) - Required. Version code targeted by the list of recovery actions. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_apprecovery_app_recoveries( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_apprecovery_app_recoveries( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :versionCode => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/applications/{packageName}/appRecoveries", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse{}] + ) + end + + @doc """ + Cancel an already executing app recovery action. Note that this action changes status of the recovery action to CANCELED. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app for which recovery action cancellation is requested. + * `app_recovery_id` (*type:* `String.t`) - Required. ID corresponding to the app recovery action. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_apprecovery_cancel( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_apprecovery_cancel( + connection, + package_name, + app_recovery_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "appRecoveryId" => URI.encode(app_recovery_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse{}] + ) + end + + @doc """ + Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app on which recovery action is performed. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.CreateDraftAppRecoveryRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_apprecovery_create(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_apprecovery_create( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/applications/{packageName}/appRecoveries", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction{}]) + end + + @doc """ + Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app for which recovery action is deployed. + * `app_recovery_id` (*type:* `String.t`) - Required. ID corresponding to the app recovery action to deploy. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_apprecovery_deploy( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_apprecovery_deploy( + connection, + package_name, + app_recovery_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "appRecoveryId" => URI.encode(app_recovery_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse{}] + ) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex index 72a378b003..2ecf02c6a1 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/edits.ex @@ -3951,6 +3951,82 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Edits do |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.Testers{}]) end + @doc """ + Creates a new track. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. Package name of the app. + * `edit_id` (*type:* `String.t`) - Required. Identifier of the edit. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.TrackConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.Track{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_edits_tracks_create( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.Track.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_edits_tracks_create( + connection, + package_name, + edit_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "editId" => URI.encode(edit_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.Track{}]) + end + @doc """ Gets a track. @@ -3959,7 +4035,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Edits do * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server * `package_name` (*type:* `String.t`) - Package name of the app. * `edit_id` (*type:* `String.t`) - Identifier of the edit. - * `track` (*type:* `String.t`) - Identifier of the track. + * `track` (*type:* `String.t`) - Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -4116,7 +4192,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Edits do * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server * `package_name` (*type:* `String.t`) - Package name of the app. * `edit_id` (*type:* `String.t`) - Identifier of the edit. - * `track` (*type:* `String.t`) - Identifier of the track. + * `track` (*type:* `String.t`) - Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -4199,7 +4275,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Edits do * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server * `package_name` (*type:* `String.t`) - Package name of the app. * `edit_id` (*type:* `String.t`) - Identifier of the edit. - * `track` (*type:* `String.t`) - Identifier of the track. + * `track` (*type:* `String.t`) - Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/externaltransactions.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/externaltransactions.ex new file mode 100644 index 0000000000..474f2e1d8a --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/externaltransactions.ex @@ -0,0 +1,249 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Api.Externaltransactions do + @moduledoc """ + API calls for all endpoints tagged `Externaltransactions`. + """ + + alias GoogleApi.AndroidPublisher.V3.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Creates a new external transaction. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource where this external transaction will be created. Format: applications/{package_name} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:externalTransactionId` (*type:* `String.t`) - Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked. + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_externaltransactions_createexternaltransaction( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_externaltransactions_createexternaltransaction( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :externalTransactionId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/{+parent}/externalTransactions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}] + ) + end + + @doc """ + Gets an existing external transaction. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the external transaction to retrieve. Format: applications/{package_name}/externalTransactions/{external_transaction} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_externaltransactions_getexternaltransaction( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_externaltransactions_getexternaltransaction( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/androidpublisher/v3/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}] + ) + end + + @doc """ + Refunds or partially refunds an existing external transaction. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the external transaction that will be refunded. Format: applications/{package_name}/externalTransactions/{external_transaction} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RefundExternalTransactionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_externaltransactions_refundexternaltransaction( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_externaltransactions_refundexternaltransaction( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/androidpublisher/v3/{+name}:refund", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction{}] + ) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex index bdd1e00f20..7e52cba84f 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/inappproducts.ex @@ -26,7 +26,229 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Deletes an in-app product (i.e. a managed product or a subscriptions). + 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](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Package name of the app. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchDeleteRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_inappproducts_batch_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} + def androidpublisher_inappproducts_batch_delete( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [decode: false]) + end + + @doc """ + Reads multiple in-app products, which can be managed products or subscriptions. This method should not be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Package name of the app. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:sku` (*type:* `list(String.t)`) - Unique identifier for the in-app products. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_inappproducts_batch_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_inappproducts_batch_get( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :sku => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/androidpublisher/v3/applications/{packageName}/inappproducts:batchGet", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse{}] + ) + end + + @doc """ + 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](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Package name of the app. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_inappproducts_batch_update( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_inappproducts_batch_update( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse{}] + ) + end + + @doc """ + Deletes an in-app product (a managed product or a subscription). This method should no longer be used to delete subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -45,6 +267,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:latencyTolerance` (*type:* `String.t`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -77,7 +300,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :latencyTolerance => :query } request = @@ -96,7 +320,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do end @doc """ - Gets an in-app product, which can be a managed product or a subscription. + 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](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -170,7 +394,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do end @doc """ - Creates an in-app product (i.e. a managed product or a subscriptions). + Creates an in-app product (a managed product or a subscription). This method should no longer be used to create subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -244,7 +468,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do end @doc """ - 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. + 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](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -263,7 +487,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:maxResults` (*type:* `integer()`) - Deprecated and ignored. The page size is determined by the server. - * `:startIndex` (*type:* `integer()`) - Deprecated and ignored. Set the `token` parameter to rertieve the next page. + * `:startIndex` (*type:* `integer()`) - Deprecated and ignored. Set the `token` parameter to retrieve the next page. * `:token` (*type:* `String.t`) - Pagination token. If empty, list starts at the first product. * `opts` (*type:* `keyword()`) - Call options @@ -317,7 +541,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do end @doc """ - Patches an in-app product (i.e. a managed product or a subscriptions). + Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -337,6 +561,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:autoConvertMissingPrices` (*type:* `boolean()`) - If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. + * `:latencyTolerance` (*type:* `String.t`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -376,6 +601,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do :uploadType => :query, :upload_protocol => :query, :autoConvertMissingPrices => :query, + :latencyTolerance => :query, :body => :body } @@ -395,7 +621,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do end @doc """ - Updates an in-app product (i.e. a managed product or a subscriptions). + Updates an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information. ## Parameters @@ -416,6 +642,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:allowMissing` (*type:* `boolean()`) - If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product will be created. * `:autoConvertMissingPrices` (*type:* `boolean()`) - If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. + * `:latencyTolerance` (*type:* `String.t`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -456,6 +683,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Inappproducts do :upload_protocol => :query, :allowMissing => :query, :autoConvertMissingPrices => :query, + :latencyTolerance => :query, :body => :body } diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/monetization.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/monetization.ex index 1df9ed8828..3456d743ee 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/monetization.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/monetization.ex @@ -103,7 +103,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do end @doc """ - Archives a subscription. Can only be done if at least one base plan was active in the past, and no base plan is available for new or existing subscribers currently. This action is irreversible, and the subscription ID will remain reserved. + Deprecated: subscription archiving is not supported. ## Parameters @@ -181,6 +181,157 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.Subscription{}]) end + @doc """ + Reads one or more subscriptions. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal to the package_name field on all the requests. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:productIds` (*type:* `list(String.t)`) - Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_batch_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_batch_get( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :productIds => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet", %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse{}] + ) + end + + @doc """ + Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) for which the subscriptions should be updated. Must be equal to the package_name field on all the Subscription resources. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_batch_update( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_batch_update( + connection, + package_name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse{}] + ) + end + @doc """ Creates a new subscription. Newly added base plans will remain in draft state until activated. @@ -201,7 +352,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:productId` (*type:* `String.t`) - Required. The ID to use for the subscription. For the requirements on this format, see the documentation of the product_id field on the Subscription resource. - * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01. + * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Subscription.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -428,7 +579,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:pageSize` (*type:* `integer()`) - The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match the call that provided the page token. - * `:showArchived` (*type:* `boolean()`) - Whether archived subscriptions should be included in the response. Defaults to false. + * `:showArchived` (*type:* `boolean()`) - Deprecated: subscription archiving is not supported. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -505,7 +656,9 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01. + * `:allowMissing` (*type:* `boolean()`) - Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the subscription will be created. If a new subscription is created, update_mask is ignored. + * `:latencyTolerance` (*type:* `String.t`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. * `:updateMask` (*type:* `String.t`) - Required. The list of fields to be updated. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Subscription.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -545,6 +698,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :allowMissing => :query, + :latencyTolerance => :query, :"regionsVersion.version" => :query, :updateMask => :query, :body => :body @@ -651,6 +806,168 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.Subscription{}]) end + @doc """ + Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the Subscription resources. + * `product_id` (*type:* `String.t`) - Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_base_plans_batch_migrate_prices( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_base_plans_batch_migrate_prices( + connection, + package_name, + product_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse{}] + ) + end + + @doc """ + Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) of the updated base plans. + * `product_id` (*type:* `String.t`) - Required. The product ID of the parent subscription, if all updated base plans belong to the same subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_base_plans_batch_update_states( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_base_plans_batch_update_states( + connection, + package_name, + product_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse{}] + ) + end + @doc """ Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription @@ -983,6 +1300,267 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do |> Response.decode(opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer{}]) end + @doc """ + Reads one or more subscription offers. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the requests. + * `product_id` (*type:* `String.t`) - Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. + * `base_plan_id` (*type:* `String.t`) - Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read offers from multiple base plans. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_base_plans_offers_batch_get( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_base_plans_offers_batch_get( + connection, + package_name, + product_id, + base_plan_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1), + "basePlanId" => URI.encode(base_plan_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse{}] + ) + end + + @doc """ + Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. + * `product_id` (*type:* `String.t`) - Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. + * `base_plan_id` (*type:* `String.t`) - Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple base plans. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_base_plans_offers_batch_update( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_base_plans_offers_batch_update( + connection, + package_name, + product_id, + base_plan_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1), + "basePlanId" => URI.encode(base_plan_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [struct: %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse{}] + ) + end + + @doc """ + Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. + * `product_id` (*type:* `String.t`) - Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. + * `base_plan_id` (*type:* `String.t`) - Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple base plans. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_monetization_subscriptions_base_plans_offers_batch_update_states( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_monetization_subscriptions_base_plans_offers_batch_update_states( + connection, + package_name, + product_id, + base_plan_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1), + "basePlanId" => URI.encode(base_plan_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ + [ + struct: + %GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse{} + ] + ) + end + @doc """ Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated. @@ -1005,7 +1583,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:offerId` (*type:* `String.t`) - Required. The ID to use for the offer. For the requirements on this format, see the documentation of the offer_id field on the SubscriptionOffer resource. - * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01. + * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1330,8 +1908,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server * `package_name` (*type:* `String.t`) - Required. The parent app (package name) for which the subscriptions should be read. - * `product_id` (*type:* `String.t`) - Required. The parent subscription (ID) for which the offers should be read. - * `base_plan_id` (*type:* `String.t`) - Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read all offers under a subscription. + * `product_id` (*type:* `String.t`) - Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' to read all offers under an app. + * `base_plan_id` (*type:* `String.t`) - Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read all offers under a subscription or an app. Must be specified as '-' if product_id is specified as '-'. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1432,7 +2010,9 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01. + * `:allowMissing` (*type:* `boolean()`) - Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, update_mask is ignored. + * `:latencyTolerance` (*type:* `String.t`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `:"regionsVersion.version"` (*type:* `String.t`) - Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. * `:updateMask` (*type:* `String.t`) - Required. The list of fields to be updated. * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1476,6 +2056,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Monetization do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :allowMissing => :query, + :latencyTolerance => :query, :"regionsVersion.version" => :query, :updateMask => :query, :body => :body diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/orders.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/orders.ex index 663ffbd878..88a0ef4bbe 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/orders.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/orders.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Orders do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Refunds a user's subscription or in-app purchase order. Orders older than 1 year cannot be refunded. + Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded. ## Parameters diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex index df853bb0cb..eaa09c27a2 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/api/purchases.ex @@ -104,6 +104,83 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Purchases do |> Response.decode(opts ++ [decode: false]) end + @doc """ + Consumes a purchase for an inapp item. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - The package name of the application the inapp product was sold in (for example, 'com.some.thing'). + * `product_id` (*type:* `String.t`) - The inapp product SKU (for example, 'com.some.thing.inapp1'). + * `token` (*type:* `String.t`) - The token provided to the user's device when the inapp product was purchased. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_purchases_products_consume( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} + def androidpublisher_purchases_products_consume( + connection, + package_name, + product_id, + token, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &URI.char_unreserved?/1), + "token" => URI.encode(token, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [decode: false]) + end + @doc """ Checks the purchase and consumption status of an inapp item. @@ -742,6 +819,87 @@ defmodule GoogleApi.AndroidPublisher.V3.Api.Purchases do ) end + @doc """ + Revoke a subscription purchase for the user. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AndroidPublisher.V3.Connection.t`) - Connection to server + * `package_name` (*type:* `String.t`) - Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing'). + * `token` (*type:* `String.t`) - Required. The token provided to the user's device when the subscription was purchased. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse{}}` on success + * `{:error, info}` on failure + """ + @spec androidpublisher_purchases_subscriptionsv2_revoke( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def androidpublisher_purchases_subscriptionsv2_revoke( + connection, + package_name, + token, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke", + %{ + "packageName" => URI.encode(package_name, &URI.char_unreserved?/1), + "token" => URI.encode(token, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse{}] + ) + end + @doc """ Lists the purchases that were canceled, refunded or charged-back. diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex index 53b0533f3c..cda8a28891 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AndroidPublisher.V3 do API client metadata for GoogleApi.AndroidPublisher.V3. """ - @discovery_revision "20221108" + @discovery_revision "20240308" def discovery_revision(), do: @discovery_revision end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi.ex new file mode 100644 index 0000000000..a64cec5133 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.Abi do + @moduledoc """ + Represents an Abi. + + ## Attributes + + * `alias` (*type:* `String.t`, *default:* `nil`) - Alias for an abi. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alias => String.t() | nil + } + + field(:alias) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.Abi do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.Abi.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.Abi do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi_targeting.ex new file mode 100644 index 0000000000..6c5c01ce56 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/abi_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AbiTargeting do + @moduledoc """ + Targeting based on Abi. + + ## Attributes + + * `alternatives` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Abi.t)`, *default:* `nil`) - Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits. + * `value` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Abi.t)`, *default:* `nil`) - Value of an abi. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => list(GoogleApi.AndroidPublisher.V3.Model.Abi.t()) | nil, + :value => list(GoogleApi.AndroidPublisher.V3.Model.Abi.t()) | nil + } + + field(:alternatives, as: GoogleApi.AndroidPublisher.V3.Model.Abi, type: :list) + field(:value, as: GoogleApi.AndroidPublisher.V3.Model.Abi, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AbiTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AbiTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AbiTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_base_plan_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_base_plan_request.ex index d2e7c1d054..50ef7363e9 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_base_plan_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_base_plan_request.ex @@ -21,11 +21,25 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.ActivateBasePlanRequest do ## Attributes + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The unique base plan ID of the base plan to activate. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. The parent app (package name) of the base plan to activate. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The parent subscription (ID) of the base plan to activate. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :latencyTolerance => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil + } + + field(:basePlanId) + field(:latencyTolerance) + field(:packageName) + field(:productId) end defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ActivateBasePlanRequest do diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_subscription_offer_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_subscription_offer_request.ex index 9739150acd..6c362a9903 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_subscription_offer_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/activate_subscription_offer_request.ex @@ -21,11 +21,28 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.ActivateSubscriptionOfferRequest d ## Attributes + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The parent base plan (ID) of the offer to activate. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `offerId` (*type:* `String.t`, *default:* `nil`) - Required. The unique offer ID of the offer to activate. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. The parent app (package name) of the offer to activate. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The parent subscription (ID) of the offer to activate. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :latencyTolerance => String.t() | nil, + :offerId => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil + } + + field(:basePlanId) + field(:latencyTolerance) + field(:offerId) + field(:packageName) + field(:productId) end defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ActivateSubscriptionOfferRequest do diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_request.ex new file mode 100644 index 0000000000..09ee0c5100 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AddTargetingRequest do + @moduledoc """ + Request message for AddTargeting. + + ## Attributes + + * `targetingUpdate` (*type:* `GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate.t`, *default:* `nil`) - Specifies targeting updates such as regions, android sdk versions etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetingUpdate => GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate.t() | nil + } + + field(:targetingUpdate, as: GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AddTargetingRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AddTargetingRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AddTargetingRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_response.ex new file mode 100644 index 0000000000..43de3adc53 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/add_targeting_response.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse do + @moduledoc """ + Response message for AddTargeting. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AddTargetingResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/all_users.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/all_users.ex new file mode 100644 index 0000000000..436349a75f --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/all_users.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AllUsers do + @moduledoc """ + Object representation to describe all set of users. + + ## Attributes + + * `isAllUsersRequested` (*type:* `boolean()`, *default:* `nil`) - Required. Set to true if all set of users are needed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isAllUsersRequested => boolean() | nil + } + + field(:isAllUsersRequested) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AllUsers do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AllUsers.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AllUsers do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/android_sdks.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/android_sdks.ex new file mode 100644 index 0000000000..e6b9af90c3 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/android_sdks.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AndroidSdks do + @moduledoc """ + Android api level targeting data for app recovery action targeting. + + ## Attributes + + * `sdkLevels` (*type:* `list(String.t)`, *default:* `nil`) - Android api levels of devices targeted by recovery action. See https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in android. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sdkLevels => list(String.t()) | nil + } + + field(:sdkLevels, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AndroidSdks do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AndroidSdks.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AndroidSdks do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_description.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_description.ex new file mode 100644 index 0000000000..dfcda23613 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_description.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ApkDescription do + @moduledoc """ + Description of the created apks. + + ## Attributes + + * `assetSliceMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t`, *default:* `nil`) - Set only for asset slices. + * `instantApkMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t`, *default:* `nil`) - Set only for Instant split APKs. + * `path` (*type:* `String.t`, *default:* `nil`) - Path of the Apk, will be in the following format: .apk where DownloadId is the ID used to download the apk using GeneratedApks.Download API. + * `splitApkMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t`, *default:* `nil`) - Set only for Split APKs. + * `standaloneApkMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata.t`, *default:* `nil`) - Set only for standalone APKs. + * `targeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ApkTargeting.t`, *default:* `nil`) - Apk-level targeting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetSliceMetadata => GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t() | nil, + :instantApkMetadata => GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t() | nil, + :path => String.t() | nil, + :splitApkMetadata => GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.t() | nil, + :standaloneApkMetadata => + GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata.t() | nil, + :targeting => GoogleApi.AndroidPublisher.V3.Model.ApkTargeting.t() | nil + } + + field(:assetSliceMetadata, as: GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata) + field(:instantApkMetadata, as: GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata) + field(:path) + field(:splitApkMetadata, as: GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata) + field(:standaloneApkMetadata, as: GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata) + field(:targeting, as: GoogleApi.AndroidPublisher.V3.Model.ApkTargeting) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkDescription do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ApkDescription.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkDescription do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_set.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_set.ex new file mode 100644 index 0000000000..ec3250a421 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_set.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ApkSet do + @moduledoc """ + A set of apks representing a module. + + ## Attributes + + * `apkDescription` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.ApkDescription.t)`, *default:* `nil`) - Description of the generated apks. + * `moduleMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata.t`, *default:* `nil`) - Metadata about the module represented by this ApkSet + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apkDescription => list(GoogleApi.AndroidPublisher.V3.Model.ApkDescription.t()) | nil, + :moduleMetadata => GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata.t() | nil + } + + field(:apkDescription, as: GoogleApi.AndroidPublisher.V3.Model.ApkDescription, type: :list) + field(:moduleMetadata, as: GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkSet do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ApkSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_targeting.ex new file mode 100644 index 0000000000..d1ea05e234 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/apk_targeting.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ApkTargeting do + @moduledoc """ + Represents a set of apk-level targetings. + + ## Attributes + + * `abiTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AbiTargeting.t`, *default:* `nil`) - The abi that the apk targets + * `languageTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting.t`, *default:* `nil`) - The language that the apk targets + * `multiAbiTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting.t`, *default:* `nil`) - Multi-api-level targeting. + * `screenDensityTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting.t`, *default:* `nil`) - The screen density that this apk supports. + * `sdkVersionTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t`, *default:* `nil`) - The sdk version that the apk targets + * `textureCompressionFormatTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting.t`, *default:* `nil`) - Texture-compression-format-level targeting + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :abiTargeting => GoogleApi.AndroidPublisher.V3.Model.AbiTargeting.t() | nil, + :languageTargeting => GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting.t() | nil, + :multiAbiTargeting => GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting.t() | nil, + :screenDensityTargeting => + GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting.t() | nil, + :sdkVersionTargeting => + GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t() | nil, + :textureCompressionFormatTargeting => + GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting.t() | nil + } + + field(:abiTargeting, as: GoogleApi.AndroidPublisher.V3.Model.AbiTargeting) + field(:languageTargeting, as: GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting) + field(:multiAbiTargeting, as: GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting) + field(:screenDensityTargeting, as: GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting) + field(:sdkVersionTargeting, as: GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting) + + field(:textureCompressionFormatTargeting, + as: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ApkTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ApkTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_recovery_action.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_recovery_action.ex new file mode 100644 index 0000000000..5c0486a140 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_recovery_action.ex @@ -0,0 +1,68 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction do + @moduledoc """ + Information about an app recovery action. + + ## Attributes + + * `appRecoveryId` (*type:* `String.t`, *default:* `nil`) - ID corresponding to the app recovery action. + * `cancelTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has been canceled. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of when the app recovery action is created by the developer. It is always set after creation of the recovery action. + * `deployTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been deployed. + * `lastUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp of when the developer last updated recovery action. In case the action is cancelled, it corresponds to cancellation time. It is always set after creation of the recovery action. + * `remoteInAppUpdateData` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData.t`, *default:* `nil`) - Data about the remote in-app update action such as such as recovered user base, recoverable user base etc. Set only if the recovery action type is Remote In-App Update. + * `status` (*type:* `String.t`, *default:* `nil`) - The status of the recovery action. + * `targeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Targeting.t`, *default:* `nil`) - Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appRecoveryId => String.t() | nil, + :cancelTime => DateTime.t() | nil, + :createTime => DateTime.t() | nil, + :deployTime => DateTime.t() | nil, + :lastUpdateTime => DateTime.t() | nil, + :remoteInAppUpdateData => + GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData.t() | nil, + :status => String.t() | nil, + :targeting => GoogleApi.AndroidPublisher.V3.Model.Targeting.t() | nil + } + + field(:appRecoveryId) + field(:cancelTime, as: DateTime) + field(:createTime, as: DateTime) + field(:deployTime, as: DateTime) + field(:lastUpdateTime, as: DateTime) + field(:remoteInAppUpdateData, as: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData) + field(:status) + field(:targeting, as: GoogleApi.AndroidPublisher.V3.Model.Targeting) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_list.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_list.ex new file mode 100644 index 0000000000..e2693d9b36 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_list.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AppVersionList do + @moduledoc """ + Data format for a list of app versions. + + ## Attributes + + * `versionCodes` (*type:* `list(String.t)`, *default:* `nil`) - List of app version codes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :versionCodes => list(String.t()) | nil + } + + field(:versionCodes, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AppVersionList do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AppVersionList.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AppVersionList do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_range.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_range.ex new file mode 100644 index 0000000000..39332e1222 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/app_version_range.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AppVersionRange do + @moduledoc """ + Data format for a continuous range of app versions. + + ## Attributes + + * `versionCodeEnd` (*type:* `String.t`, *default:* `nil`) - Highest app version in the range, inclusive. + * `versionCodeStart` (*type:* `String.t`, *default:* `nil`) - Lowest app version in the range, inclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :versionCodeEnd => String.t() | nil, + :versionCodeStart => String.t() | nil + } + + field(:versionCodeEnd) + field(:versionCodeStart) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AppVersionRange do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AppVersionRange.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AppVersionRange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/archive_subscription_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/archive_subscription_request.ex index 96a5d95ef4..f78a37baea 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/archive_subscription_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/archive_subscription_request.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.ArchiveSubscriptionRequest do @moduledoc """ - Request message for ArchiveSubscription. + Deprecated: subscription archiving is not supported. ## Attributes diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_module_metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_module_metadata.ex new file mode 100644 index 0000000000..7f61d15e5e --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_module_metadata.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata do + @moduledoc """ + Metadata of an asset module. + + ## Attributes + + * `deliveryType` (*type:* `String.t`, *default:* `nil`) - Indicates the delivery type for persistent install. + * `name` (*type:* `String.t`, *default:* `nil`) - Module name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deliveryType => String.t() | nil, + :name => String.t() | nil + } + + field(:deliveryType) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_slice_set.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_slice_set.ex new file mode 100644 index 0000000000..d2d02d301b --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/asset_slice_set.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet do + @moduledoc """ + Set of asset slices belonging to a single asset module. + + ## Attributes + + * `apkDescription` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.ApkDescription.t)`, *default:* `nil`) - Asset slices. + * `assetModuleMetadata` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata.t`, *default:* `nil`) - Module level metadata. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apkDescription => list(GoogleApi.AndroidPublisher.V3.Model.ApkDescription.t()) | nil, + :assetModuleMetadata => + GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata.t() | nil + } + + field(:apkDescription, as: GoogleApi.AndroidPublisher.V3.Model.ApkDescription, type: :list) + field(:assetModuleMetadata, as: GoogleApi.AndroidPublisher.V3.Model.AssetModuleMetadata) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/auto_renewing_base_plan_type.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/auto_renewing_base_plan_type.ex index a7a1c3dcc4..95e5fb7e24 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/auto_renewing_base_plan_type.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/auto_renewing_base_plan_type.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.AutoRenewingBasePlanType do ## Attributes + * `accountHoldDuration` (*type:* `String.t`, *default:* `nil`) - Optional. Account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in DAYS and in the range P0D (zero days) to P30D (30 days). If not specified, the default value is P30D (30 days). * `billingPeriodDuration` (*type:* `String.t`, *default:* `nil`) - Required. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. * `gracePeriodDuration` (*type:* `String.t`, *default:* `nil`) - Grace period of the subscription, specified in ISO 8601 format. Acceptable values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and P30D (30 days). If not specified, a default value will be used based on the recurring period duration. * `legacyCompatible` (*type:* `boolean()`, *default:* `nil`) - Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription. @@ -32,6 +33,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.AutoRenewingBasePlanType do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :accountHoldDuration => String.t() | nil, :billingPeriodDuration => String.t() | nil, :gracePeriodDuration => String.t() | nil, :legacyCompatible => boolean() | nil, @@ -40,6 +42,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.AutoRenewingBasePlanType do :resubscribeState => String.t() | nil } + field(:accountHoldDuration) field(:billingPeriodDuration) field(:gracePeriodDuration) field(:legacyCompatible) diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_request.ex new file mode 100644 index 0000000000..817e3dd218 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_request.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersRequest do + @moduledoc """ + Request message for BatchGetSubscriptionOffers endpoint. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest.t)`, *default:* `nil`) - Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest.t()) | nil + } + + field(:requests, + as: GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_response.ex new file mode 100644 index 0000000000..a083d1d049 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscription_offers_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse do + @moduledoc """ + Response message for BatchGetSubscriptionOffers endpoint. + + ## Attributes + + * `subscriptionOffers` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t)`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptionOffers => + list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t()) | nil + } + + field(:subscriptionOffers, + as: GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionOffersResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscriptions_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscriptions_response.ex new file mode 100644 index 0000000000..6bc3cf8c9d --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_get_subscriptions_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse do + @moduledoc """ + Response message for BatchGetSubscriptions endpoint. + + ## Attributes + + * `subscriptions` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t)`, *default:* `nil`) - The list of requested subscriptions, in the same order as the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptions => list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t()) | nil + } + + field(:subscriptions, as: GoogleApi.AndroidPublisher.V3.Model.Subscription, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchGetSubscriptionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_request.ex new file mode 100644 index 0000000000..280a4d6de1 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_request.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesRequest do + @moduledoc """ + Request message for BatchMigrateBasePlanPrices. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesRequest.t)`, *default:* `nil`) - Required. Up to 100 price migration requests. All requests must update different base plans. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesRequest.t()) | nil + } + + field(:requests, + as: GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesRequest, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_response.ex new file mode 100644 index 0000000000..80fe46f010 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_migrate_base_plan_prices_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse do + @moduledoc """ + Response message for BatchMigrateBasePlanPrices. + + ## Attributes + + * `responses` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesResponse.t)`, *default:* `nil`) - Contains one response per requested price migration, in the same order as the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :responses => + list(GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesResponse.t()) | nil + } + + field(:responses, + as: GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesResponse, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchMigrateBasePlanPricesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_request.ex new file mode 100644 index 0000000000..4a694e9d6c --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesRequest do + @moduledoc """ + Request message for BatchUpdateBasePlanStates. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest.t)`, *default:* `nil`) - Required. The update request list of up to 100 elements. All requests must update different base plans. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest.t()) | nil + } + + field(:requests, as: GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_response.ex new file mode 100644 index 0000000000..be06956a18 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_base_plan_states_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse do + @moduledoc """ + Response message for BatchUpdateBasePlanStates. + + ## Attributes + + * `subscriptions` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t)`, *default:* `nil`) - The list of updated subscriptions. This list will match the requests one to one, in the same order. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptions => list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t()) | nil + } + + field(:subscriptions, as: GoogleApi.AndroidPublisher.V3.Model.Subscription, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateBasePlanStatesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_request.ex new file mode 100644 index 0000000000..f1477d21e4 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_request.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesRequest do + @moduledoc """ + Request message for BatchUpdateSubscriptionOfferStates. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest.t)`, *default:* `nil`) - Required. The update request list of up to 100 elements. All requests must update different offers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest.t()) + | nil + } + + field(:requests, + as: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_response.ex new file mode 100644 index 0000000000..6256d6e2bf --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offer_states_response.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse do + @moduledoc """ + Response message for BatchUpdateSubscriptionOfferStates. + + ## Attributes + + * `subscriptionOffers` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t)`, *default:* `nil`) - The updated subscription offers list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptionOffers => + list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t()) | nil + } + + field(:subscriptionOffers, + as: GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOfferStatesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_request.ex new file mode 100644 index 0000000000..24570abdb9 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersRequest do + @moduledoc """ + Request message for BatchUpdateSubscriptionOffers. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest.t)`, *default:* `nil`) - Required. A list of update requests of up to 100 elements. All requests must update different subscription offers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest.t()) | nil + } + + field(:requests, + as: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersRequest.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_response.ex new file mode 100644 index 0000000000..fcaf342289 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscription_offers_response.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse do + @moduledoc """ + Response message for BatchUpdateSubscriptionOffers. + + ## Attributes + + * `subscriptionOffers` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t)`, *default:* `nil`) - The updated subscription offers list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptionOffers => + list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t()) | nil + } + + field(:subscriptionOffers, + as: GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer, + type: :list + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionOffersResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_request.ex new file mode 100644 index 0000000000..6a8a7a4691 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsRequest do + @moduledoc """ + Request message for BatchUpdateSubscription. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest.t)`, *default:* `nil`) - Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest.t()) | nil + } + + field(:requests, as: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_response.ex new file mode 100644 index 0000000000..29b7b61cf0 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/batch_update_subscriptions_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse do + @moduledoc """ + Response message for BatchUpdateSubscription. + + ## Attributes + + * `subscriptions` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t)`, *default:* `nil`) - The updated subscriptions list. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptions => list(GoogleApi.AndroidPublisher.V3.Model.Subscription.t()) | nil + } + + field(:subscriptions, as: GoogleApi.AndroidPublisher.V3.Model.Subscription, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.BatchUpdateSubscriptionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_request.ex new file mode 100644 index 0000000000..e341c32d75 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryRequest do + @moduledoc """ + Request message for CancelAppRecovery. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_response.ex new file mode 100644 index 0000000000..df83352776 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/cancel_app_recovery_response.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse do + @moduledoc """ + Response message for CancelAppRecovery. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.CancelAppRecoveryResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/create_draft_app_recovery_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/create_draft_app_recovery_request.ex new file mode 100644 index 0000000000..ba430c3897 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/create_draft_app_recovery_request.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.CreateDraftAppRecoveryRequest do + @moduledoc """ + Request message for CreateDraftAppRecovery. + + ## Attributes + + * `remoteInAppUpdate` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate.t`, *default:* `nil`) - Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes. + * `targeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Targeting.t`, *default:* `nil`) - Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :remoteInAppUpdate => GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate.t() | nil, + :targeting => GoogleApi.AndroidPublisher.V3.Model.Targeting.t() | nil + } + + field(:remoteInAppUpdate, as: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate) + field(:targeting, as: GoogleApi.AndroidPublisher.V3.Model.Targeting) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.CreateDraftAppRecoveryRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.CreateDraftAppRecoveryRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.CreateDraftAppRecoveryRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_base_plan_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_base_plan_request.ex index 99bee19325..fb7a58bc52 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_base_plan_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_base_plan_request.ex @@ -21,11 +21,25 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeactivateBasePlanRequest do ## Attributes + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The unique base plan ID of the base plan to deactivate. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. The parent app (package name) of the base plan to deactivate. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The parent subscription (ID) of the base plan to deactivate. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :latencyTolerance => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil + } + + field(:basePlanId) + field(:latencyTolerance) + field(:packageName) + field(:productId) end defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeactivateBasePlanRequest do diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_subscription_offer_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_subscription_offer_request.ex index 44ac7f9e56..90951eb68f 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_subscription_offer_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deactivate_subscription_offer_request.ex @@ -21,11 +21,28 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeactivateSubscriptionOfferRequest ## Attributes + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The parent base plan (ID) of the offer to deactivate. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `offerId` (*type:* `String.t`, *default:* `nil`) - Required. The unique offer ID of the offer to deactivate. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. The parent app (package name) of the offer to deactivate. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The parent subscription (ID) of the offer to deactivate. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :latencyTolerance => String.t() | nil, + :offerId => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil + } + + field(:basePlanId) + field(:latencyTolerance) + field(:offerId) + field(:packageName) + field(:productId) end defimpl Poison.Decoder, diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deferred_item_replacement.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deferred_item_replacement.ex new file mode 100644 index 0000000000..47b1c60a24 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deferred_item_replacement.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement do + @moduledoc """ + Information related to deferred item replacement. + + ## Attributes + + * `productId` (*type:* `String.t`, *default:* `nil`) - The product_id going to replace the existing product_id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :productId => String.t() | nil + } + + field(:productId) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_request.ex new file mode 100644 index 0000000000..9926921f88 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryRequest do + @moduledoc """ + Request message for DeployAppRecovery. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_response.ex new file mode 100644 index 0000000000..10ca5e4db5 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/deploy_app_recovery_response.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse do + @moduledoc """ + Response message for DeployAppRecovery. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.DeployAppRecoveryResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature.ex new file mode 100644 index 0000000000..cf66efeaae --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceFeature do + @moduledoc """ + Represents a device feature. + + ## Attributes + + * `featureName` (*type:* `String.t`, *default:* `nil`) - Name of the feature. + * `featureVersion` (*type:* `integer()`, *default:* `nil`) - The feature version specified by android:glEsVersion or android:version in in the AndroidManifest. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :featureName => String.t() | nil, + :featureVersion => integer() | nil + } + + field(:featureName) + field(:featureVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceFeature do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.DeviceFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature_targeting.ex new file mode 100644 index 0000000000..ac064be475 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_feature_targeting.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting do + @moduledoc """ + Targeting for a device feature. + + ## Attributes + + * `requiredFeature` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeviceFeature.t`, *default:* `nil`) - Feature of the device. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requiredFeature => GoogleApi.AndroidPublisher.V3.Model.DeviceFeature.t() | nil + } + + field(:requiredFeature, as: GoogleApi.AndroidPublisher.V3.Model.DeviceFeature) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex index 74c9693062..8b953497e9 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_group.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceGroup do @moduledoc """ - LINT.IfChange A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR). + A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR). ## Attributes diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_tier_config.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_tier_config.ex index e3b1001e60..f9d2df6d4f 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_tier_config.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/device_tier_config.ex @@ -17,13 +17,14 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceTierConfig do @moduledoc """ - LINT.IfChange Configuration describing device targeting criteria for the content of an app. + Configuration describing device targeting criteria for the content of an app. ## Attributes * `deviceGroups` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.DeviceGroup.t)`, *default:* `nil`) - Definition of device groups for the app. * `deviceTierConfigId` (*type:* `String.t`, *default:* `nil`) - Output only. The device tier config ID. * `deviceTierSet` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeviceTierSet.t`, *default:* `nil`) - Definition of the set of device tiers for the app. + * `userCountrySets` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.UserCountrySet.t)`, *default:* `nil`) - Definition of user country sets for the app. """ use GoogleApi.Gax.ModelBase @@ -31,12 +32,14 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.DeviceTierConfig do @type t :: %__MODULE__{ :deviceGroups => list(GoogleApi.AndroidPublisher.V3.Model.DeviceGroup.t()) | nil, :deviceTierConfigId => String.t() | nil, - :deviceTierSet => GoogleApi.AndroidPublisher.V3.Model.DeviceTierSet.t() | nil + :deviceTierSet => GoogleApi.AndroidPublisher.V3.Model.DeviceTierSet.t() | nil, + :userCountrySets => list(GoogleApi.AndroidPublisher.V3.Model.UserCountrySet.t()) | nil } field(:deviceGroups, as: GoogleApi.AndroidPublisher.V3.Model.DeviceGroup, type: :list) field(:deviceTierConfigId) field(:deviceTierSet, as: GoogleApi.AndroidPublisher.V3.Model.DeviceTierSet) + field(:userCountrySets, as: GoogleApi.AndroidPublisher.V3.Model.UserCountrySet, type: :list) end defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.DeviceTierConfig do diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_subscription.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_subscription.ex new file mode 100644 index 0000000000..8d084d6041 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_subscription.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription do + @moduledoc """ + Details of an external subscription. + + ## Attributes + + * `subscriptionType` (*type:* `String.t`, *default:* `nil`) - Required. The type of the external subscription. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscriptionType => String.t() | nil + } + + field(:subscriptionType) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction.ex new file mode 100644 index 0000000000..f41a4d779b --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction.ex @@ -0,0 +1,90 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction do + @moduledoc """ + The details of an external transaction. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when this transaction was created. This is the time when Google was notified of the transaction. + * `currentPreTaxAmount` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Price.t`, *default:* `nil`) - Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction. + * `currentTaxAmount` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Price.t`, *default:* `nil`) - Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction. + * `externalTransactionId` (*type:* `String.t`, *default:* `nil`) - Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction. + * `oneTimeTransaction` (*type:* `GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction.t`, *default:* `nil`) - This is a one-time transaction and not part of a subscription. + * `originalPreTaxAmount` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Price.t`, *default:* `nil`) - Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied. + * `originalTaxAmount` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Price.t`, *default:* `nil`) - Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, 'com.some.app'). + * `recurringTransaction` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction.t`, *default:* `nil`) - This transaction is part of a recurring series of transactions. + * `testPurchase` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase.t`, *default:* `nil`) - Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction. + * `transactionState` (*type:* `String.t`, *default:* `nil`) - Output only. The current state of the transaction. + * `transactionTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The time when the transaction was completed. + * `userTaxAddress` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress.t`, *default:* `nil`) - Required. User address for tax computation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :currentPreTaxAmount => GoogleApi.AndroidPublisher.V3.Model.Price.t() | nil, + :currentTaxAmount => GoogleApi.AndroidPublisher.V3.Model.Price.t() | nil, + :externalTransactionId => String.t() | nil, + :oneTimeTransaction => + GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction.t() | nil, + :originalPreTaxAmount => GoogleApi.AndroidPublisher.V3.Model.Price.t() | nil, + :originalTaxAmount => GoogleApi.AndroidPublisher.V3.Model.Price.t() | nil, + :packageName => String.t() | nil, + :recurringTransaction => + GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction.t() | nil, + :testPurchase => + GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase.t() | nil, + :transactionState => String.t() | nil, + :transactionTime => DateTime.t() | nil, + :userTaxAddress => + GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress.t() | nil + } + + field(:createTime, as: DateTime) + field(:currentPreTaxAmount, as: GoogleApi.AndroidPublisher.V3.Model.Price) + field(:currentTaxAmount, as: GoogleApi.AndroidPublisher.V3.Model.Price) + field(:externalTransactionId) + field(:oneTimeTransaction, as: GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction) + field(:originalPreTaxAmount, as: GoogleApi.AndroidPublisher.V3.Model.Price) + field(:originalTaxAmount, as: GoogleApi.AndroidPublisher.V3.Model.Price) + field(:packageName) + + field(:recurringTransaction, + as: GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction + ) + + field(:testPurchase, as: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase) + field(:transactionState) + field(:transactionTime, as: DateTime) + field(:userTaxAddress, as: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransaction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_address.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_address.ex new file mode 100644 index 0000000000..dde09bb1b4 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_address.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress do + @moduledoc """ + User's address for the external transaction. + + ## Attributes + + * `administrativeArea` (*type:* `String.t`, *default:* `nil`) - Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are "ANDAMAN AND NICOBAR ISLANDS", "ANDHRA PRADESH", "ARUNACHAL PRADESH", "ASSAM", "BIHAR", "CHANDIGARH", "CHHATTISGARH", "DADRA AND NAGAR HAVELI", "DADRA AND NAGAR HAVELI AND DAMAN AND DIU", "DAMAN AND DIU", "DELHI", "GOA", "GUJARAT", "HARYANA", "HIMACHAL PRADESH", "JAMMU AND KASHMIR", "JHARKHAND", "KARNATAKA", "KERALA", "LADAKH", "LAKSHADWEEP", "MADHYA PRADESH", "MAHARASHTRA", "MANIPUR", "MEGHALAYA", "MIZORAM", "NAGALAND", "ODISHA", "PUDUCHERRY", "PUNJAB", "RAJASTHAN", "SIKKIM", "TAMIL NADU", "TELANGANA", "TRIPURA", "UTTAR PRADESH", "UTTARAKHAND", and "WEST BENGAL". + * `regionCode` (*type:* `String.t`, *default:* `nil`) - Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :administrativeArea => String.t() | nil, + :regionCode => String.t() | nil + } + + field(:administrativeArea) + field(:regionCode) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionAddress do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_test_purchase.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_test_purchase.ex new file mode 100644 index 0000000000..4051292cf2 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/external_transaction_test_purchase.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase do + @moduledoc """ + Represents a transaction performed using a test account. These transactions will not be charged by Google. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ExternalTransactionTestPurchase do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/full_refund.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/full_refund.ex new file mode 100644 index 0000000000..26102516fc --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/full_refund.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.FullRefund do + @moduledoc """ + A full refund of the remaining amount of a transaction. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.FullRefund do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.FullRefund.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.FullRefund do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_apks_per_signing_key.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_apks_per_signing_key.ex index 4ea2531388..aa860fa7bc 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_apks_per_signing_key.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_apks_per_signing_key.ex @@ -23,9 +23,11 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.GeneratedApksPerSigningKey do * `certificateSha256Hash` (*type:* `String.t`, *default:* `nil`) - SHA256 hash of the APK signing public key certificate. * `generatedAssetPackSlices` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.GeneratedAssetPackSlice.t)`, *default:* `nil`) - List of asset pack slices which will be served for this app bundle, signed with a key corresponding to certificate_sha256_hash. + * `generatedRecoveryModules` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk.t)`, *default:* `nil`) - Generated recovery apks for recovery actions signed with a key corresponding to certificate_sha256_hash. This includes all generated recovery APKs, also those in draft or cancelled state. This field is not set if no recovery actions were created for this signing key. * `generatedSplitApks` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.GeneratedSplitApk.t)`, *default:* `nil`) - List of generated split APKs, signed with a key corresponding to certificate_sha256_hash. * `generatedStandaloneApks` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.GeneratedStandaloneApk.t)`, *default:* `nil`) - List of generated standalone APKs, signed with a key corresponding to certificate_sha256_hash. * `generatedUniversalApk` (*type:* `GoogleApi.AndroidPublisher.V3.Model.GeneratedUniversalApk.t`, *default:* `nil`) - Generated universal APK, signed with a key corresponding to certificate_sha256_hash. This field is not set if no universal APK was generated for this signing key. + * `targetingInfo` (*type:* `GoogleApi.AndroidPublisher.V3.Model.TargetingInfo.t`, *default:* `nil`) - Contains targeting information about the generated apks. """ use GoogleApi.Gax.ModelBase @@ -34,12 +36,15 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.GeneratedApksPerSigningKey do :certificateSha256Hash => String.t() | nil, :generatedAssetPackSlices => list(GoogleApi.AndroidPublisher.V3.Model.GeneratedAssetPackSlice.t()) | nil, + :generatedRecoveryModules => + list(GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk.t()) | nil, :generatedSplitApks => list(GoogleApi.AndroidPublisher.V3.Model.GeneratedSplitApk.t()) | nil, :generatedStandaloneApks => list(GoogleApi.AndroidPublisher.V3.Model.GeneratedStandaloneApk.t()) | nil, :generatedUniversalApk => - GoogleApi.AndroidPublisher.V3.Model.GeneratedUniversalApk.t() | nil + GoogleApi.AndroidPublisher.V3.Model.GeneratedUniversalApk.t() | nil, + :targetingInfo => GoogleApi.AndroidPublisher.V3.Model.TargetingInfo.t() | nil } field(:certificateSha256Hash) @@ -49,6 +54,11 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.GeneratedApksPerSigningKey do type: :list ) + field(:generatedRecoveryModules, + as: GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk, + type: :list + ) + field(:generatedSplitApks, as: GoogleApi.AndroidPublisher.V3.Model.GeneratedSplitApk, type: :list @@ -60,6 +70,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.GeneratedApksPerSigningKey do ) field(:generatedUniversalApk, as: GoogleApi.AndroidPublisher.V3.Model.GeneratedUniversalApk) + field(:targetingInfo, as: GoogleApi.AndroidPublisher.V3.Model.TargetingInfo) end defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.GeneratedApksPerSigningKey do diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_recovery_apk.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_recovery_apk.ex new file mode 100644 index 0000000000..8ce86ecbd3 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/generated_recovery_apk.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk do + @moduledoc """ + Download metadata for an app recovery module. + + ## Attributes + + * `downloadId` (*type:* `String.t`, *default:* `nil`) - Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method. + * `moduleName` (*type:* `String.t`, *default:* `nil`) - Name of the module which recovery apk belongs to. + * `recoveryId` (*type:* `String.t`, *default:* `nil`) - ID of the recovery action. + * `recoveryStatus` (*type:* `String.t`, *default:* `nil`) - The status of the recovery action corresponding to the recovery apk. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :downloadId => String.t() | nil, + :moduleName => String.t() | nil, + :recoveryId => String.t() | nil, + :recoveryStatus => String.t() | nil + } + + field(:downloadId) + field(:moduleName) + field(:recoveryId) + field(:recoveryStatus) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.GeneratedRecoveryApk do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/get_subscription_offer_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/get_subscription_offer_request.ex new file mode 100644 index 0000000000..ae602eadc6 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/get_subscription_offer_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest do + @moduledoc """ + Request message for GetSubscriptionOffer. + + ## Attributes + + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The parent base plan (ID) of the offer to get. + * `offerId` (*type:* `String.t`, *default:* `nil`) - Required. The unique offer ID of the offer to get. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. The parent app (package name) of the offer to get. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The parent subscription (ID) of the offer to get. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :offerId => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil + } + + field(:basePlanId) + field(:offerId) + field(:packageName) + field(:productId) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.GetSubscriptionOfferRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_delete_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_delete_request.ex new file mode 100644 index 0000000000..fe5f1c482f --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_delete_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchDeleteRequest do + @moduledoc """ + Request to delete multiple in-app products. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest.t)`, *default:* `nil`) - Individual delete requests. At least one request is required. Can contain up to 100 requests. All requests must correspond to different in-app products. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest.t()) | nil + } + + field(:requests, as: GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchDeleteRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchDeleteRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchDeleteRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_get_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_get_response.ex new file mode 100644 index 0000000000..bdecbda2ba --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_get_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse do + @moduledoc """ + Response message for BatchGetSubscriptions endpoint. + + ## Attributes + + * `inappproduct` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t)`, *default:* `nil`) - The list of requested in-app products, in the same order as the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inappproduct => list(GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t()) | nil + } + + field(:inappproduct, as: GoogleApi.AndroidPublisher.V3.Model.InAppProduct, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchGetResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_request.ex new file mode 100644 index 0000000000..d47c9e1117 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_request.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateRequest do + @moduledoc """ + Request to update or insert one or more in-app products. + + ## Attributes + + * `requests` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest.t)`, *default:* `nil`) - Required. Individual update requests. At least one request is required. Can contain up to 100 requests. All requests must correspond to different in-app products. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :requests => + list(GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest.t()) | nil + } + + field(:requests, as: GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_response.ex new file mode 100644 index 0000000000..426fc9c271 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_batch_update_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse do + @moduledoc """ + Response for a batch in-app product update. + + ## Attributes + + * `inappproducts` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t)`, *default:* `nil`) - The updated or inserted in-app products. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inappproducts => list(GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t()) | nil + } + + field(:inappproducts, as: GoogleApi.AndroidPublisher.V3.Model.InAppProduct, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsBatchUpdateResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_delete_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_delete_request.ex new file mode 100644 index 0000000000..5e62d81b73 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_delete_request.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest do + @moduledoc """ + Request to delete an in-app product. + + ## Attributes + + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Package name of the app. + * `sku` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the in-app product. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :latencyTolerance => String.t() | nil, + :packageName => String.t() | nil, + :sku => String.t() | nil + } + + field(:latencyTolerance) + field(:packageName) + field(:sku) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsDeleteRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_update_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_update_request.ex new file mode 100644 index 0000000000..2dc72d9d5e --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/inappproducts_update_request.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest do + @moduledoc """ + Request to update an in-app product. + + ## Attributes + + * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product will be created. + * `autoConvertMissingPrices` (*type:* `boolean()`, *default:* `nil`) - If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. + * `inappproduct` (*type:* `GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t`, *default:* `nil`) - The new in-app product. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Package name of the app. + * `sku` (*type:* `String.t`, *default:* `nil`) - Unique identifier for the in-app product. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowMissing => boolean() | nil, + :autoConvertMissingPrices => boolean() | nil, + :inappproduct => GoogleApi.AndroidPublisher.V3.Model.InAppProduct.t() | nil, + :latencyTolerance => String.t() | nil, + :packageName => String.t() | nil, + :sku => String.t() | nil + } + + field(:allowMissing) + field(:autoConvertMissingPrices) + field(:inappproduct, as: GoogleApi.AndroidPublisher.V3.Model.InAppProduct) + field(:latencyTolerance) + field(:packageName) + field(:sku) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.InappproductsUpdateRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/language_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/language_targeting.ex new file mode 100644 index 0000000000..fdb8a40a47 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/language_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting do + @moduledoc """ + Targeting based on language. + + ## Attributes + + * `alternatives` (*type:* `list(String.t)`, *default:* `nil`) - Alternative languages. + * `value` (*type:* `list(String.t)`, *default:* `nil`) - ISO-639: 2 or 3 letter language code. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => list(String.t()) | nil, + :value => list(String.t()) | nil + } + + field(:alternatives, type: :list) + field(:value, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.LanguageTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/list_app_recoveries_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/list_app_recoveries_response.ex new file mode 100644 index 0000000000..9f5de067ca --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/list_app_recoveries_response.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse do + @moduledoc """ + Response message for ListAppRecoveries. -- api-linter: core::0158::response-next-page-token-field=disabled + + ## Attributes + + * `recoveryActions` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction.t)`, *default:* `nil`) - List of recovery actions associated with the requested package name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :recoveryActions => + list(GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction.t()) | nil + } + + field(:recoveryActions, as: GoogleApi.AndroidPublisher.V3.Model.AppRecoveryAction, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ListAppRecoveriesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/managed_product_tax_and_compliance_settings.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/managed_product_tax_and_compliance_settings.ex index 9d9b7a350a..0789d9732e 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/managed_product_tax_and_compliance_settings.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/managed_product_tax_and_compliance_settings.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.ManagedProductTaxAndComplianceSett ## Attributes * `eeaWithdrawalRightType` (*type:* `String.t`, *default:* `nil`) - 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. + * `isTokenizedDigitalAsset` (*type:* `boolean()`, *default:* `nil`) - Whether this in-app product is declared as a product representing a tokenized digital asset. * `taxRateInfoByRegionCode` (*type:* `%{optional(String.t) => GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo.t}`, *default:* `nil`) - A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". """ @@ -29,12 +30,14 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.ManagedProductTaxAndComplianceSett @type t :: %__MODULE__{ :eeaWithdrawalRightType => String.t() | nil, + :isTokenizedDigitalAsset => boolean() | nil, :taxRateInfoByRegionCode => %{optional(String.t()) => GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo.t()} | nil } field(:eeaWithdrawalRightType) + field(:isTokenizedDigitalAsset) field(:taxRateInfoByRegionCode, as: GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo, diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/migrate_base_plan_prices_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/migrate_base_plan_prices_request.ex index 535862e12f..6ded5e0f09 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/migrate_base_plan_prices_request.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/migrate_base_plan_prices_request.ex @@ -21,6 +21,10 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesRequest do ## Attributes + * `basePlanId` (*type:* `String.t`, *default:* `nil`) - Required. The unique base plan ID of the base plan to update prices on. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource. + * `productId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource. * `regionalPriceMigrations` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.RegionalPriceMigrationConfig.t)`, *default:* `nil`) - Required. The regional prices to update. * `regionsVersion` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t`, *default:* `nil`) - Required. The version of the available regions being used for the regional_price_migrations. """ @@ -28,11 +32,20 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.MigrateBasePlanPricesRequest do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :basePlanId => String.t() | nil, + :latencyTolerance => String.t() | nil, + :packageName => String.t() | nil, + :productId => String.t() | nil, :regionalPriceMigrations => list(GoogleApi.AndroidPublisher.V3.Model.RegionalPriceMigrationConfig.t()) | nil, :regionsVersion => GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t() | nil } + field(:basePlanId) + field(:latencyTolerance) + field(:packageName) + field(:productId) + field(:regionalPriceMigrations, as: GoogleApi.AndroidPublisher.V3.Model.RegionalPriceMigrationConfig, type: :list diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_metadata.ex new file mode 100644 index 0000000000..a1be2580eb --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_metadata.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata do + @moduledoc """ + Metadata of a module. + + ## Attributes + + * `deliveryType` (*type:* `String.t`, *default:* `nil`) - Indicates the delivery type (e.g. on-demand) of the module. + * `dependencies` (*type:* `list(String.t)`, *default:* `nil`) - Names of the modules that this module directly depends on. Each module implicitly depends on the base module. + * `moduleType` (*type:* `String.t`, *default:* `nil`) - Indicates the type of this feature module. + * `name` (*type:* `String.t`, *default:* `nil`) - Module name. + * `targeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting.t`, *default:* `nil`) - The targeting that makes a conditional module installed. Relevant only for Split APKs. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deliveryType => String.t() | nil, + :dependencies => list(String.t()) | nil, + :moduleType => String.t() | nil, + :name => String.t() | nil, + :targeting => GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting.t() | nil + } + + field(:deliveryType) + field(:dependencies, type: :list) + field(:moduleType) + field(:name) + field(:targeting, as: GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ModuleMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_targeting.ex new file mode 100644 index 0000000000..5c2552e80a --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/module_targeting.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting do + @moduledoc """ + Targeting on the module level. + + ## Attributes + + * `deviceFeatureTargeting` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting.t)`, *default:* `nil`) - Targeting for device features. + * `sdkVersionTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t`, *default:* `nil`) - The sdk version that the variant targets + * `userCountriesTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting.t`, *default:* `nil`) - Countries-level targeting + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceFeatureTargeting => + list(GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting.t()) | nil, + :sdkVersionTargeting => + GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t() | nil, + :userCountriesTargeting => + GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting.t() | nil + } + + field(:deviceFeatureTargeting, + as: GoogleApi.AndroidPublisher.V3.Model.DeviceFeatureTargeting, + type: :list + ) + + field(:sdkVersionTargeting, as: GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting) + field(:userCountriesTargeting, as: GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ModuleTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi.ex new file mode 100644 index 0000000000..15d98ed632 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.MultiAbi do + @moduledoc """ + Represents a list of apis. + + ## Attributes + + * `abi` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Abi.t)`, *default:* `nil`) - A list of targeted ABIs, as represented by the Android Platform + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :abi => list(GoogleApi.AndroidPublisher.V3.Model.Abi.t()) | nil + } + + field(:abi, as: GoogleApi.AndroidPublisher.V3.Model.Abi, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.MultiAbi do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.MultiAbi.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.MultiAbi do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi_targeting.ex new file mode 100644 index 0000000000..58da6c231d --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/multi_abi_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting do + @moduledoc """ + Targeting based on multiple abis. + + ## Attributes + + * `alternatives` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.MultiAbi.t)`, *default:* `nil`) - Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits. + * `value` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.MultiAbi.t)`, *default:* `nil`) - Value of a multi abi. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => list(GoogleApi.AndroidPublisher.V3.Model.MultiAbi.t()) | nil, + :value => list(GoogleApi.AndroidPublisher.V3.Model.MultiAbi.t()) | nil + } + + field(:alternatives, as: GoogleApi.AndroidPublisher.V3.Model.MultiAbi, type: :list) + field(:value, as: GoogleApi.AndroidPublisher.V3.Model.MultiAbi, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/one_time_external_transaction.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/one_time_external_transaction.ex new file mode 100644 index 0000000000..b093d00846 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/one_time_external_transaction.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction do + @moduledoc """ + Represents a one-time transaction. + + ## Attributes + + * `externalTransactionToken` (*type:* `String.t`, *default:* `nil`) - Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :externalTransactionToken => String.t() | nil + } + + field(:externalTransactionToken) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.OneTimeExternalTransaction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/partial_refund.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/partial_refund.ex new file mode 100644 index 0000000000..bb9ffe0947 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/partial_refund.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.PartialRefund do + @moduledoc """ + A partial refund of a transaction. + + ## Attributes + + * `refundId` (*type:* `String.t`, *default:* `nil`) - Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds with the same id will fail. Must be unique across refunds for one individual transaction. + * `refundPreTaxAmount` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Price.t`, *default:* `nil`) - Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the transaction. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :refundId => String.t() | nil, + :refundPreTaxAmount => GoogleApi.AndroidPublisher.V3.Model.Price.t() | nil + } + + field(:refundId) + field(:refundPreTaxAmount, as: GoogleApi.AndroidPublisher.V3.Model.Price) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.PartialRefund do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.PartialRefund.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.PartialRefund do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/recurring_external_transaction.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/recurring_external_transaction.ex new file mode 100644 index 0000000000..8331d4d3b8 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/recurring_external_transaction.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction do + @moduledoc """ + Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder). + + ## Attributes + + * `externalSubscription` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription.t`, *default:* `nil`) - Details of an external subscription. + * `externalTransactionToken` (*type:* `String.t`, *default:* `nil`) - Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase. + * `initialExternalTransactionId` (*type:* `String.t`, *default:* `nil`) - The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions. + * `migratedTransactionProgram` (*type:* `String.t`, *default:* `nil`) - Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :externalSubscription => + GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription.t() | nil, + :externalTransactionToken => String.t() | nil, + :initialExternalTransactionId => String.t() | nil, + :migratedTransactionProgram => String.t() | nil + } + + field(:externalSubscription, as: GoogleApi.AndroidPublisher.V3.Model.ExternalSubscription) + field(:externalTransactionToken) + field(:initialExternalTransactionId) + field(:migratedTransactionProgram) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RecurringExternalTransaction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/refund_external_transaction_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/refund_external_transaction_request.ex new file mode 100644 index 0000000000..28a63b74a7 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/refund_external_transaction_request.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RefundExternalTransactionRequest do + @moduledoc """ + A request to refund an existing external transaction. + + ## Attributes + + * `fullRefund` (*type:* `GoogleApi.AndroidPublisher.V3.Model.FullRefund.t`, *default:* `nil`) - A full-amount refund. + * `partialRefund` (*type:* `GoogleApi.AndroidPublisher.V3.Model.PartialRefund.t`, *default:* `nil`) - A partial refund. + * `refundTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The time that the transaction was refunded. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fullRefund => GoogleApi.AndroidPublisher.V3.Model.FullRefund.t() | nil, + :partialRefund => GoogleApi.AndroidPublisher.V3.Model.PartialRefund.t() | nil, + :refundTime => DateTime.t() | nil + } + + field(:fullRefund, as: GoogleApi.AndroidPublisher.V3.Model.FullRefund) + field(:partialRefund, as: GoogleApi.AndroidPublisher.V3.Model.PartialRefund) + field(:refundTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RefundExternalTransactionRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RefundExternalTransactionRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RefundExternalTransactionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_price_migration_config.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_price_migration_config.ex index d0093454d3..656338cf50 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_price_migration_config.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_price_migration_config.ex @@ -21,7 +21,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.RegionalPriceMigrationConfig do ## Attributes - * `oldestAllowedPriceVersionTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The cutoff time for historical prices that subscribers can remain paying. Subscribers who are on a price that was created before this cutoff time will be migrated to the currently-offered price. These subscribers will receive a notification that they will be paying a different price. Subscribers who do not agree to the new price will have their subscription ended at the next renewal. + * `oldestAllowedPriceVersionTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The cutoff time for historical prices that subscribers can remain paying. Subscribers on prices which were available at this cutoff time or later will stay on their existing price. Subscribers on older prices will be migrated to the currently-offered price. The migrated subscribers will receive a notification that they will be paying a different price. Subscribers who do not agree to the new price will have their subscription ended at the next renewal. + * `priceIncreaseType` (*type:* `String.t`, *default:* `nil`) - Optional. The behavior the caller wants users to see when there is a price increase during migration. If left unset, the behavior defaults to PRICE_INCREASE_TYPE_OPT_IN. Note that the first opt-out price increase migration for each app must be initiated in Play Console. * `regionCode` (*type:* `String.t`, *default:* `nil`) - Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. "US". """ @@ -29,10 +30,12 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.RegionalPriceMigrationConfig do @type t :: %__MODULE__{ :oldestAllowedPriceVersionTime => DateTime.t() | nil, + :priceIncreaseType => String.t() | nil, :regionCode => String.t() | nil } field(:oldestAllowedPriceVersionTime, as: DateTime) + field(:priceIncreaseType) field(:regionCode) end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_tax_rate_info.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_tax_rate_info.ex index e578672c79..68252470bf 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_tax_rate_info.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regional_tax_rate_info.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo do ## Attributes - * `eligibleForStreamingServiceTaxRate` (*type:* `boolean()`, *default:* `nil`) - You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in United States. + * `eligibleForStreamingServiceTaxRate` (*type:* `boolean()`, *default:* `nil`) - You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States. * `streamingTaxType` (*type:* `String.t`, *default:* `nil`) - 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). * `taxTier` (*type:* `String.t`, *default:* `nil`) - 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). """ diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions.ex new file mode 100644 index 0000000000..add53fa330 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.Regions do + @moduledoc """ + Region targeting data for app recovery action targeting. + + ## Attributes + + * `regionCode` (*type:* `list(String.t)`, *default:* `nil`) - Regions targeted by the recovery action. Region codes are ISO 3166 Alpha-2 country codes. For example, US stands for United States of America. See https://www.iso.org/iso-3166-country-codes.html for the complete list of country codes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :regionCode => list(String.t()) | nil + } + + field(:regionCode, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.Regions do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.Regions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.Regions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions_version.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions_version.ex index 950e503e78..89796675ec 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions_version.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/regions_version.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.RegionsVersion do ## Attributes - * `version` (*type:* `String.t`, *default:* `nil`) - Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01. + * `version` (*type:* `String.t`, *default:* `nil`) - Required. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. The latest version is 2022/02. """ use GoogleApi.Gax.ModelBase diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update.ex new file mode 100644 index 0000000000..6d81d82457 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate do + @moduledoc """ + Object representation for Remote in-app update action type. + + ## Attributes + + * `isRemoteInAppUpdateRequested` (*type:* `boolean()`, *default:* `nil`) - Required. Set to true if Remote In-App Update action type is needed. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isRemoteInAppUpdateRequested => boolean() | nil + } + + field(:isRemoteInAppUpdateRequested) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data.ex new file mode 100644 index 0000000000..cca0d4d31c --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData do + @moduledoc """ + Data related to Remote In-App Update action such as recovered user count, affected user count etc. + + ## Attributes + + * `remoteAppUpdateDataPerBundle` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle.t)`, *default:* `nil`) - Data related to the recovery action at bundle level. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :remoteAppUpdateDataPerBundle => + list(GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle.t()) | nil + } + + field(:remoteAppUpdateDataPerBundle, + as: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateData do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data_per_bundle.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data_per_bundle.ex new file mode 100644 index 0000000000..b0011e5b99 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/remote_in_app_update_data_per_bundle.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle do + @moduledoc """ + Data related to the recovery action at bundle level. + + ## Attributes + + * `recoveredDeviceCount` (*type:* `String.t`, *default:* `nil`) - Total number of devices which have been rescued. + * `totalDeviceCount` (*type:* `String.t`, *default:* `nil`) - Total number of devices affected by this recovery action associated with bundle of the app. + * `versionCode` (*type:* `String.t`, *default:* `nil`) - Version Code corresponding to the target bundle. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :recoveredDeviceCount => String.t() | nil, + :totalDeviceCount => String.t() | nil, + :versionCode => String.t() | nil + } + + field(:recoveredDeviceCount) + field(:totalDeviceCount) + field(:versionCode) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RemoteInAppUpdateDataPerBundle do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context.ex new file mode 100644 index 0000000000..14878bc262 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RevocationContext do + @moduledoc """ + Revocation context of the purchases.subscriptionsv2.revoke API. + + ## Attributes + + * `proratedRefund` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund.t`, *default:* `nil`) - Optional. Used when users should be refunded a prorated amount they paid for their subscription based on the amount of time remaining in a subscription. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :proratedRefund => + GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund.t() | nil + } + + field(:proratedRefund, as: GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RevocationContext do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RevocationContext.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RevocationContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context_prorated_refund.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context_prorated_refund.ex new file mode 100644 index 0000000000..400b0fca1f --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revocation_context_prorated_refund.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund do + @moduledoc """ + Used to determine if the refund type in the RevocationContext is a prorated refund. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RevocationContextProratedRefund do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_request.ex new file mode 100644 index 0000000000..e8d15f83d2 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseRequest do + @moduledoc """ + Request for the purchases.subscriptionsv2.revoke API. + + ## Attributes + + * `revocationContext` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RevocationContext.t`, *default:* `nil`) - Required. Additional details around the subscription revocation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :revocationContext => GoogleApi.AndroidPublisher.V3.Model.RevocationContext.t() | nil + } + + field(:revocationContext, as: GoogleApi.AndroidPublisher.V3.Model.RevocationContext) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_response.ex new file mode 100644 index 0000000000..66f8c93319 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/revoke_subscription_purchase_response.ex @@ -0,0 +1,43 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse do + @moduledoc """ + Response for the purchases.subscriptionsv2.revoke API. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.RevokeSubscriptionPurchaseResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_request.ex new file mode 100644 index 0000000000..a637dbd718 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateRequest do + @moduledoc """ + Request to update Safety Labels of an app. + + ## Attributes + + * `safetyLabels` (*type:* `String.t`, *default:* `nil`) - Required. Contents of the CSV file containing Data Safety responses. For the format of this file, see the Help Center documentation at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cunderstand-the-csv-format To download an up to date template, follow the steps at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cexport-to-a-csv-file + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :safetyLabels => String.t() | nil + } + + field(:safetyLabels) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_response.ex new file mode 100644 index 0000000000..0ec346bfa7 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/safety_labels_update_response.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse do + @moduledoc """ + Response for SafetyLabelsUpdate rpc. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SafetyLabelsUpdateResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density.ex new file mode 100644 index 0000000000..ccc359393e --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ScreenDensity do + @moduledoc """ + Represents a screen density. + + ## Attributes + + * `densityAlias` (*type:* `String.t`, *default:* `nil`) - Alias for a screen density. + * `densityDpi` (*type:* `integer()`, *default:* `nil`) - Value for density dpi. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :densityAlias => String.t() | nil, + :densityDpi => integer() | nil + } + + field(:densityAlias) + field(:densityDpi) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ScreenDensity do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ScreenDensity.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ScreenDensity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density_targeting.ex new file mode 100644 index 0000000000..2c914efab6 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/screen_density_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting do + @moduledoc """ + Targeting based on screen density. + + ## Attributes + + * `alternatives` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.ScreenDensity.t)`, *default:* `nil`) - Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits. + * `value` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.ScreenDensity.t)`, *default:* `nil`) - Value of a screen density. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => list(GoogleApi.AndroidPublisher.V3.Model.ScreenDensity.t()) | nil, + :value => list(GoogleApi.AndroidPublisher.V3.Model.ScreenDensity.t()) | nil + } + + field(:alternatives, as: GoogleApi.AndroidPublisher.V3.Model.ScreenDensity, type: :list) + field(:value, as: GoogleApi.AndroidPublisher.V3.Model.ScreenDensity, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version.ex new file mode 100644 index 0000000000..8c3799996b --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SdkVersion do + @moduledoc """ + Represents an sdk version. + + ## Attributes + + * `min` (*type:* `integer()`, *default:* `nil`) - Inclusive minimum value of an sdk version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :min => integer() | nil + } + + field(:min) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SdkVersion do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SdkVersion.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SdkVersion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version_targeting.ex new file mode 100644 index 0000000000..e4fca091f0 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/sdk_version_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting do + @moduledoc """ + Targeting based on sdk version. + + ## Attributes + + * `alternatives` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SdkVersion.t)`, *default:* `nil`) - Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits. + * `value` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SdkVersion.t)`, *default:* `nil`) - Value of an sdk version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => list(GoogleApi.AndroidPublisher.V3.Model.SdkVersion.t()) | nil, + :value => list(GoogleApi.AndroidPublisher.V3.Model.SdkVersion.t()) | nil + } + + field(:alternatives, as: GoogleApi.AndroidPublisher.V3.Model.SdkVersion, type: :list) + field(:value, as: GoogleApi.AndroidPublisher.V3.Model.SdkVersion, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_metadata.ex new file mode 100644 index 0000000000..34bc39819f --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_metadata.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata do + @moduledoc """ + Holds data specific to Split APKs. + + ## Attributes + + * `isMasterSplit` (*type:* `boolean()`, *default:* `nil`) - Indicates whether this APK is the main split of the module. + * `splitId` (*type:* `String.t`, *default:* `nil`) - Id of the split. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :isMasterSplit => boolean() | nil, + :splitId => String.t() | nil + } + + field(:isMasterSplit) + field(:splitId) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SplitApkMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_variant.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_variant.ex new file mode 100644 index 0000000000..063f1052cf --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/split_apk_variant.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant do + @moduledoc """ + Variant is a group of APKs that covers a part of the device configuration space. APKs from multiple variants are never combined on one device. + + ## Attributes + + * `apkSet` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.ApkSet.t)`, *default:* `nil`) - Set of APKs, one set per module. + * `targeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.VariantTargeting.t`, *default:* `nil`) - Variant-level targeting. + * `variantNumber` (*type:* `integer()`, *default:* `nil`) - Number of the variant, starting at 0 (unless overridden). A device will receive APKs from the first variant that matches the device configuration, with higher variant numbers having priority over lower variant numbers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :apkSet => list(GoogleApi.AndroidPublisher.V3.Model.ApkSet.t()) | nil, + :targeting => GoogleApi.AndroidPublisher.V3.Model.VariantTargeting.t() | nil, + :variantNumber => integer() | nil + } + + field(:apkSet, as: GoogleApi.AndroidPublisher.V3.Model.ApkSet, type: :list) + field(:targeting, as: GoogleApi.AndroidPublisher.V3.Model.VariantTargeting) + field(:variantNumber) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/standalone_apk_metadata.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/standalone_apk_metadata.ex new file mode 100644 index 0000000000..5dac1f5d2c --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/standalone_apk_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata do + @moduledoc """ + Holds data specific to Standalone APKs. + + ## Attributes + + * `fusedModuleName` (*type:* `list(String.t)`, *default:* `nil`) - Names of the modules fused in this standalone APK. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fusedModuleName => list(String.t()) | nil + } + + field(:fusedModuleName, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.StandaloneApkMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription.ex index 7ebeec6603..fe8b91d3a6 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.Subscription do ## Attributes - * `archived` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether this subscription is archived. Archived subscriptions are not available to any subscriber any longer, cannot be updated, and are not returned in list requests unless the show archived flag is passed in. + * `archived` (*type:* `boolean()`, *default:* `nil`) - Output only. Deprecated: subscription archiving is not supported. * `basePlans` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.BasePlan.t)`, *default:* `nil`) - The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply. * `listings` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SubscriptionListing.t)`, *default:* `nil`) - Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app. * `packageName` (*type:* `String.t`, *default:* `nil`) - Immutable. Package name of the parent app. diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_item_price_change_details.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_item_price_change_details.ex index f16273913e..e3c30437f2 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_item_price_change_details.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_item_price_change_details.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionItemPriceChangeDetails ## Attributes - * `expectedNewPriceChargeTime` (*type:* `DateTime.t`, *default:* `nil`) - The renewal time at which the price change will become effective for the user. This is subject to change(to a future time) due to cases where the renewal time shifts like pause. + * `expectedNewPriceChargeTime` (*type:* `DateTime.t`, *default:* `nil`) - The renewal time at which the price change will become effective for the user. This is subject to change(to a future time) due to cases where the renewal time shifts like pause. This field is only populated if the price change has not taken effect. * `newPrice` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Money.t`, *default:* `nil`) - New recurring price for the subscription item. * `priceChangeMode` (*type:* `String.t`, *default:* `nil`) - Price change mode specifies how the subscription item price is changing. * `priceChangeState` (*type:* `String.t`, *default:* `nil`) - State the price change is currently in. diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase_line_item.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase_line_item.ex index 798b5d3938..7192026eb5 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase_line_item.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_purchase_line_item.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do ## Attributes * `autoRenewingPlan` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AutoRenewingPlan.t`, *default:* `nil`) - The item is auto renewing. + * `deferredItemReplacement` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement.t`, *default:* `nil`) - Information for deferred item replacement. * `expiryTime` (*type:* `DateTime.t`, *default:* `nil`) - Time at which the subscription expired or will expire unless the access is extended (ex. renews). * `offerDetails` (*type:* `GoogleApi.AndroidPublisher.V3.Model.OfferDetails.t`, *default:* `nil`) - The offer details for this item. * `prepaidPlan` (*type:* `GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan.t`, *default:* `nil`) - The item is prepaid. @@ -32,6 +33,8 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do @type t :: %__MODULE__{ :autoRenewingPlan => GoogleApi.AndroidPublisher.V3.Model.AutoRenewingPlan.t() | nil, + :deferredItemReplacement => + GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement.t() | nil, :expiryTime => DateTime.t() | nil, :offerDetails => GoogleApi.AndroidPublisher.V3.Model.OfferDetails.t() | nil, :prepaidPlan => GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan.t() | nil, @@ -39,6 +42,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionPurchaseLineItem do } field(:autoRenewingPlan, as: GoogleApi.AndroidPublisher.V3.Model.AutoRenewingPlan) + field(:deferredItemReplacement, as: GoogleApi.AndroidPublisher.V3.Model.DeferredItemReplacement) field(:expiryTime, as: DateTime) field(:offerDetails, as: GoogleApi.AndroidPublisher.V3.Model.OfferDetails) field(:prepaidPlan, as: GoogleApi.AndroidPublisher.V3.Model.PrepaidPlan) diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_tax_and_compliance_settings.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_tax_and_compliance_settings.ex index 1362b75ae6..192a8ab9b6 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_tax_and_compliance_settings.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/subscription_tax_and_compliance_settings.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionTaxAndComplianceSettin ## Attributes * `eeaWithdrawalRightType` (*type:* `String.t`, *default:* `nil`) - 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. + * `isTokenizedDigitalAsset` (*type:* `boolean()`, *default:* `nil`) - Whether this subscription is declared as a product representing a tokenized digital asset. * `taxRateInfoByRegionCode` (*type:* `%{optional(String.t) => GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo.t}`, *default:* `nil`) - A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR". """ @@ -29,12 +30,14 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.SubscriptionTaxAndComplianceSettin @type t :: %__MODULE__{ :eeaWithdrawalRightType => String.t() | nil, + :isTokenizedDigitalAsset => boolean() | nil, :taxRateInfoByRegionCode => %{optional(String.t()) => GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo.t()} | nil } field(:eeaWithdrawalRightType) + field(:isTokenizedDigitalAsset) field(:taxRateInfoByRegionCode, as: GoogleApi.AndroidPublisher.V3.Model.RegionalTaxRateInfo, diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/system_apk_options.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/system_apk_options.ex new file mode 100644 index 0000000000..590701ea33 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/system_apk_options.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions do + @moduledoc """ + Options for system APKs. + + ## Attributes + + * `rotated` (*type:* `boolean()`, *default:* `nil`) - Whether to use the rotated key for signing the system APK. + * `uncompressedDexFiles` (*type:* `boolean()`, *default:* `nil`) - Whether system APK was generated with uncompressed dex files. + * `uncompressedNativeLibraries` (*type:* `boolean()`, *default:* `nil`) - Whether system APK was generated with uncompressed native libraries. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :rotated => boolean() | nil, + :uncompressedDexFiles => boolean() | nil, + :uncompressedNativeLibraries => boolean() | nil + } + + field(:rotated) + field(:uncompressedDexFiles) + field(:uncompressedNativeLibraries) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting.ex new file mode 100644 index 0000000000..80f0e93de2 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.Targeting do + @moduledoc """ + Targeting details for a recovery action such as regions, android sdk levels, app versions etc. + + ## Attributes + + * `allUsers` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AllUsers.t`, *default:* `nil`) - All users are targeted. + * `androidSdks` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AndroidSdks.t`, *default:* `nil`) - Targeting is based on android api levels of devices. + * `regions` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Regions.t`, *default:* `nil`) - Targeting is based on the user account region. + * `versionList` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AppVersionList.t`, *default:* `nil`) - Target version codes as a list. + * `versionRange` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AppVersionRange.t`, *default:* `nil`) - Target version codes as a range. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allUsers => GoogleApi.AndroidPublisher.V3.Model.AllUsers.t() | nil, + :androidSdks => GoogleApi.AndroidPublisher.V3.Model.AndroidSdks.t() | nil, + :regions => GoogleApi.AndroidPublisher.V3.Model.Regions.t() | nil, + :versionList => GoogleApi.AndroidPublisher.V3.Model.AppVersionList.t() | nil, + :versionRange => GoogleApi.AndroidPublisher.V3.Model.AppVersionRange.t() | nil + } + + field(:allUsers, as: GoogleApi.AndroidPublisher.V3.Model.AllUsers) + field(:androidSdks, as: GoogleApi.AndroidPublisher.V3.Model.AndroidSdks) + field(:regions, as: GoogleApi.AndroidPublisher.V3.Model.Regions) + field(:versionList, as: GoogleApi.AndroidPublisher.V3.Model.AppVersionList) + field(:versionRange, as: GoogleApi.AndroidPublisher.V3.Model.AppVersionRange) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.Targeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.Targeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.Targeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_info.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_info.ex new file mode 100644 index 0000000000..bb41c21441 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_info.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.TargetingInfo do + @moduledoc """ + Targeting information about the generated apks. + + ## Attributes + + * `assetSliceSet` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet.t)`, *default:* `nil`) - List of created asset slices. + * `packageName` (*type:* `String.t`, *default:* `nil`) - The package name of this app. + * `variant` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant.t)`, *default:* `nil`) - List of the created variants. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :assetSliceSet => list(GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet.t()) | nil, + :packageName => String.t() | nil, + :variant => list(GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant.t()) | nil + } + + field(:assetSliceSet, as: GoogleApi.AndroidPublisher.V3.Model.AssetSliceSet, type: :list) + field(:packageName) + field(:variant, as: GoogleApi.AndroidPublisher.V3.Model.SplitApkVariant, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.TargetingInfo do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.TargetingInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.TargetingInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_update.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_update.ex new file mode 100644 index 0000000000..06f5c4ccae --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/targeting_update.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate do + @moduledoc """ + Update type for targeting. Note it is always a subset Targeting. + + ## Attributes + + * `allUsers` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AllUsers.t`, *default:* `nil`) - All users are targeted. + * `androidSdks` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AndroidSdks.t`, *default:* `nil`) - Additional android sdk levels are targeted by the recovery action. + * `regions` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Regions.t`, *default:* `nil`) - Additional regions are targeted by the recovery action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allUsers => GoogleApi.AndroidPublisher.V3.Model.AllUsers.t() | nil, + :androidSdks => GoogleApi.AndroidPublisher.V3.Model.AndroidSdks.t() | nil, + :regions => GoogleApi.AndroidPublisher.V3.Model.Regions.t() | nil + } + + field(:allUsers, as: GoogleApi.AndroidPublisher.V3.Model.AllUsers) + field(:androidSdks, as: GoogleApi.AndroidPublisher.V3.Model.AndroidSdks) + field(:regions, as: GoogleApi.AndroidPublisher.V3.Model.Regions) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.TargetingUpdate do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format.ex new file mode 100644 index 0000000000..f9b4fda98c --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat do + @moduledoc """ + Represents texture compression format. + + ## Attributes + + * `alias` (*type:* `String.t`, *default:* `nil`) - Alias for texture compression format. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alias => String.t() | nil + } + + field(:alias) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format_targeting.ex new file mode 100644 index 0000000000..f8a5d281d6 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/texture_compression_format_targeting.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting do + @moduledoc """ + Targeting by a texture compression format. + + ## Attributes + + * `alternatives` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat.t)`, *default:* `nil`) - List of alternative TCFs (TCFs targeted by the sibling splits). + * `value` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat.t)`, *default:* `nil`) - The list of targeted TCFs. Should not be empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternatives => + list(GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat.t()) | nil, + :value => list(GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat.t()) | nil + } + + field(:alternatives, + as: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat, + type: :list + ) + + field(:value, as: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormat, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/track.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/track.ex index dc8bbf530e..fbbd816633 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/track.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/track.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.Track do ## Attributes * `releases` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.TrackRelease.t)`, *default:* `nil`) - In a read request, represents all active releases in the track. In an update request, represents desired changes. - * `track` (*type:* `String.t`, *default:* `nil`) - Identifier of the track. + * `track` (*type:* `String.t`, *default:* `nil`) - Identifier of the track. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) """ use GoogleApi.Gax.ModelBase diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/track_config.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/track_config.ex new file mode 100644 index 0000000000..be91516d7e --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/track_config.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.TrackConfig do + @moduledoc """ + Configurations of the new track. + + ## Attributes + + * `formFactor` (*type:* `String.t`, *default:* `nil`) - Required. Form factor of the new track. Defaults to the default track. + * `track` (*type:* `String.t`, *default:* `nil`) - Required. Identifier of the new track. For default tracks, this field consists of the track alias only. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. This prefix must match the value of the `form_factor` field, if it is not a default track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) + * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of the new track. Currently, the only supported value is closedTesting. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :formFactor => String.t() | nil, + :track => String.t() | nil, + :type => String.t() | nil + } + + field(:formFactor) + field(:track) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.TrackConfig do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.TrackConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.TrackConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex index 685b36e2e2..381b767913 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.TracksListResponse do ## Attributes * `kind` (*type:* `String.t`, *default:* `nil`) - The kind of this response ("androidpublisher#tracksListResponse"). - * `tracks` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Track.t)`, *default:* `nil`) - All tracks. + * `tracks` (*type:* `list(GoogleApi.AndroidPublisher.V3.Model.Track.t)`, *default:* `nil`) - All tracks (including tracks with no releases). """ use GoogleApi.Gax.ModelBase diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_base_plan_state_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_base_plan_state_request.ex new file mode 100644 index 0000000000..c92abdefab --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_base_plan_state_request.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest do + @moduledoc """ + Request message to update the state of a subscription base plan. + + ## Attributes + + * `activateBasePlanRequest` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ActivateBasePlanRequest.t`, *default:* `nil`) - Activates a base plan. Once activated, base plans will be available to new subscribers. + * `deactivateBasePlanRequest` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeactivateBasePlanRequest.t`, *default:* `nil`) - Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activateBasePlanRequest => + GoogleApi.AndroidPublisher.V3.Model.ActivateBasePlanRequest.t() | nil, + :deactivateBasePlanRequest => + GoogleApi.AndroidPublisher.V3.Model.DeactivateBasePlanRequest.t() | nil + } + + field(:activateBasePlanRequest, as: GoogleApi.AndroidPublisher.V3.Model.ActivateBasePlanRequest) + + field(:deactivateBasePlanRequest, + as: GoogleApi.AndroidPublisher.V3.Model.DeactivateBasePlanRequest + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateBasePlanStateRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_request.ex new file mode 100644 index 0000000000..a91c864e06 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest do + @moduledoc """ + Request message for UpdateSubscriptionOffer. + + ## Attributes + + * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, update_mask is ignored. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `regionsVersion` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t`, *default:* `nil`) - Required. The version of the available regions being used for the subscription_offer. + * `subscriptionOffer` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t`, *default:* `nil`) - Required. The subscription offer to update. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - Required. The list of fields to be updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowMissing => boolean() | nil, + :latencyTolerance => String.t() | nil, + :regionsVersion => GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t() | nil, + :subscriptionOffer => GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer.t() | nil, + :updateMask => String.t() | nil + } + + field(:allowMissing) + field(:latencyTolerance) + field(:regionsVersion, as: GoogleApi.AndroidPublisher.V3.Model.RegionsVersion) + field(:subscriptionOffer, as: GoogleApi.AndroidPublisher.V3.Model.SubscriptionOffer) + field(:updateMask) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_state_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_state_request.ex new file mode 100644 index 0000000000..d080c3cab8 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_offer_state_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest do + @moduledoc """ + Request message to update the state of a subscription offer. + + ## Attributes + + * `activateSubscriptionOfferRequest` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ActivateSubscriptionOfferRequest.t`, *default:* `nil`) - Activates an offer. Once activated, the offer will be available to new subscribers. + * `deactivateSubscriptionOfferRequest` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeactivateSubscriptionOfferRequest.t`, *default:* `nil`) - Deactivates an offer. Once deactivated, the offer will become unavailable to new subscribers, but existing subscribers will maintain their subscription + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activateSubscriptionOfferRequest => + GoogleApi.AndroidPublisher.V3.Model.ActivateSubscriptionOfferRequest.t() | nil, + :deactivateSubscriptionOfferRequest => + GoogleApi.AndroidPublisher.V3.Model.DeactivateSubscriptionOfferRequest.t() | nil + } + + field(:activateSubscriptionOfferRequest, + as: GoogleApi.AndroidPublisher.V3.Model.ActivateSubscriptionOfferRequest + ) + + field(:deactivateSubscriptionOfferRequest, + as: GoogleApi.AndroidPublisher.V3.Model.DeactivateSubscriptionOfferRequest + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionOfferStateRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_request.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_request.ex new file mode 100644 index 0000000000..11d66f0d92 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/update_subscription_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest do + @moduledoc """ + Request message for UpdateSubscription. + + ## Attributes + + * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the subscription will be created. If a new subscription is created, update_mask is ignored. + * `latencyTolerance` (*type:* `String.t`, *default:* `nil`) - Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. + * `regionsVersion` (*type:* `GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t`, *default:* `nil`) - Required. The version of the available regions being used for the subscription. + * `subscription` (*type:* `GoogleApi.AndroidPublisher.V3.Model.Subscription.t`, *default:* `nil`) - Required. The subscription to update. + * `updateMask` (*type:* `String.t`, *default:* `nil`) - Required. The list of fields to be updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowMissing => boolean() | nil, + :latencyTolerance => String.t() | nil, + :regionsVersion => GoogleApi.AndroidPublisher.V3.Model.RegionsVersion.t() | nil, + :subscription => GoogleApi.AndroidPublisher.V3.Model.Subscription.t() | nil, + :updateMask => String.t() | nil + } + + field(:allowMissing) + field(:latencyTolerance) + field(:regionsVersion, as: GoogleApi.AndroidPublisher.V3.Model.RegionsVersion) + field(:subscription, as: GoogleApi.AndroidPublisher.V3.Model.Subscription) + field(:updateMask) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.UpdateSubscriptionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_countries_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_countries_targeting.ex new file mode 100644 index 0000000000..2b391dc6af --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_countries_targeting.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting do + @moduledoc """ + Describes an inclusive/exclusive list of country codes that module targets. + + ## Attributes + + * `countryCodes` (*type:* `list(String.t)`, *default:* `nil`) - List of country codes in the two-letter CLDR territory format. + * `exclude` (*type:* `boolean()`, *default:* `nil`) - Indicates if the list above is exclusive. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :countryCodes => list(String.t()) | nil, + :exclude => boolean() | nil + } + + field(:countryCodes, type: :list) + field(:exclude) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.UserCountriesTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_country_set.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_country_set.ex new file mode 100644 index 0000000000..fdb75d2aeb --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/user_country_set.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.UserCountrySet do + @moduledoc """ + A set of user countries. A country set determines what variation of app content gets served to a specific location. + + ## Attributes + + * `countryCodes` (*type:* `list(String.t)`, *default:* `nil`) - List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For Example:- "IT" for Italy, "GE" for Georgia. + * `name` (*type:* `String.t`, *default:* `nil`) - Country set name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :countryCodes => list(String.t()) | nil, + :name => String.t() | nil + } + + field(:countryCodes, type: :list) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.UserCountrySet do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.UserCountrySet.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.UserCountrySet do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant.ex index 5efba35af7..360f30fb0f 100644 --- a/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant.ex +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.Variant do ## Attributes * `deviceSpec` (*type:* `GoogleApi.AndroidPublisher.V3.Model.DeviceSpec.t`, *default:* `nil`) - The device spec used to generate the APK. + * `options` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions.t`, *default:* `nil`) - Optional. Options applied to the generated APK. * `variantId` (*type:* `integer()`, *default:* `nil`) - Output only. The ID of a previously created system APK variant. """ @@ -29,10 +30,12 @@ defmodule GoogleApi.AndroidPublisher.V3.Model.Variant do @type t :: %__MODULE__{ :deviceSpec => GoogleApi.AndroidPublisher.V3.Model.DeviceSpec.t() | nil, + :options => GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions.t() | nil, :variantId => integer() | nil } field(:deviceSpec, as: GoogleApi.AndroidPublisher.V3.Model.DeviceSpec) + field(:options, as: GoogleApi.AndroidPublisher.V3.Model.SystemApkOptions) field(:variantId) end diff --git a/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant_targeting.ex b/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant_targeting.ex new file mode 100644 index 0000000000..00f7855db9 --- /dev/null +++ b/clients/android_publisher/lib/google_api/android_publisher/v3/model/variant_targeting.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.AndroidPublisher.V3.Model.VariantTargeting do + @moduledoc """ + Targeting on the level of variants. + + ## Attributes + + * `abiTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.AbiTargeting.t`, *default:* `nil`) - The abi that the variant targets + * `multiAbiTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting.t`, *default:* `nil`) - Multi-api-level targeting + * `screenDensityTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting.t`, *default:* `nil`) - The screen densities that this variant supports + * `sdkVersionTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t`, *default:* `nil`) - The sdk version that the variant targets + * `textureCompressionFormatTargeting` (*type:* `GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting.t`, *default:* `nil`) - Texture-compression-format-level targeting + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :abiTargeting => GoogleApi.AndroidPublisher.V3.Model.AbiTargeting.t() | nil, + :multiAbiTargeting => GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting.t() | nil, + :screenDensityTargeting => + GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting.t() | nil, + :sdkVersionTargeting => + GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting.t() | nil, + :textureCompressionFormatTargeting => + GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting.t() | nil + } + + field(:abiTargeting, as: GoogleApi.AndroidPublisher.V3.Model.AbiTargeting) + field(:multiAbiTargeting, as: GoogleApi.AndroidPublisher.V3.Model.MultiAbiTargeting) + field(:screenDensityTargeting, as: GoogleApi.AndroidPublisher.V3.Model.ScreenDensityTargeting) + field(:sdkVersionTargeting, as: GoogleApi.AndroidPublisher.V3.Model.SdkVersionTargeting) + + field(:textureCompressionFormatTargeting, + as: GoogleApi.AndroidPublisher.V3.Model.TextureCompressionFormatTargeting + ) +end + +defimpl Poison.Decoder, for: GoogleApi.AndroidPublisher.V3.Model.VariantTargeting do + def decode(value, options) do + GoogleApi.AndroidPublisher.V3.Model.VariantTargeting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AndroidPublisher.V3.Model.VariantTargeting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end