google-apis-androidpublisher_v3 0.12.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: 28d855024c7645050c23c435951a1387dd0e297da3367efccc88e78676293862
4
- data.tar.gz: f667aedadcda98532ab684a063fe625079e816d1dbd894d689aba1618e9f6d48
3
+ metadata.gz: f7e7a219d0f7ba83dae78031c1e46f36c4b648a1d0392145afc84ebfea049801
4
+ data.tar.gz: 26c3d51f2354e2459c7ef6974672c705bb0fb6da918b68bfa66b3f1858cf029c
5
5
  SHA512:
6
- metadata.gz: 318180323b20b24cc7541e6eb4f90834e243d1d348031c06e4bb6c13d9154fe33c3d8c62df4000e52e7e14a850a3c83fcd36c95f17705edd3c6f6e8b651edeb3
7
- data.tar.gz: 0ac5c23065d6c4241e0fa5bdf8ac1d1f3209f6f3aca16f768954016821bb56710f988778735889464d53775c3e9d43b874c58ba19d303029e16b78f4558db186
6
+ metadata.gz: e5305ec881247145c7a2d55f9fe869fb37587d870c4cfcbcf63bdc5399a3c497889422f266b2dea006dbff70a6c0b605990989381ed1a39c507516ffd76d782b
7
+ data.tar.gz: 9fa3d712eb7dd44f7f6a804fa7141716b53cb2cb2c214948e250e212a0e5751a7430c81f15f7ce42f2aec99b797169e2a5057b3239d045ee98315768fa92d732
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.12.0 (2021-10-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20211006
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
 
@@ -748,6 +748,38 @@ module Google
748
748
  end
749
749
  end
750
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
+
751
783
  # An uploaded image. The resource for ImagesService.
752
784
  class Image
753
785
  include Google::Apis::Core::Hashable
@@ -870,6 +902,11 @@ module Google
870
902
  # @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
871
903
  attr_accessor :listings
872
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
+
873
910
  # Package name of the parent app.
874
911
  # Corresponds to the JSON property `packageName`
875
912
  # @return [String]
@@ -903,6 +940,12 @@ module Google
903
940
  # @return [String]
904
941
  attr_accessor :subscription_period
905
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
+
906
949
  # Trial period, specified in ISO 8601 format. Acceptable values are anything
907
950
  # between P7D (seven days) and P999D (999 days).
908
951
  # Corresponds to the JSON property `trialPeriod`
@@ -919,12 +962,14 @@ module Google
919
962
  @default_price = args[:default_price] if args.key?(:default_price)
920
963
  @grace_period = args[:grace_period] if args.key?(:grace_period)
921
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)
922
966
  @package_name = args[:package_name] if args.key?(:package_name)
923
967
  @prices = args[:prices] if args.key?(:prices)
924
968
  @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
925
969
  @sku = args[:sku] if args.key?(:sku)
926
970
  @status = args[:status] if args.key?(:status)
927
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)
928
973
  @trial_period = args[:trial_period] if args.key?(:trial_period)
929
974
  end
930
975
  end
@@ -1084,6 +1129,32 @@ module Google
1084
1129
  end
1085
1130
  end
1086
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
+
1087
1158
  # A localized store listing. The resource for ListingsService.
1088
1159
  class Listing
1089
1160
  include Google::Apis::Core::Hashable
@@ -1179,6 +1250,36 @@ module Google
1179
1250
  end
1180
1251
  end
1181
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
+
1182
1283
  # Represents an amount of money with its currency type.
1183
1284
  class Money
1184
1285
  include Google::Apis::Core::Hashable
@@ -1409,6 +1510,36 @@ module Google
1409
1510
  end
1410
1511
  end
1411
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
+
1412
1543
  # An Android app review.
1413
1544
  class Review
1414
1545
  include Google::Apis::Core::Hashable
@@ -1938,6 +2069,37 @@ module Google
1938
2069
  end
1939
2070
  end
1940
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
+
1941
2103
  # Response to list previously created system APK variants.
1942
2104
  class SystemApksListResponse
1943
2105
  include Google::Apis::Core::Hashable
@@ -2152,6 +2314,64 @@ module Google
2152
2314
  end
2153
2315
  end
2154
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
+
2155
2375
  # User entry from conversation between user and developer.
2156
2376
  class UserComment
2157
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.12.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 = "20211006"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class Grant
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class Image
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -214,6 +220,12 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class ListUsersResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class Listing
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -232,6 +244,12 @@ module Google
232
244
  include Google::Apis::Core::JsonObjectSupport
233
245
  end
234
246
 
247
+ class ManagedProductTaxAndComplianceSettings
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
235
253
  class Money
236
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
255
 
@@ -262,6 +280,12 @@ module Google
262
280
  include Google::Apis::Core::JsonObjectSupport
263
281
  end
264
282
 
283
+ class RegionalTaxRateInfo
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
265
289
  class Review
266
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
291
 
@@ -334,6 +358,12 @@ module Google
334
358
  include Google::Apis::Core::JsonObjectSupport
335
359
  end
336
360
 
361
+ class SubscriptionTaxAndComplianceSettings
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
337
367
  class SystemApksListResponse
338
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
369
 
@@ -376,6 +406,12 @@ module Google
376
406
  include Google::Apis::Core::JsonObjectSupport
377
407
  end
378
408
 
409
+ class User
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
379
415
  class UserComment
380
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
417
 
@@ -629,6 +665,15 @@ module Google
629
665
  end
630
666
  end
631
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
+
632
677
  class Image
633
678
  # @private
634
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -672,6 +717,8 @@ module Google
672
717
  property :grace_period, as: 'gracePeriod'
673
718
  hash :listings, as: 'listings', class: Google::Apis::AndroidpublisherV3::InAppProductListing, decorator: Google::Apis::AndroidpublisherV3::InAppProductListing::Representation
674
719
 
720
+ property :managed_product_taxes_and_compliance_settings, as: 'managedProductTaxesAndComplianceSettings', class: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings, decorator: Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings::Representation
721
+
675
722
  property :package_name, as: 'packageName'
676
723
  hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
677
724
 
@@ -679,6 +726,8 @@ module Google
679
726
  property :sku, as: 'sku'
680
727
  property :status, as: 'status'
681
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
+
682
731
  property :trial_period, as: 'trialPeriod'
683
732
  end
684
733
  end
@@ -724,6 +773,15 @@ module Google
724
773
  end
725
774
  end
726
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
+
727
785
  class Listing
728
786
  # @private
729
787
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -752,6 +810,15 @@ module Google
752
810
  end
753
811
  end
754
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
+
755
822
  class Money
756
823
  # @private
757
824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -805,6 +872,14 @@ module Google
805
872
  end
806
873
  end
807
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
+
808
883
  class Review
809
884
  # @private
810
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -936,6 +1011,15 @@ module Google
936
1011
  end
937
1012
  end
938
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
+
939
1023
  class SystemApksListResponse
940
1024
  # @private
941
1025
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1000,6 +1084,20 @@ module Google
1000
1084
  end
1001
1085
  end
1002
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
+
1003
1101
  class UserComment
1004
1102
  # @private
1005
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.
@@ -2425,6 +2525,145 @@ module Google
2425
2525
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2426
2526
  execute_or_queue_command(command, &block)
2427
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
2428
2667
 
2429
2668
  protected
2430
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.12.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-10-11 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.12.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: