google-apis-androidpublisher_v3 0.53.0 → 0.54.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,12 +91,37 @@ module Google
91
91
  class ActivateBasePlanRequest
92
92
  include Google::Apis::Core::Hashable
93
93
 
94
+ # Required. The unique base plan ID of the base plan to activate.
95
+ # Corresponds to the JSON property `basePlanId`
96
+ # @return [String]
97
+ attr_accessor :base_plan_id
98
+
99
+ # Optional. The latency tolerance for the propagation of this product update.
100
+ # Defaults to latency-sensitive.
101
+ # Corresponds to the JSON property `latencyTolerance`
102
+ # @return [String]
103
+ attr_accessor :latency_tolerance
104
+
105
+ # Required. The parent app (package name) of the base plan to activate.
106
+ # Corresponds to the JSON property `packageName`
107
+ # @return [String]
108
+ attr_accessor :package_name
109
+
110
+ # Required. The parent subscription (ID) of the base plan to activate.
111
+ # Corresponds to the JSON property `productId`
112
+ # @return [String]
113
+ attr_accessor :product_id
114
+
94
115
  def initialize(**args)
95
116
  update!(**args)
96
117
  end
97
118
 
98
119
  # Update properties of this object
99
120
  def update!(**args)
121
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
122
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
123
+ @package_name = args[:package_name] if args.key?(:package_name)
124
+ @product_id = args[:product_id] if args.key?(:product_id)
100
125
  end
101
126
  end
102
127
 
@@ -104,12 +129,43 @@ module Google
104
129
  class ActivateSubscriptionOfferRequest
105
130
  include Google::Apis::Core::Hashable
106
131
 
132
+ # Required. The parent base plan (ID) of the offer to activate.
133
+ # Corresponds to the JSON property `basePlanId`
134
+ # @return [String]
135
+ attr_accessor :base_plan_id
136
+
137
+ # Optional. The latency tolerance for the propagation of this product update.
138
+ # Defaults to latency-sensitive.
139
+ # Corresponds to the JSON property `latencyTolerance`
140
+ # @return [String]
141
+ attr_accessor :latency_tolerance
142
+
143
+ # Required. The unique offer ID of the offer to activate.
144
+ # Corresponds to the JSON property `offerId`
145
+ # @return [String]
146
+ attr_accessor :offer_id
147
+
148
+ # Required. The parent app (package name) of the offer to activate.
149
+ # Corresponds to the JSON property `packageName`
150
+ # @return [String]
151
+ attr_accessor :package_name
152
+
153
+ # Required. The parent subscription (ID) of the offer to activate.
154
+ # Corresponds to the JSON property `productId`
155
+ # @return [String]
156
+ attr_accessor :product_id
157
+
107
158
  def initialize(**args)
108
159
  update!(**args)
109
160
  end
110
161
 
111
162
  # Update properties of this object
112
163
  def update!(**args)
164
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
165
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
166
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
167
+ @package_name = args[:package_name] if args.key?(:package_name)
168
+ @product_id = args[:product_id] if args.key?(:product_id)
113
169
  end
114
170
  end
115
171
 
@@ -641,6 +697,261 @@ module Google
641
697
  end
642
698
  end
643
699
 
700
+ # Request message for BatchGetSubscriptionOffers endpoint.
701
+ class BatchGetSubscriptionOffersRequest
702
+ include Google::Apis::Core::Hashable
703
+
704
+ # Required. A list of update requests of up to 100 elements. All requests must
705
+ # update different subscriptions.
706
+ # Corresponds to the JSON property `requests`
707
+ # @return [Array<Google::Apis::AndroidpublisherV3::GetSubscriptionOfferRequest>]
708
+ attr_accessor :requests
709
+
710
+ def initialize(**args)
711
+ update!(**args)
712
+ end
713
+
714
+ # Update properties of this object
715
+ def update!(**args)
716
+ @requests = args[:requests] if args.key?(:requests)
717
+ end
718
+ end
719
+
720
+ # Response message for BatchGetSubscriptionOffers endpoint.
721
+ class BatchGetSubscriptionOffersResponse
722
+ include Google::Apis::Core::Hashable
723
+
724
+ #
725
+ # Corresponds to the JSON property `subscriptionOffers`
726
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
727
+ attr_accessor :subscription_offers
728
+
729
+ def initialize(**args)
730
+ update!(**args)
731
+ end
732
+
733
+ # Update properties of this object
734
+ def update!(**args)
735
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
736
+ end
737
+ end
738
+
739
+ # Response message for BatchGetSubscriptions endpoint.
740
+ class BatchGetSubscriptionsResponse
741
+ include Google::Apis::Core::Hashable
742
+
743
+ # The list of requested subscriptions, in the same order as the request.
744
+ # Corresponds to the JSON property `subscriptions`
745
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
746
+ attr_accessor :subscriptions
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
755
+ end
756
+ end
757
+
758
+ # Request message for BatchMigrateBasePlanPrices.
759
+ class BatchMigrateBasePlanPricesRequest
760
+ include Google::Apis::Core::Hashable
761
+
762
+ # Required. Up to 100 price migration requests. All requests must update
763
+ # different base plans.
764
+ # Corresponds to the JSON property `requests`
765
+ # @return [Array<Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesRequest>]
766
+ attr_accessor :requests
767
+
768
+ def initialize(**args)
769
+ update!(**args)
770
+ end
771
+
772
+ # Update properties of this object
773
+ def update!(**args)
774
+ @requests = args[:requests] if args.key?(:requests)
775
+ end
776
+ end
777
+
778
+ # Response message for BatchMigrateBasePlanPrices.
779
+ class BatchMigrateBasePlanPricesResponse
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # Contains one response per requested price migration, in the same order as the
783
+ # request.
784
+ # Corresponds to the JSON property `responses`
785
+ # @return [Array<Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesResponse>]
786
+ attr_accessor :responses
787
+
788
+ def initialize(**args)
789
+ update!(**args)
790
+ end
791
+
792
+ # Update properties of this object
793
+ def update!(**args)
794
+ @responses = args[:responses] if args.key?(:responses)
795
+ end
796
+ end
797
+
798
+ # Request message for BatchUpdateBasePlanStates.
799
+ class BatchUpdateBasePlanStatesRequest
800
+ include Google::Apis::Core::Hashable
801
+
802
+ # Required. The update request list of up to 100 elements. All requests must
803
+ # update different base plans.
804
+ # Corresponds to the JSON property `requests`
805
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateBasePlanStateRequest>]
806
+ attr_accessor :requests
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @requests = args[:requests] if args.key?(:requests)
815
+ end
816
+ end
817
+
818
+ # Response message for BatchUpdateBasePlanStates.
819
+ class BatchUpdateBasePlanStatesResponse
820
+ include Google::Apis::Core::Hashable
821
+
822
+ # The list of updated subscriptions. This list will match the requests one to
823
+ # one, in the same order.
824
+ # Corresponds to the JSON property `subscriptions`
825
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
826
+ attr_accessor :subscriptions
827
+
828
+ def initialize(**args)
829
+ update!(**args)
830
+ end
831
+
832
+ # Update properties of this object
833
+ def update!(**args)
834
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
835
+ end
836
+ end
837
+
838
+ # Request message for BatchUpdateSubscriptionOfferStates.
839
+ class BatchUpdateSubscriptionOfferStatesRequest
840
+ include Google::Apis::Core::Hashable
841
+
842
+ # Required. The update request list of up to 100 elements. All requests must
843
+ # update different offers.
844
+ # Corresponds to the JSON property `requests`
845
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferStateRequest>]
846
+ attr_accessor :requests
847
+
848
+ def initialize(**args)
849
+ update!(**args)
850
+ end
851
+
852
+ # Update properties of this object
853
+ def update!(**args)
854
+ @requests = args[:requests] if args.key?(:requests)
855
+ end
856
+ end
857
+
858
+ # Response message for BatchUpdateSubscriptionOfferStates.
859
+ class BatchUpdateSubscriptionOfferStatesResponse
860
+ include Google::Apis::Core::Hashable
861
+
862
+ # The updated subscription offers list.
863
+ # Corresponds to the JSON property `subscriptionOffers`
864
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
865
+ attr_accessor :subscription_offers
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
874
+ end
875
+ end
876
+
877
+ # Request message for BatchUpdateSubscriptionOffers.
878
+ class BatchUpdateSubscriptionOffersRequest
879
+ include Google::Apis::Core::Hashable
880
+
881
+ # Required. A list of update requests of up to 100 elements. All requests must
882
+ # update different subscription offers.
883
+ # Corresponds to the JSON property `requests`
884
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferRequest>]
885
+ attr_accessor :requests
886
+
887
+ def initialize(**args)
888
+ update!(**args)
889
+ end
890
+
891
+ # Update properties of this object
892
+ def update!(**args)
893
+ @requests = args[:requests] if args.key?(:requests)
894
+ end
895
+ end
896
+
897
+ # Response message for BatchUpdateSubscriptionOffers.
898
+ class BatchUpdateSubscriptionOffersResponse
899
+ include Google::Apis::Core::Hashable
900
+
901
+ # The updated subscription offers list.
902
+ # Corresponds to the JSON property `subscriptionOffers`
903
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
904
+ attr_accessor :subscription_offers
905
+
906
+ def initialize(**args)
907
+ update!(**args)
908
+ end
909
+
910
+ # Update properties of this object
911
+ def update!(**args)
912
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
913
+ end
914
+ end
915
+
916
+ # Request message for BatchUpdateSubscription.
917
+ class BatchUpdateSubscriptionsRequest
918
+ include Google::Apis::Core::Hashable
919
+
920
+ # Required. A list of update requests of up to 100 elements. All requests must
921
+ # update different subscriptions.
922
+ # Corresponds to the JSON property `requests`
923
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionRequest>]
924
+ attr_accessor :requests
925
+
926
+ def initialize(**args)
927
+ update!(**args)
928
+ end
929
+
930
+ # Update properties of this object
931
+ def update!(**args)
932
+ @requests = args[:requests] if args.key?(:requests)
933
+ end
934
+ end
935
+
936
+ # Response message for BatchUpdateSubscription.
937
+ class BatchUpdateSubscriptionsResponse
938
+ include Google::Apis::Core::Hashable
939
+
940
+ # The updated subscriptions list.
941
+ # Corresponds to the JSON property `subscriptions`
942
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
943
+ attr_accessor :subscriptions
944
+
945
+ def initialize(**args)
946
+ update!(**args)
947
+ end
948
+
949
+ # Update properties of this object
950
+ def update!(**args)
951
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
952
+ end
953
+ end
954
+
644
955
  # Information about an app bundle. The resource for BundlesService.
645
956
  class Bundle
646
957
  include Google::Apis::Core::Hashable
@@ -919,12 +1230,37 @@ module Google
919
1230
  class DeactivateBasePlanRequest
920
1231
  include Google::Apis::Core::Hashable
921
1232
 
1233
+ # Required. The unique base plan ID of the base plan to deactivate.
1234
+ # Corresponds to the JSON property `basePlanId`
1235
+ # @return [String]
1236
+ attr_accessor :base_plan_id
1237
+
1238
+ # Optional. The latency tolerance for the propagation of this product update.
1239
+ # Defaults to latency-sensitive.
1240
+ # Corresponds to the JSON property `latencyTolerance`
1241
+ # @return [String]
1242
+ attr_accessor :latency_tolerance
1243
+
1244
+ # Required. The parent app (package name) of the base plan to deactivate.
1245
+ # Corresponds to the JSON property `packageName`
1246
+ # @return [String]
1247
+ attr_accessor :package_name
1248
+
1249
+ # Required. The parent subscription (ID) of the base plan to deactivate.
1250
+ # Corresponds to the JSON property `productId`
1251
+ # @return [String]
1252
+ attr_accessor :product_id
1253
+
922
1254
  def initialize(**args)
923
1255
  update!(**args)
924
1256
  end
925
1257
 
926
1258
  # Update properties of this object
927
1259
  def update!(**args)
1260
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
1261
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
1262
+ @package_name = args[:package_name] if args.key?(:package_name)
1263
+ @product_id = args[:product_id] if args.key?(:product_id)
928
1264
  end
929
1265
  end
930
1266
 
@@ -932,12 +1268,43 @@ module Google
932
1268
  class DeactivateSubscriptionOfferRequest
933
1269
  include Google::Apis::Core::Hashable
934
1270
 
1271
+ # Required. The parent base plan (ID) of the offer to deactivate.
1272
+ # Corresponds to the JSON property `basePlanId`
1273
+ # @return [String]
1274
+ attr_accessor :base_plan_id
1275
+
1276
+ # Optional. The latency tolerance for the propagation of this product update.
1277
+ # Defaults to latency-sensitive.
1278
+ # Corresponds to the JSON property `latencyTolerance`
1279
+ # @return [String]
1280
+ attr_accessor :latency_tolerance
1281
+
1282
+ # Required. The unique offer ID of the offer to deactivate.
1283
+ # Corresponds to the JSON property `offerId`
1284
+ # @return [String]
1285
+ attr_accessor :offer_id
1286
+
1287
+ # Required. The parent app (package name) of the offer to deactivate.
1288
+ # Corresponds to the JSON property `packageName`
1289
+ # @return [String]
1290
+ attr_accessor :package_name
1291
+
1292
+ # Required. The parent subscription (ID) of the offer to deactivate.
1293
+ # Corresponds to the JSON property `productId`
1294
+ # @return [String]
1295
+ attr_accessor :product_id
1296
+
935
1297
  def initialize(**args)
936
1298
  update!(**args)
937
1299
  end
938
1300
 
939
1301
  # Update properties of this object
940
1302
  def update!(**args)
1303
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
1304
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
1305
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
1306
+ @package_name = args[:package_name] if args.key?(:package_name)
1307
+ @product_id = args[:product_id] if args.key?(:product_id)
941
1308
  end
942
1309
  end
943
1310
 
@@ -1986,6 +2353,43 @@ module Google
1986
2353
  end
1987
2354
  end
1988
2355
 
2356
+ # Request message for GetSubscriptionOffer.
2357
+ class GetSubscriptionOfferRequest
2358
+ include Google::Apis::Core::Hashable
2359
+
2360
+ # Required. The parent base plan (ID) of the offer to get.
2361
+ # Corresponds to the JSON property `basePlanId`
2362
+ # @return [String]
2363
+ attr_accessor :base_plan_id
2364
+
2365
+ # Required. The unique offer ID of the offer to get.
2366
+ # Corresponds to the JSON property `offerId`
2367
+ # @return [String]
2368
+ attr_accessor :offer_id
2369
+
2370
+ # Required. The parent app (package name) of the offer to get.
2371
+ # Corresponds to the JSON property `packageName`
2372
+ # @return [String]
2373
+ attr_accessor :package_name
2374
+
2375
+ # Required. The parent subscription (ID) of the offer to get.
2376
+ # Corresponds to the JSON property `productId`
2377
+ # @return [String]
2378
+ attr_accessor :product_id
2379
+
2380
+ def initialize(**args)
2381
+ update!(**args)
2382
+ end
2383
+
2384
+ # Update properties of this object
2385
+ def update!(**args)
2386
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
2387
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2388
+ @package_name = args[:package_name] if args.key?(:package_name)
2389
+ @product_id = args[:product_id] if args.key?(:product_id)
2390
+ end
2391
+ end
2392
+
1989
2393
  # An access grant resource.
1990
2394
  class Grant
1991
2395
  include Google::Apis::Core::Hashable
@@ -2244,6 +2648,117 @@ module Google
2244
2648
  end
2245
2649
  end
2246
2650
 
2651
+ # Request to delete multiple in-app products.
2652
+ class InappproductsBatchDeleteRequest
2653
+ include Google::Apis::Core::Hashable
2654
+
2655
+ # Individual delete requests. At least one request is required. Can contain up
2656
+ # to 100 requests. All requests must correspond to different in-app products.
2657
+ # Corresponds to the JSON property `requests`
2658
+ # @return [Array<Google::Apis::AndroidpublisherV3::InappproductsDeleteRequest>]
2659
+ attr_accessor :requests
2660
+
2661
+ def initialize(**args)
2662
+ update!(**args)
2663
+ end
2664
+
2665
+ # Update properties of this object
2666
+ def update!(**args)
2667
+ @requests = args[:requests] if args.key?(:requests)
2668
+ end
2669
+ end
2670
+
2671
+ # Response message for BatchGetSubscriptions endpoint.
2672
+ class InappproductsBatchGetResponse
2673
+ include Google::Apis::Core::Hashable
2674
+
2675
+ # The list of requested in-app products, in the same order as the request.
2676
+ # Corresponds to the JSON property `inappproduct`
2677
+ # @return [Array<Google::Apis::AndroidpublisherV3::InAppProduct>]
2678
+ attr_accessor :inappproduct
2679
+
2680
+ def initialize(**args)
2681
+ update!(**args)
2682
+ end
2683
+
2684
+ # Update properties of this object
2685
+ def update!(**args)
2686
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
2687
+ end
2688
+ end
2689
+
2690
+ # Request to update or insert one or more in-app products.
2691
+ class InappproductsBatchUpdateRequest
2692
+ include Google::Apis::Core::Hashable
2693
+
2694
+ # Required. Individual update requests. At least one request is required. Can
2695
+ # contain up to 100 requests. All requests must correspond to different in-app
2696
+ # products.
2697
+ # Corresponds to the JSON property `requests`
2698
+ # @return [Array<Google::Apis::AndroidpublisherV3::InappproductsUpdateRequest>]
2699
+ attr_accessor :requests
2700
+
2701
+ def initialize(**args)
2702
+ update!(**args)
2703
+ end
2704
+
2705
+ # Update properties of this object
2706
+ def update!(**args)
2707
+ @requests = args[:requests] if args.key?(:requests)
2708
+ end
2709
+ end
2710
+
2711
+ # Response for a batch in-app product update.
2712
+ class InappproductsBatchUpdateResponse
2713
+ include Google::Apis::Core::Hashable
2714
+
2715
+ # The updated or inserted in-app products.
2716
+ # Corresponds to the JSON property `inappproducts`
2717
+ # @return [Array<Google::Apis::AndroidpublisherV3::InAppProduct>]
2718
+ attr_accessor :inappproducts
2719
+
2720
+ def initialize(**args)
2721
+ update!(**args)
2722
+ end
2723
+
2724
+ # Update properties of this object
2725
+ def update!(**args)
2726
+ @inappproducts = args[:inappproducts] if args.key?(:inappproducts)
2727
+ end
2728
+ end
2729
+
2730
+ # Request to delete an in-app product.
2731
+ class InappproductsDeleteRequest
2732
+ include Google::Apis::Core::Hashable
2733
+
2734
+ # Optional. The latency tolerance for the propagation of this product update.
2735
+ # Defaults to latency-sensitive.
2736
+ # Corresponds to the JSON property `latencyTolerance`
2737
+ # @return [String]
2738
+ attr_accessor :latency_tolerance
2739
+
2740
+ # Package name of the app.
2741
+ # Corresponds to the JSON property `packageName`
2742
+ # @return [String]
2743
+ attr_accessor :package_name
2744
+
2745
+ # Unique identifier for the in-app product.
2746
+ # Corresponds to the JSON property `sku`
2747
+ # @return [String]
2748
+ attr_accessor :sku
2749
+
2750
+ def initialize(**args)
2751
+ update!(**args)
2752
+ end
2753
+
2754
+ # Update properties of this object
2755
+ def update!(**args)
2756
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2757
+ @package_name = args[:package_name] if args.key?(:package_name)
2758
+ @sku = args[:sku] if args.key?(:sku)
2759
+ end
2760
+ end
2761
+
2247
2762
  # Response listing all in-app products.
2248
2763
  class InappproductsListResponse
2249
2764
  include Google::Apis::Core::Hashable
@@ -2290,6 +2805,61 @@ module Google
2290
2805
  end
2291
2806
  end
2292
2807
 
2808
+ # Request to update an in-app product.
2809
+ class InappproductsUpdateRequest
2810
+ include Google::Apis::Core::Hashable
2811
+
2812
+ # If set to true, and the in-app product with the given package_name and sku
2813
+ # doesn't exist, the in-app product will be created.
2814
+ # Corresponds to the JSON property `allowMissing`
2815
+ # @return [Boolean]
2816
+ attr_accessor :allow_missing
2817
+ alias_method :allow_missing?, :allow_missing
2818
+
2819
+ # If true the prices for all regions targeted by the parent app that don't have
2820
+ # a price specified for this in-app product will be auto converted to the target
2821
+ # currency based on the default price. Defaults to false.
2822
+ # Corresponds to the JSON property `autoConvertMissingPrices`
2823
+ # @return [Boolean]
2824
+ attr_accessor :auto_convert_missing_prices
2825
+ alias_method :auto_convert_missing_prices?, :auto_convert_missing_prices
2826
+
2827
+ # An in-app product. The resource for InappproductsService.
2828
+ # Corresponds to the JSON property `inappproduct`
2829
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
2830
+ attr_accessor :inappproduct
2831
+
2832
+ # Optional. The latency tolerance for the propagation of this product update.
2833
+ # Defaults to latency-sensitive.
2834
+ # Corresponds to the JSON property `latencyTolerance`
2835
+ # @return [String]
2836
+ attr_accessor :latency_tolerance
2837
+
2838
+ # Package name of the app.
2839
+ # Corresponds to the JSON property `packageName`
2840
+ # @return [String]
2841
+ attr_accessor :package_name
2842
+
2843
+ # Unique identifier for the in-app product.
2844
+ # Corresponds to the JSON property `sku`
2845
+ # @return [String]
2846
+ attr_accessor :sku
2847
+
2848
+ def initialize(**args)
2849
+ update!(**args)
2850
+ end
2851
+
2852
+ # Update properties of this object
2853
+ def update!(**args)
2854
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
2855
+ @auto_convert_missing_prices = args[:auto_convert_missing_prices] if args.key?(:auto_convert_missing_prices)
2856
+ @inappproduct = args[:inappproduct] if args.key?(:inappproduct)
2857
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2858
+ @package_name = args[:package_name] if args.key?(:package_name)
2859
+ @sku = args[:sku] if args.key?(:sku)
2860
+ end
2861
+ end
2862
+
2293
2863
  # An artifact resource which gets created when uploading an APK or Android App
2294
2864
  # Bundle through internal app sharing.
2295
2865
  class InternalAppSharingArtifact
@@ -2634,6 +3204,29 @@ module Google
2634
3204
  class MigrateBasePlanPricesRequest
2635
3205
  include Google::Apis::Core::Hashable
2636
3206
 
3207
+ # Required. The unique base plan ID of the base plan to update prices on.
3208
+ # Corresponds to the JSON property `basePlanId`
3209
+ # @return [String]
3210
+ attr_accessor :base_plan_id
3211
+
3212
+ # Optional. The latency tolerance for the propagation of this product update.
3213
+ # Defaults to latency-sensitive.
3214
+ # Corresponds to the JSON property `latencyTolerance`
3215
+ # @return [String]
3216
+ attr_accessor :latency_tolerance
3217
+
3218
+ # Required. Package name of the parent app. Must be equal to the package_name
3219
+ # field on the Subscription resource.
3220
+ # Corresponds to the JSON property `packageName`
3221
+ # @return [String]
3222
+ attr_accessor :package_name
3223
+
3224
+ # Required. The ID of the subscription to update. Must be equal to the
3225
+ # product_id field on the Subscription resource.
3226
+ # Corresponds to the JSON property `productId`
3227
+ # @return [String]
3228
+ attr_accessor :product_id
3229
+
2637
3230
  # Required. The regional prices to update.
2638
3231
  # Corresponds to the JSON property `regionalPriceMigrations`
2639
3232
  # @return [Array<Google::Apis::AndroidpublisherV3::RegionalPriceMigrationConfig>]
@@ -2650,6 +3243,10 @@ module Google
2650
3243
 
2651
3244
  # Update properties of this object
2652
3245
  def update!(**args)
3246
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
3247
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
3248
+ @package_name = args[:package_name] if args.key?(:package_name)
3249
+ @product_id = args[:product_id] if args.key?(:product_id)
2653
3250
  @regional_price_migrations = args[:regional_price_migrations] if args.key?(:regional_price_migrations)
2654
3251
  @regions_version = args[:regions_version] if args.key?(:regions_version)
2655
3252
  end
@@ -5326,6 +5923,150 @@ module Google
5326
5923
  end
5327
5924
  end
5328
5925
 
5926
+ # Request message to update the state of a subscription base plan.
5927
+ class UpdateBasePlanStateRequest
5928
+ include Google::Apis::Core::Hashable
5929
+
5930
+ # Request message for ActivateBasePlan.
5931
+ # Corresponds to the JSON property `activateBasePlanRequest`
5932
+ # @return [Google::Apis::AndroidpublisherV3::ActivateBasePlanRequest]
5933
+ attr_accessor :activate_base_plan_request
5934
+
5935
+ # Request message for DeactivateBasePlan.
5936
+ # Corresponds to the JSON property `deactivateBasePlanRequest`
5937
+ # @return [Google::Apis::AndroidpublisherV3::DeactivateBasePlanRequest]
5938
+ attr_accessor :deactivate_base_plan_request
5939
+
5940
+ def initialize(**args)
5941
+ update!(**args)
5942
+ end
5943
+
5944
+ # Update properties of this object
5945
+ def update!(**args)
5946
+ @activate_base_plan_request = args[:activate_base_plan_request] if args.key?(:activate_base_plan_request)
5947
+ @deactivate_base_plan_request = args[:deactivate_base_plan_request] if args.key?(:deactivate_base_plan_request)
5948
+ end
5949
+ end
5950
+
5951
+ # Request message for UpdateSubscriptionOffer.
5952
+ class UpdateSubscriptionOfferRequest
5953
+ include Google::Apis::Core::Hashable
5954
+
5955
+ # Optional. If set to true, and the subscription offer with the given
5956
+ # package_name, product_id, base_plan_id and offer_id doesn't exist, an offer
5957
+ # will be created. If a new offer is created, update_mask is ignored.
5958
+ # Corresponds to the JSON property `allowMissing`
5959
+ # @return [Boolean]
5960
+ attr_accessor :allow_missing
5961
+ alias_method :allow_missing?, :allow_missing
5962
+
5963
+ # Optional. The latency tolerance for the propagation of this product update.
5964
+ # Defaults to latency-sensitive.
5965
+ # Corresponds to the JSON property `latencyTolerance`
5966
+ # @return [String]
5967
+ attr_accessor :latency_tolerance
5968
+
5969
+ # The version of the available regions being used for the specified resource.
5970
+ # Corresponds to the JSON property `regionsVersion`
5971
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
5972
+ attr_accessor :regions_version
5973
+
5974
+ # A single, temporary offer
5975
+ # Corresponds to the JSON property `subscriptionOffer`
5976
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
5977
+ attr_accessor :subscription_offer
5978
+
5979
+ # Required. The list of fields to be updated.
5980
+ # Corresponds to the JSON property `updateMask`
5981
+ # @return [String]
5982
+ attr_accessor :update_mask
5983
+
5984
+ def initialize(**args)
5985
+ update!(**args)
5986
+ end
5987
+
5988
+ # Update properties of this object
5989
+ def update!(**args)
5990
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
5991
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
5992
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
5993
+ @subscription_offer = args[:subscription_offer] if args.key?(:subscription_offer)
5994
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
5995
+ end
5996
+ end
5997
+
5998
+ # Request message to update the state of a subscription offer.
5999
+ class UpdateSubscriptionOfferStateRequest
6000
+ include Google::Apis::Core::Hashable
6001
+
6002
+ # Request message for ActivateSubscriptionOffer.
6003
+ # Corresponds to the JSON property `activateSubscriptionOfferRequest`
6004
+ # @return [Google::Apis::AndroidpublisherV3::ActivateSubscriptionOfferRequest]
6005
+ attr_accessor :activate_subscription_offer_request
6006
+
6007
+ # Request message for DeactivateSubscriptionOffer.
6008
+ # Corresponds to the JSON property `deactivateSubscriptionOfferRequest`
6009
+ # @return [Google::Apis::AndroidpublisherV3::DeactivateSubscriptionOfferRequest]
6010
+ attr_accessor :deactivate_subscription_offer_request
6011
+
6012
+ def initialize(**args)
6013
+ update!(**args)
6014
+ end
6015
+
6016
+ # Update properties of this object
6017
+ def update!(**args)
6018
+ @activate_subscription_offer_request = args[:activate_subscription_offer_request] if args.key?(:activate_subscription_offer_request)
6019
+ @deactivate_subscription_offer_request = args[:deactivate_subscription_offer_request] if args.key?(:deactivate_subscription_offer_request)
6020
+ end
6021
+ end
6022
+
6023
+ # Request message for UpdateSubscription.
6024
+ class UpdateSubscriptionRequest
6025
+ include Google::Apis::Core::Hashable
6026
+
6027
+ # Optional. If set to true, and the subscription with the given package_name and
6028
+ # product_id doesn't exist, the subscription will be created. If a new
6029
+ # subscription is created, update_mask is ignored.
6030
+ # Corresponds to the JSON property `allowMissing`
6031
+ # @return [Boolean]
6032
+ attr_accessor :allow_missing
6033
+ alias_method :allow_missing?, :allow_missing
6034
+
6035
+ # Optional. The latency tolerance for the propagation of this product update.
6036
+ # Defaults to latency-sensitive.
6037
+ # Corresponds to the JSON property `latencyTolerance`
6038
+ # @return [String]
6039
+ attr_accessor :latency_tolerance
6040
+
6041
+ # The version of the available regions being used for the specified resource.
6042
+ # Corresponds to the JSON property `regionsVersion`
6043
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
6044
+ attr_accessor :regions_version
6045
+
6046
+ # A single subscription for an app.
6047
+ # Corresponds to the JSON property `subscription`
6048
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
6049
+ attr_accessor :subscription
6050
+
6051
+ # Required. The list of fields to be updated.
6052
+ # Corresponds to the JSON property `updateMask`
6053
+ # @return [String]
6054
+ attr_accessor :update_mask
6055
+
6056
+ def initialize(**args)
6057
+ update!(**args)
6058
+ end
6059
+
6060
+ # Update properties of this object
6061
+ def update!(**args)
6062
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
6063
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
6064
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
6065
+ @subscription = args[:subscription] if args.key?(:subscription)
6066
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
6067
+ end
6068
+ end
6069
+
5329
6070
  # Represents a targeting rule of the form: User currently has `scope` [with
5330
6071
  # billing period `billing_period`].
5331
6072
  class UpgradeTargetingRule