google-apis-androidpublisher_v3 0.9.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34d71ee6e9c968197bccdcdef0531bd3acbcfce6cf8ceed066d3812ce70d1477
4
- data.tar.gz: b361e1fd500cbbf4b73d0c912f456bf1101e034a0d981bed3d8a2cf4de91bbf3
3
+ metadata.gz: f7e7a219d0f7ba83dae78031c1e46f36c4b648a1d0392145afc84ebfea049801
4
+ data.tar.gz: 26c3d51f2354e2459c7ef6974672c705bb0fb6da918b68bfa66b3f1858cf029c
5
5
  SHA512:
6
- metadata.gz: dde4db53314bd6366f4f36148680dae271faa01c246dd43f26aeca51ffe89f46795753b9bcc1d68ab473620526c5acfc91efb8d82eba9079644c0545315d8fb9
7
- data.tar.gz: 72ff5320f25daf707190bfe642aeeb7de942a67241f9ffb9f87210961e56bd19cde853a44acf33d68c22a52eb1e781d27762f95046442f1922f2b8a68bf875dd
6
+ metadata.gz: e5305ec881247145c7a2d55f9fe869fb37587d870c4cfcbcf63bdc5399a3c497889422f266b2dea006dbff70a6c0b605990989381ed1a39c507516ffd76d782b
7
+ data.tar.gz: 9fa3d712eb7dd44f7f6a804fa7141716b53cb2cb2c214948e250e212a0e5751a7430c81f15f7ce42f2aec99b797169e2a5057b3239d045ee98315768fa92d732
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.13.0 (2021-10-22)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
7
+ ### v0.12.0 (2021-10-07)
8
+
9
+ * Regenerated from discovery document revision 20211006
10
+
11
+ ### v0.11.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210901
14
+
15
+ ### v0.10.0 (2021-07-30)
16
+
17
+ * Regenerated from discovery document revision 20210728
18
+
3
19
  ### v0.9.0 (2021-07-21)
4
20
 
5
21
  * Regenerated from discovery document revision 20210720
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Androidpublisher service in particular.)
67
67
 
@@ -290,6 +290,106 @@ module Google
290
290
  end
291
291
  end
292
292
 
293
+ # Request message for ConvertRegionPrices.
294
+ class ConvertRegionPricesRequest
295
+ include Google::Apis::Core::Hashable
296
+
297
+ # Represents an amount of money with its currency type.
298
+ # Corresponds to the JSON property `price`
299
+ # @return [Google::Apis::AndroidpublisherV3::Money]
300
+ attr_accessor :price
301
+
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
305
+
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @price = args[:price] if args.key?(:price)
309
+ end
310
+ end
311
+
312
+ # Response message for ConvertRegionPrices.
313
+ class ConvertRegionPricesResponse
314
+ include Google::Apis::Core::Hashable
315
+
316
+ # Converted other regions prices.
317
+ # Corresponds to the JSON property `convertedOtherRegionsPrice`
318
+ # @return [Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice]
319
+ attr_accessor :converted_other_regions_price
320
+
321
+ # Map from region code to converted region price.
322
+ # Corresponds to the JSON property `convertedRegionPrices`
323
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::ConvertedRegionPrice>]
324
+ attr_accessor :converted_region_prices
325
+
326
+ def initialize(**args)
327
+ update!(**args)
328
+ end
329
+
330
+ # Update properties of this object
331
+ def update!(**args)
332
+ @converted_other_regions_price = args[:converted_other_regions_price] if args.key?(:converted_other_regions_price)
333
+ @converted_region_prices = args[:converted_region_prices] if args.key?(:converted_region_prices)
334
+ end
335
+ end
336
+
337
+ # Converted other regions prices.
338
+ class ConvertedOtherRegionsPrice
339
+ include Google::Apis::Core::Hashable
340
+
341
+ # Represents an amount of money with its currency type.
342
+ # Corresponds to the JSON property `eurPrice`
343
+ # @return [Google::Apis::AndroidpublisherV3::Money]
344
+ attr_accessor :eur_price
345
+
346
+ # Represents an amount of money with its currency type.
347
+ # Corresponds to the JSON property `usdPrice`
348
+ # @return [Google::Apis::AndroidpublisherV3::Money]
349
+ attr_accessor :usd_price
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
358
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
359
+ end
360
+ end
361
+
362
+ # A converted region price.
363
+ class ConvertedRegionPrice
364
+ include Google::Apis::Core::Hashable
365
+
366
+ # Represents an amount of money with its currency type.
367
+ # Corresponds to the JSON property `price`
368
+ # @return [Google::Apis::AndroidpublisherV3::Money]
369
+ attr_accessor :price
370
+
371
+ # The region code of the region.
372
+ # Corresponds to the JSON property `regionCode`
373
+ # @return [String]
374
+ attr_accessor :region_code
375
+
376
+ # Represents an amount of money with its currency type.
377
+ # Corresponds to the JSON property `taxAmount`
378
+ # @return [Google::Apis::AndroidpublisherV3::Money]
379
+ attr_accessor :tax_amount
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @price = args[:price] if args.key?(:price)
388
+ @region_code = args[:region_code] if args.key?(:region_code)
389
+ @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
390
+ end
391
+ end
392
+
293
393
  # Country targeting specification.
294
394
  class CountryTargeting
295
395
  include Google::Apis::Core::Hashable
@@ -648,6 +748,38 @@ module Google
648
748
  end
649
749
  end
650
750
 
751
+ # An access grant resource.
752
+ class Grant
753
+ include Google::Apis::Core::Hashable
754
+
755
+ # The permissions granted to the user for this app.
756
+ # Corresponds to the JSON property `appLevelPermissions`
757
+ # @return [Array<String>]
758
+ attr_accessor :app_level_permissions
759
+
760
+ # Required. Resource name for this grant, following the pattern "developers/`
761
+ # developer`/users/`email`/grants/`package_name`".
762
+ # Corresponds to the JSON property `name`
763
+ # @return [String]
764
+ attr_accessor :name
765
+
766
+ # Immutable. The package name of the app.
767
+ # Corresponds to the JSON property `packageName`
768
+ # @return [String]
769
+ attr_accessor :package_name
770
+
771
+ def initialize(**args)
772
+ update!(**args)
773
+ end
774
+
775
+ # Update properties of this object
776
+ def update!(**args)
777
+ @app_level_permissions = args[:app_level_permissions] if args.key?(:app_level_permissions)
778
+ @name = args[:name] if args.key?(:name)
779
+ @package_name = args[:package_name] if args.key?(:package_name)
780
+ end
781
+ end
782
+
651
783
  # An uploaded image. The resource for ImagesService.
652
784
  class Image
653
785
  include Google::Apis::Core::Hashable
@@ -770,6 +902,11 @@ module Google
770
902
  # @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
771
903
  attr_accessor :listings
772
904
 
905
+ # Details about taxation and legal compliance for managed products.
906
+ # Corresponds to the JSON property `managedProductTaxesAndComplianceSettings`
907
+ # @return [Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings]
908
+ attr_accessor :managed_product_taxes_and_compliance_settings
909
+
773
910
  # Package name of the parent app.
774
911
  # Corresponds to the JSON property `packageName`
775
912
  # @return [String]
@@ -803,6 +940,12 @@ module Google
803
940
  # @return [String]
804
941
  attr_accessor :subscription_period
805
942
 
943
+ # Details about taxation, Google Play policy and legal compliance for
944
+ # subscription products.
945
+ # Corresponds to the JSON property `subscriptionTaxesAndComplianceSettings`
946
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
947
+ attr_accessor :subscription_taxes_and_compliance_settings
948
+
806
949
  # Trial period, specified in ISO 8601 format. Acceptable values are anything
807
950
  # between P7D (seven days) and P999D (999 days).
808
951
  # Corresponds to the JSON property `trialPeriod`
@@ -819,12 +962,14 @@ module Google
819
962
  @default_price = args[:default_price] if args.key?(:default_price)
820
963
  @grace_period = args[:grace_period] if args.key?(:grace_period)
821
964
  @listings = args[:listings] if args.key?(:listings)
965
+ @managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings)
822
966
  @package_name = args[:package_name] if args.key?(:package_name)
823
967
  @prices = args[:prices] if args.key?(:prices)
824
968
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
825
969
  @sku = args[:sku] if args.key?(:sku)
826
970
  @status = args[:status] if args.key?(:status)
827
971
  @subscription_period = args[:subscription_period] if args.key?(:subscription_period)
972
+ @subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings)
828
973
  @trial_period = args[:trial_period] if args.key?(:trial_period)
829
974
  end
830
975
  end
@@ -984,6 +1129,32 @@ module Google
984
1129
  end
985
1130
  end
986
1131
 
1132
+ # A response containing one or more users with access to an account.
1133
+ class ListUsersResponse
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ # A token to pass to subsequent calls in order to retrieve subsequent results.
1137
+ # This will not be set if there are no more results to return.
1138
+ # Corresponds to the JSON property `nextPageToken`
1139
+ # @return [String]
1140
+ attr_accessor :next_page_token
1141
+
1142
+ # The resulting users.
1143
+ # Corresponds to the JSON property `users`
1144
+ # @return [Array<Google::Apis::AndroidpublisherV3::User>]
1145
+ attr_accessor :users
1146
+
1147
+ def initialize(**args)
1148
+ update!(**args)
1149
+ end
1150
+
1151
+ # Update properties of this object
1152
+ def update!(**args)
1153
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1154
+ @users = args[:users] if args.key?(:users)
1155
+ end
1156
+ end
1157
+
987
1158
  # A localized store listing. The resource for ListingsService.
988
1159
  class Listing
989
1160
  include Google::Apis::Core::Hashable
@@ -1079,6 +1250,72 @@ module Google
1079
1250
  end
1080
1251
  end
1081
1252
 
1253
+ # Details about taxation and legal compliance for managed products.
1254
+ class ManagedProductTaxAndComplianceSettings
1255
+ include Google::Apis::Core::Hashable
1256
+
1257
+ # Digital content or service classification for products distributed to users in
1258
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
1259
+ # laws depends on this classification. Refer to the [Help Center article](https:/
1260
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
1261
+ # information.
1262
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
1263
+ # @return [String]
1264
+ attr_accessor :eea_withdrawal_right_type
1265
+
1266
+ # A mapping from region code to tax rate details. The keys are region codes as
1267
+ # defined by Unicode's "CLDR".
1268
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
1269
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
1270
+ attr_accessor :tax_rate_info_by_region_code
1271
+
1272
+ def initialize(**args)
1273
+ update!(**args)
1274
+ end
1275
+
1276
+ # Update properties of this object
1277
+ def update!(**args)
1278
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
1279
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
1280
+ end
1281
+ end
1282
+
1283
+ # Represents an amount of money with its currency type.
1284
+ class Money
1285
+ include Google::Apis::Core::Hashable
1286
+
1287
+ # The three-letter currency code defined in ISO 4217.
1288
+ # Corresponds to the JSON property `currencyCode`
1289
+ # @return [String]
1290
+ attr_accessor :currency_code
1291
+
1292
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
1293
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
1294
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
1295
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
1296
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1297
+ # Corresponds to the JSON property `nanos`
1298
+ # @return [Fixnum]
1299
+ attr_accessor :nanos
1300
+
1301
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
1302
+ # 1 unit is one US dollar.
1303
+ # Corresponds to the JSON property `units`
1304
+ # @return [Fixnum]
1305
+ attr_accessor :units
1306
+
1307
+ def initialize(**args)
1308
+ update!(**args)
1309
+ end
1310
+
1311
+ # Update properties of this object
1312
+ def update!(**args)
1313
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1314
+ @nanos = args[:nanos] if args.key?(:nanos)
1315
+ @units = args[:units] if args.key?(:units)
1316
+ end
1317
+ end
1318
+
1082
1319
  # Information about the current page. List operations that supports paging
1083
1320
  # return only one "page" of results. This protocol buffer message describes the
1084
1321
  # page that has been returned.
@@ -1273,6 +1510,36 @@ module Google
1273
1510
  end
1274
1511
  end
1275
1512
 
1513
+ # Specified details about taxation in a given geographical region.
1514
+ class RegionalTaxRateInfo
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # You must tell us if your app contains streaming products to correctly charge
1518
+ # US state and local sales tax. Field only supported in United States.
1519
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
1520
+ # @return [Boolean]
1521
+ attr_accessor :eligible_for_streaming_service_tax_rate
1522
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
1523
+
1524
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
1525
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
1526
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
1527
+ # android-developer/answer/10463498).
1528
+ # Corresponds to the JSON property `taxTier`
1529
+ # @return [String]
1530
+ attr_accessor :tax_tier
1531
+
1532
+ def initialize(**args)
1533
+ update!(**args)
1534
+ end
1535
+
1536
+ # Update properties of this object
1537
+ def update!(**args)
1538
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
1539
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
1540
+ end
1541
+ end
1542
+
1276
1543
  # An Android app review.
1277
1544
  class Review
1278
1545
  include Google::Apis::Core::Hashable
@@ -1802,6 +2069,37 @@ module Google
1802
2069
  end
1803
2070
  end
1804
2071
 
2072
+ # Details about taxation, Google Play policy and legal compliance for
2073
+ # subscription products.
2074
+ class SubscriptionTaxAndComplianceSettings
2075
+ include Google::Apis::Core::Hashable
2076
+
2077
+ # Digital content or service classification for products distributed to users in
2078
+ # the European Economic Area (EEA). The withdrawal regime under EEA consumer
2079
+ # laws depends on this classification. Refer to the [Help Center article](https:/
2080
+ # /support.google.com/googleplay/android-developer/answer/10463498) for more
2081
+ # information.
2082
+ # Corresponds to the JSON property `eeaWithdrawalRightType`
2083
+ # @return [String]
2084
+ attr_accessor :eea_withdrawal_right_type
2085
+
2086
+ # A mapping from region code to tax rate details. The keys are region codes as
2087
+ # defined by Unicode's "CLDR".
2088
+ # Corresponds to the JSON property `taxRateInfoByRegionCode`
2089
+ # @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
2090
+ attr_accessor :tax_rate_info_by_region_code
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
2099
+ @tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
2100
+ end
2101
+ end
2102
+
1805
2103
  # Response to list previously created system APK variants.
1806
2104
  class SystemApksListResponse
1807
2105
  include Google::Apis::Core::Hashable
@@ -2016,6 +2314,64 @@ module Google
2016
2314
  end
2017
2315
  end
2018
2316
 
2317
+ # A user resource.
2318
+ class User
2319
+ include Google::Apis::Core::Hashable
2320
+
2321
+ # Output only. The state of the user's access to the Play Console.
2322
+ # Corresponds to the JSON property `accessState`
2323
+ # @return [String]
2324
+ attr_accessor :access_state
2325
+
2326
+ # Permissions for the user which apply across the developer account.
2327
+ # Corresponds to the JSON property `developerAccountPermissions`
2328
+ # @return [Array<String>]
2329
+ attr_accessor :developer_account_permissions
2330
+
2331
+ # Immutable. The user's email address.
2332
+ # Corresponds to the JSON property `email`
2333
+ # @return [String]
2334
+ attr_accessor :email
2335
+
2336
+ # The time at which the user's access expires, if set.
2337
+ # Corresponds to the JSON property `expirationTime`
2338
+ # @return [String]
2339
+ attr_accessor :expiration_time
2340
+
2341
+ # Output only. Per-app permissions for the user.
2342
+ # Corresponds to the JSON property `grants`
2343
+ # @return [Array<Google::Apis::AndroidpublisherV3::Grant>]
2344
+ attr_accessor :grants
2345
+
2346
+ # Required. Resource name for this user, following the pattern "developers/`
2347
+ # developer`/users/`email`".
2348
+ # Corresponds to the JSON property `name`
2349
+ # @return [String]
2350
+ attr_accessor :name
2351
+
2352
+ # Output only. Whether there are more permissions for the user that are not
2353
+ # represented here.
2354
+ # Corresponds to the JSON property `partial`
2355
+ # @return [Boolean]
2356
+ attr_accessor :partial
2357
+ alias_method :partial?, :partial
2358
+
2359
+ def initialize(**args)
2360
+ update!(**args)
2361
+ end
2362
+
2363
+ # Update properties of this object
2364
+ def update!(**args)
2365
+ @access_state = args[:access_state] if args.key?(:access_state)
2366
+ @developer_account_permissions = args[:developer_account_permissions] if args.key?(:developer_account_permissions)
2367
+ @email = args[:email] if args.key?(:email)
2368
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
2369
+ @grants = args[:grants] if args.key?(:grants)
2370
+ @name = args[:name] if args.key?(:name)
2371
+ @partial = args[:partial] if args.key?(:partial)
2372
+ end
2373
+ end
2374
+
2019
2375
  # User entry from conversation between user and developer.
2020
2376
  class UserComment
2021
2377
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidpublisherV3
18
18
  # Version of the google-apis-androidpublisher_v3 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210720"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,30 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ConvertRegionPricesRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ConvertRegionPricesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ConvertedOtherRegionsPrice
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ConvertedRegionPrice
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
85
109
  class CountryTargeting
86
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
111
 
@@ -136,6 +160,12 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class Grant
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
139
169
  class Image
140
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
171
 
@@ -190,6 +220,12 @@ module Google
190
220
  include Google::Apis::Core::JsonObjectSupport
191
221
  end
192
222
 
223
+ class ListUsersResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
193
229
  class Listing
194
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
231
 
@@ -208,6 +244,18 @@ module Google
208
244
  include Google::Apis::Core::JsonObjectSupport
209
245
  end
210
246
 
247
+ class ManagedProductTaxAndComplianceSettings
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class Money
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
211
259
  class PageInfo
212
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
261
 
@@ -232,6 +280,12 @@ module Google
232
280
  include Google::Apis::Core::JsonObjectSupport
233
281
  end
234
282
 
283
+ class RegionalTaxRateInfo
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
235
289
  class Review
236
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
291
 
@@ -304,6 +358,12 @@ module Google
304
358
  include Google::Apis::Core::JsonObjectSupport
305
359
  end
306
360
 
361
+ class SubscriptionTaxAndComplianceSettings
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
307
367
  class SystemApksListResponse
308
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
369
 
@@ -346,6 +406,12 @@ module Google
346
406
  include Google::Apis::Core::JsonObjectSupport
347
407
  end
348
408
 
409
+ class User
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
349
415
  class UserComment
350
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
417
 
@@ -464,6 +530,45 @@ module Google
464
530
  end
465
531
  end
466
532
 
533
+ class ConvertRegionPricesRequest
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
537
+
538
+ end
539
+ end
540
+
541
+ class ConvertRegionPricesResponse
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :converted_other_regions_price, as: 'convertedOtherRegionsPrice', class: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice::Representation
545
+
546
+ hash :converted_region_prices, as: 'convertedRegionPrices', class: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice, decorator: Google::Apis::AndroidpublisherV3::ConvertedRegionPrice::Representation
547
+
548
+ end
549
+ end
550
+
551
+ class ConvertedOtherRegionsPrice
552
+ # @private
553
+ class Representation < Google::Apis::Core::JsonRepresentation
554
+ property :eur_price, as: 'eurPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
555
+
556
+ property :usd_price, as: 'usdPrice', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
557
+
558
+ end
559
+ end
560
+
561
+ class ConvertedRegionPrice
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :price, as: 'price', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
565
+
566
+ property :region_code, as: 'regionCode'
567
+ property :tax_amount, as: 'taxAmount', class: Google::Apis::AndroidpublisherV3::Money, decorator: Google::Apis::AndroidpublisherV3::Money::Representation
568
+
569
+ end
570
+ end
571
+
467
572
  class CountryTargeting
468
573
  # @private
469
574
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -560,6 +665,15 @@ module Google
560
665
  end
561
666
  end
562
667
 
668
+ class Grant
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ collection :app_level_permissions, as: 'appLevelPermissions'
672
+ property :name, as: 'name'
673
+ property :package_name, as: 'packageName'
674
+ end
675
+ end
676
+
563
677
  class Image
564
678
  # @private
565
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -603,6 +717,8 @@ module Google
603
717
  property :grace_period, as: 'gracePeriod'
604
718
  hash :listings, as: 'listings', class: Google::Apis::AndroidpublisherV3::InAppProductListing, decorator: Google::Apis::AndroidpublisherV3::InAppProductListing::Representation
605
719
 
720
+ property :managed_product_taxes_and_compliance_settings, as: 'managedProductTaxesAndComplianceSettings', class: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings, decorator: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings::Representation
721
+
606
722
  property :package_name, as: 'packageName'
607
723
  hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
608
724
 
@@ -610,6 +726,8 @@ module Google
610
726
  property :sku, as: 'sku'
611
727
  property :status, as: 'status'
612
728
  property :subscription_period, as: 'subscriptionPeriod'
729
+ property :subscription_taxes_and_compliance_settings, as: 'subscriptionTaxesAndComplianceSettings', class: Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings, decorator: Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings::Representation
730
+
613
731
  property :trial_period, as: 'trialPeriod'
614
732
  end
615
733
  end
@@ -655,6 +773,15 @@ module Google
655
773
  end
656
774
  end
657
775
 
776
+ class ListUsersResponse
777
+ # @private
778
+ class Representation < Google::Apis::Core::JsonRepresentation
779
+ property :next_page_token, as: 'nextPageToken'
780
+ collection :users, as: 'users', class: Google::Apis::AndroidpublisherV3::User, decorator: Google::Apis::AndroidpublisherV3::User::Representation
781
+
782
+ end
783
+ end
784
+
658
785
  class Listing
659
786
  # @private
660
787
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -683,6 +810,24 @@ module Google
683
810
  end
684
811
  end
685
812
 
813
+ class ManagedProductTaxAndComplianceSettings
814
+ # @private
815
+ class Representation < Google::Apis::Core::JsonRepresentation
816
+ property :eea_withdrawal_right_type, as: 'eeaWithdrawalRightType'
817
+ hash :tax_rate_info_by_region_code, as: 'taxRateInfoByRegionCode', class: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo, decorator: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo::Representation
818
+
819
+ end
820
+ end
821
+
822
+ class Money
823
+ # @private
824
+ class Representation < Google::Apis::Core::JsonRepresentation
825
+ property :currency_code, as: 'currencyCode'
826
+ property :nanos, as: 'nanos'
827
+ property :units, :numeric_string => true, as: 'units'
828
+ end
829
+ end
830
+
686
831
  class PageInfo
687
832
  # @private
688
833
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -727,6 +872,14 @@ module Google
727
872
  end
728
873
  end
729
874
 
875
+ class RegionalTaxRateInfo
876
+ # @private
877
+ class Representation < Google::Apis::Core::JsonRepresentation
878
+ property :eligible_for_streaming_service_tax_rate, as: 'eligibleForStreamingServiceTaxRate'
879
+ property :tax_tier, as: 'taxTier'
880
+ end
881
+ end
882
+
730
883
  class Review
731
884
  # @private
732
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -858,6 +1011,15 @@ module Google
858
1011
  end
859
1012
  end
860
1013
 
1014
+ class SubscriptionTaxAndComplianceSettings
1015
+ # @private
1016
+ class Representation < Google::Apis::Core::JsonRepresentation
1017
+ property :eea_withdrawal_right_type, as: 'eeaWithdrawalRightType'
1018
+ hash :tax_rate_info_by_region_code, as: 'taxRateInfoByRegionCode', class: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo, decorator: Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo::Representation
1019
+
1020
+ end
1021
+ end
1022
+
861
1023
  class SystemApksListResponse
862
1024
  # @private
863
1025
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -922,6 +1084,20 @@ module Google
922
1084
  end
923
1085
  end
924
1086
 
1087
+ class User
1088
+ # @private
1089
+ class Representation < Google::Apis::Core::JsonRepresentation
1090
+ property :access_state, as: 'accessState'
1091
+ collection :developer_account_permissions, as: 'developerAccountPermissions'
1092
+ property :email, as: 'email'
1093
+ property :expiration_time, as: 'expirationTime'
1094
+ collection :grants, as: 'grants', class: Google::Apis::AndroidpublisherV3::Grant, decorator: Google::Apis::AndroidpublisherV3::Grant::Representation
1095
+
1096
+ property :name, as: 'name'
1097
+ property :partial, as: 'partial'
1098
+ end
1099
+ end
1100
+
925
1101
  class UserComment
926
1102
  # @private
927
1103
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1402,6 +1402,106 @@ module Google
1402
1402
  execute_or_queue_command(command, &block)
1403
1403
  end
1404
1404
 
1405
+ # Grant access for a user to the given package.
1406
+ # @param [String] parent
1407
+ # Required. The user which needs permission. Format: developers/`developer`/
1408
+ # users/`user`
1409
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1410
+ # @param [String] fields
1411
+ # Selector specifying which fields to include in a partial response.
1412
+ # @param [String] quota_user
1413
+ # Available to use for quota purposes for server-side applications. Can be any
1414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1415
+ # @param [Google::Apis::RequestOptions] options
1416
+ # Request-specific options
1417
+ #
1418
+ # @yield [result, err] Result & error if block supplied
1419
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1420
+ # @yieldparam err [StandardError] error object if request failed
1421
+ #
1422
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1423
+ #
1424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1427
+ def create_grant(parent, grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1428
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/grants', options)
1429
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1430
+ command.request_object = grant_object
1431
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1432
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1433
+ command.params['parent'] = parent unless parent.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Removes all access for the user to the given package or developer account.
1440
+ # @param [String] name
1441
+ # Required. The name of the grant to delete. Format: developers/`developer`/
1442
+ # users/`email`/grants/`package_name`
1443
+ # @param [String] fields
1444
+ # Selector specifying which fields to include in a partial response.
1445
+ # @param [String] quota_user
1446
+ # Available to use for quota purposes for server-side applications. Can be any
1447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1448
+ # @param [Google::Apis::RequestOptions] options
1449
+ # Request-specific options
1450
+ #
1451
+ # @yield [result, err] Result & error if block supplied
1452
+ # @yieldparam result [NilClass] No result returned for this method
1453
+ # @yieldparam err [StandardError] error object if request failed
1454
+ #
1455
+ # @return [void]
1456
+ #
1457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1460
+ def delete_grant(name, fields: nil, quota_user: nil, options: nil, &block)
1461
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
1462
+ command.params['name'] = name unless name.nil?
1463
+ command.query['fields'] = fields unless fields.nil?
1464
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
+ execute_or_queue_command(command, &block)
1466
+ end
1467
+
1468
+ # Updates access for the user to the given package.
1469
+ # @param [String] name
1470
+ # Required. Resource name for this grant, following the pattern "developers/`
1471
+ # developer`/users/`email`/grants/`package_name`".
1472
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1473
+ # @param [String] update_mask
1474
+ # Optional. The list of fields to be updated.
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # Available to use for quota purposes for server-side applications. Can be any
1479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
+ # @param [Google::Apis::RequestOptions] options
1481
+ # Request-specific options
1482
+ #
1483
+ # @yield [result, err] Result & error if block supplied
1484
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1485
+ # @yieldparam err [StandardError] error object if request failed
1486
+ #
1487
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1488
+ #
1489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1492
+ def patch_grant(name, grant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1493
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
1494
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1495
+ command.request_object = grant_object
1496
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1497
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1498
+ command.params['name'] = name unless name.nil?
1499
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1500
+ command.query['fields'] = fields unless fields.nil?
1501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1502
+ execute_or_queue_command(command, &block)
1503
+ end
1504
+
1405
1505
  # Deletes an in-app product (i.e. a managed product or a subscriptions).
1406
1506
  # @param [String] package_name
1407
1507
  # Package name of the app.
@@ -1504,13 +1604,17 @@ module Google
1504
1604
  execute_or_queue_command(command, &block)
1505
1605
  end
1506
1606
 
1507
- # Lists all in-app products - both managed products and subscriptions.
1607
+ # Lists all in-app products - both managed products and subscriptions. If an app
1608
+ # has a large number of in-app products, the response may be paginated. In this
1609
+ # case the response field `tokenPagination.nextPageToken` will be set and the
1610
+ # caller should provide its value as a `token` request parameter to retrieve the
1611
+ # next page.
1508
1612
  # @param [String] package_name
1509
1613
  # Package name of the app.
1510
1614
  # @param [Fixnum] max_results
1511
- # How many results the list operation should return.
1615
+ # Deprecated and ignored. The page size is determined by the server.
1512
1616
  # @param [Fixnum] start_index
1513
- # The index of the first element to return.
1617
+ # Deprecated and ignored. Set the `token` parameter to rertieve the next page.
1514
1618
  # @param [String] token
1515
1619
  # Pagination token. If empty, list starts at the first product.
1516
1620
  # @param [String] fields
@@ -1590,6 +1694,9 @@ module Google
1590
1694
  # @param [String] sku
1591
1695
  # Unique identifier for the in-app product.
1592
1696
  # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1697
+ # @param [Boolean] allow_missing
1698
+ # If set to true, and the in-app product with the given package_name and sku
1699
+ # doesn't exist, the in-app product will be created.
1593
1700
  # @param [Boolean] auto_convert_missing_prices
1594
1701
  # If true the prices for all regions targeted by the parent app that don't have
1595
1702
  # a price specified for this in-app product will be auto converted to the target
@@ -1611,7 +1718,7 @@ module Google
1611
1718
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1612
1719
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1613
1720
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1614
- def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1721
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, allow_missing: nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1615
1722
  command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1616
1723
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1617
1724
  command.request_object = in_app_product_object
@@ -1619,6 +1726,7 @@ module Google
1619
1726
  command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1620
1727
  command.params['packageName'] = package_name unless package_name.nil?
1621
1728
  command.params['sku'] = sku unless sku.nil?
1729
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1622
1730
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1623
1731
  command.query['fields'] = fields unless fields.nil?
1624
1732
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1713,7 +1821,42 @@ module Google
1713
1821
  execute_or_queue_command(command, &block)
1714
1822
  end
1715
1823
 
1716
- # Refund a user's subscription or in-app purchase order.
1824
+ # Calculates the region prices, using today's exchange rate and country-specific
1825
+ # pricing patterns, based on the price in the request for a set of regions.
1826
+ # @param [String] package_name
1827
+ # Required. The app package name.
1828
+ # @param [Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest] convert_region_prices_request_object
1829
+ # @param [String] fields
1830
+ # Selector specifying which fields to include in a partial response.
1831
+ # @param [String] quota_user
1832
+ # Available to use for quota purposes for server-side applications. Can be any
1833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1834
+ # @param [Google::Apis::RequestOptions] options
1835
+ # Request-specific options
1836
+ #
1837
+ # @yield [result, err] Result & error if block supplied
1838
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse] parsed result object
1839
+ # @yieldparam err [StandardError] error object if request failed
1840
+ #
1841
+ # @return [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse]
1842
+ #
1843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
+ def convert_monetization_region_prices(package_name, convert_region_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1847
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', options)
1848
+ command.request_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest::Representation
1849
+ command.request_object = convert_region_prices_request_object
1850
+ command.response_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse::Representation
1851
+ command.response_class = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse
1852
+ command.params['packageName'] = package_name unless package_name.nil?
1853
+ command.query['fields'] = fields unless fields.nil?
1854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1855
+ execute_or_queue_command(command, &block)
1856
+ end
1857
+
1858
+ # Refunds a user's subscription or in-app purchase order. Orders older than 1
1859
+ # year cannot be refunded.
1717
1860
  # @param [String] package_name
1718
1861
  # The package name of the application for which this subscription or in-app item
1719
1862
  # was purchased (for example, 'com.some.thing').
@@ -2382,6 +2525,145 @@ module Google
2382
2525
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2383
2526
  execute_or_queue_command(command, &block)
2384
2527
  end
2528
+
2529
+ # Grant access for a user to the given developer account.
2530
+ # @param [String] parent
2531
+ # Required. The developer account to add the user to. Format: developers/`
2532
+ # developer`
2533
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
2534
+ # @param [String] fields
2535
+ # Selector specifying which fields to include in a partial response.
2536
+ # @param [String] quota_user
2537
+ # Available to use for quota purposes for server-side applications. Can be any
2538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2539
+ # @param [Google::Apis::RequestOptions] options
2540
+ # Request-specific options
2541
+ #
2542
+ # @yield [result, err] Result & error if block supplied
2543
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
2544
+ # @yieldparam err [StandardError] error object if request failed
2545
+ #
2546
+ # @return [Google::Apis::AndroidpublisherV3::User]
2547
+ #
2548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2551
+ def create_user(parent, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2552
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/users', options)
2553
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
2554
+ command.request_object = user_object
2555
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
2556
+ command.response_class = Google::Apis::AndroidpublisherV3::User
2557
+ command.params['parent'] = parent unless parent.nil?
2558
+ command.query['fields'] = fields unless fields.nil?
2559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2560
+ execute_or_queue_command(command, &block)
2561
+ end
2562
+
2563
+ # Removes all access for the user to the given developer account.
2564
+ # @param [String] name
2565
+ # Required. The name of the user to delete. Format: developers/`developer`/users/
2566
+ # `email`
2567
+ # @param [String] fields
2568
+ # Selector specifying which fields to include in a partial response.
2569
+ # @param [String] quota_user
2570
+ # Available to use for quota purposes for server-side applications. Can be any
2571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2572
+ # @param [Google::Apis::RequestOptions] options
2573
+ # Request-specific options
2574
+ #
2575
+ # @yield [result, err] Result & error if block supplied
2576
+ # @yieldparam result [NilClass] No result returned for this method
2577
+ # @yieldparam err [StandardError] error object if request failed
2578
+ #
2579
+ # @return [void]
2580
+ #
2581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2584
+ def delete_user(name, fields: nil, quota_user: nil, options: nil, &block)
2585
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
2586
+ command.params['name'] = name unless name.nil?
2587
+ command.query['fields'] = fields unless fields.nil?
2588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2589
+ execute_or_queue_command(command, &block)
2590
+ end
2591
+
2592
+ # Lists all users with access to a developer account.
2593
+ # @param [String] parent
2594
+ # Required. The developer account to fetch users from. Format: developers/`
2595
+ # developer`
2596
+ # @param [Fixnum] page_size
2597
+ # The maximum number of results to return. This must be set to -1 to disable
2598
+ # pagination.
2599
+ # @param [String] page_token
2600
+ # A token received from a previous call to this method, in order to retrieve
2601
+ # further results.
2602
+ # @param [String] fields
2603
+ # Selector specifying which fields to include in a partial response.
2604
+ # @param [String] quota_user
2605
+ # Available to use for quota purposes for server-side applications. Can be any
2606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2607
+ # @param [Google::Apis::RequestOptions] options
2608
+ # Request-specific options
2609
+ #
2610
+ # @yield [result, err] Result & error if block supplied
2611
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListUsersResponse] parsed result object
2612
+ # @yieldparam err [StandardError] error object if request failed
2613
+ #
2614
+ # @return [Google::Apis::AndroidpublisherV3::ListUsersResponse]
2615
+ #
2616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2619
+ def list_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2620
+ command = make_simple_command(:get, 'androidpublisher/v3/{+parent}/users', options)
2621
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListUsersResponse::Representation
2622
+ command.response_class = Google::Apis::AndroidpublisherV3::ListUsersResponse
2623
+ command.params['parent'] = parent unless parent.nil?
2624
+ command.query['pageSize'] = page_size unless page_size.nil?
2625
+ command.query['pageToken'] = page_token unless page_token.nil?
2626
+ command.query['fields'] = fields unless fields.nil?
2627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2628
+ execute_or_queue_command(command, &block)
2629
+ end
2630
+
2631
+ # Updates access for the user to the developer account.
2632
+ # @param [String] name
2633
+ # Required. Resource name for this user, following the pattern "developers/`
2634
+ # developer`/users/`email`".
2635
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
2636
+ # @param [String] update_mask
2637
+ # Optional. The list of fields to be updated.
2638
+ # @param [String] fields
2639
+ # Selector specifying which fields to include in a partial response.
2640
+ # @param [String] quota_user
2641
+ # Available to use for quota purposes for server-side applications. Can be any
2642
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2643
+ # @param [Google::Apis::RequestOptions] options
2644
+ # Request-specific options
2645
+ #
2646
+ # @yield [result, err] Result & error if block supplied
2647
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
2648
+ # @yieldparam err [StandardError] error object if request failed
2649
+ #
2650
+ # @return [Google::Apis::AndroidpublisherV3::User]
2651
+ #
2652
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2653
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2654
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2655
+ def patch_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2656
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
2657
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
2658
+ command.request_object = user_object
2659
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
2660
+ command.response_class = Google::Apis::AndroidpublisherV3::User
2661
+ command.params['name'] = name unless name.nil?
2662
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2663
+ command.query['fields'] = fields unless fields.nil?
2664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2665
+ execute_or_queue_command(command, &block)
2666
+ end
2385
2667
 
2386
2668
  protected
2387
2669
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-26 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.9.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidpublisher_v3
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.13.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: