google-apis-androidpublisher_v3 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/androidpublisher_v3/classes.rb +602 -0
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +2 -2
- data/lib/google/apis/androidpublisher_v3/representations.rb +299 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +394 -4
- metadata +5 -5
@@ -417,6 +417,42 @@ module Google
|
|
417
417
|
execute_or_queue_command(command, &block)
|
418
418
|
end
|
419
419
|
|
420
|
+
# Gets country availability.
|
421
|
+
# @param [String] package_name
|
422
|
+
# Package name of the app.
|
423
|
+
# @param [String] edit_id
|
424
|
+
# Identifier of the edit.
|
425
|
+
# @param [String] track
|
426
|
+
# The track to read from.
|
427
|
+
# @param [String] fields
|
428
|
+
# Selector specifying which fields to include in a partial response.
|
429
|
+
# @param [String] quota_user
|
430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
432
|
+
# @param [Google::Apis::RequestOptions] options
|
433
|
+
# Request-specific options
|
434
|
+
#
|
435
|
+
# @yield [result, err] Result & error if block supplied
|
436
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::TrackCountryAvailability] parsed result object
|
437
|
+
# @yieldparam err [StandardError] error object if request failed
|
438
|
+
#
|
439
|
+
# @return [Google::Apis::AndroidpublisherV3::TrackCountryAvailability]
|
440
|
+
#
|
441
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
442
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
443
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
444
|
+
def get_edit_countryavailability(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block)
|
445
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}', options)
|
446
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::TrackCountryAvailability::Representation
|
447
|
+
command.response_class = Google::Apis::AndroidpublisherV3::TrackCountryAvailability
|
448
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
449
|
+
command.params['editId'] = edit_id unless edit_id.nil?
|
450
|
+
command.params['track'] = track unless track.nil?
|
451
|
+
command.query['fields'] = fields unless fields.nil?
|
452
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
453
|
+
execute_or_queue_command(command, &block)
|
454
|
+
end
|
455
|
+
|
420
456
|
# Uploads a new deobfuscation file and attaches to the specified APK.
|
421
457
|
# @param [String] package_name
|
422
458
|
# Unique identifier for the Android app.
|
@@ -1402,6 +1438,182 @@ module Google
|
|
1402
1438
|
execute_or_queue_command(command, &block)
|
1403
1439
|
end
|
1404
1440
|
|
1441
|
+
# Downloads a single signed APK generated from an app bundle.
|
1442
|
+
# @param [String] package_name
|
1443
|
+
# Package name of the app.
|
1444
|
+
# @param [Fixnum] version_code
|
1445
|
+
# Version code of the app bundle.
|
1446
|
+
# @param [String] download_id
|
1447
|
+
# Download ID, which uniquely identifies the APK to download. Can be obtained
|
1448
|
+
# from the response of `generatedapks.list` method.
|
1449
|
+
# @param [String] fields
|
1450
|
+
# Selector specifying which fields to include in a partial response.
|
1451
|
+
# @param [String] quota_user
|
1452
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1453
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1454
|
+
# @param [IO, String] download_dest
|
1455
|
+
# IO stream or filename to receive content download
|
1456
|
+
# @param [Google::Apis::RequestOptions] options
|
1457
|
+
# Request-specific options
|
1458
|
+
#
|
1459
|
+
# @yield [result, err] Result & error if block supplied
|
1460
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1461
|
+
# @yieldparam err [StandardError] error object if request failed
|
1462
|
+
#
|
1463
|
+
# @return [void]
|
1464
|
+
#
|
1465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1468
|
+
def download_generatedapk(package_name, version_code, download_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
|
1469
|
+
if download_dest.nil?
|
1470
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download', options)
|
1471
|
+
else
|
1472
|
+
command = make_download_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download', options)
|
1473
|
+
command.download_dest = download_dest
|
1474
|
+
end
|
1475
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
1476
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
1477
|
+
command.params['downloadId'] = download_id unless download_id.nil?
|
1478
|
+
command.query['fields'] = fields unless fields.nil?
|
1479
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1480
|
+
execute_or_queue_command(command, &block)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Returns download metadata for all APKs that were generated from a given app
|
1484
|
+
# bundle.
|
1485
|
+
# @param [String] package_name
|
1486
|
+
# Package name of the app.
|
1487
|
+
# @param [Fixnum] version_code
|
1488
|
+
# Version code of the app bundle.
|
1489
|
+
# @param [String] fields
|
1490
|
+
# Selector specifying which fields to include in a partial response.
|
1491
|
+
# @param [String] quota_user
|
1492
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1493
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1494
|
+
# @param [Google::Apis::RequestOptions] options
|
1495
|
+
# Request-specific options
|
1496
|
+
#
|
1497
|
+
# @yield [result, err] Result & error if block supplied
|
1498
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::GeneratedApksListResponse] parsed result object
|
1499
|
+
# @yieldparam err [StandardError] error object if request failed
|
1500
|
+
#
|
1501
|
+
# @return [Google::Apis::AndroidpublisherV3::GeneratedApksListResponse]
|
1502
|
+
#
|
1503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1506
|
+
def list_generatedapks(package_name, version_code, fields: nil, quota_user: nil, options: nil, &block)
|
1507
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}', options)
|
1508
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::GeneratedApksListResponse::Representation
|
1509
|
+
command.response_class = Google::Apis::AndroidpublisherV3::GeneratedApksListResponse
|
1510
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
1511
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
1512
|
+
command.query['fields'] = fields unless fields.nil?
|
1513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1514
|
+
execute_or_queue_command(command, &block)
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
# Grant access for a user to the given package.
|
1518
|
+
# @param [String] parent
|
1519
|
+
# Required. The user which needs permission. Format: developers/`developer`/
|
1520
|
+
# users/`user`
|
1521
|
+
# @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
|
1522
|
+
# @param [String] fields
|
1523
|
+
# Selector specifying which fields to include in a partial response.
|
1524
|
+
# @param [String] quota_user
|
1525
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1526
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1527
|
+
# @param [Google::Apis::RequestOptions] options
|
1528
|
+
# Request-specific options
|
1529
|
+
#
|
1530
|
+
# @yield [result, err] Result & error if block supplied
|
1531
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
|
1532
|
+
# @yieldparam err [StandardError] error object if request failed
|
1533
|
+
#
|
1534
|
+
# @return [Google::Apis::AndroidpublisherV3::Grant]
|
1535
|
+
#
|
1536
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1537
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1538
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1539
|
+
def create_grant(parent, grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1540
|
+
command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/grants', options)
|
1541
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
|
1542
|
+
command.request_object = grant_object
|
1543
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
|
1544
|
+
command.response_class = Google::Apis::AndroidpublisherV3::Grant
|
1545
|
+
command.params['parent'] = parent unless parent.nil?
|
1546
|
+
command.query['fields'] = fields unless fields.nil?
|
1547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1548
|
+
execute_or_queue_command(command, &block)
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
# Removes all access for the user to the given package or developer account.
|
1552
|
+
# @param [String] name
|
1553
|
+
# Required. The name of the grant to delete. Format: developers/`developer`/
|
1554
|
+
# users/`email`/grants/`package_name`
|
1555
|
+
# @param [String] fields
|
1556
|
+
# Selector specifying which fields to include in a partial response.
|
1557
|
+
# @param [String] quota_user
|
1558
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1559
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1560
|
+
# @param [Google::Apis::RequestOptions] options
|
1561
|
+
# Request-specific options
|
1562
|
+
#
|
1563
|
+
# @yield [result, err] Result & error if block supplied
|
1564
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1565
|
+
# @yieldparam err [StandardError] error object if request failed
|
1566
|
+
#
|
1567
|
+
# @return [void]
|
1568
|
+
#
|
1569
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1570
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1571
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1572
|
+
def delete_grant(name, fields: nil, quota_user: nil, options: nil, &block)
|
1573
|
+
command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
|
1574
|
+
command.params['name'] = name unless name.nil?
|
1575
|
+
command.query['fields'] = fields unless fields.nil?
|
1576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1577
|
+
execute_or_queue_command(command, &block)
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
# Updates access for the user to the given package.
|
1581
|
+
# @param [String] name
|
1582
|
+
# Required. Resource name for this grant, following the pattern "developers/`
|
1583
|
+
# developer`/users/`email`/grants/`package_name`".
|
1584
|
+
# @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
|
1585
|
+
# @param [String] update_mask
|
1586
|
+
# Optional. The list of fields to be updated.
|
1587
|
+
# @param [String] fields
|
1588
|
+
# Selector specifying which fields to include in a partial response.
|
1589
|
+
# @param [String] quota_user
|
1590
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1591
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1592
|
+
# @param [Google::Apis::RequestOptions] options
|
1593
|
+
# Request-specific options
|
1594
|
+
#
|
1595
|
+
# @yield [result, err] Result & error if block supplied
|
1596
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
|
1597
|
+
# @yieldparam err [StandardError] error object if request failed
|
1598
|
+
#
|
1599
|
+
# @return [Google::Apis::AndroidpublisherV3::Grant]
|
1600
|
+
#
|
1601
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1602
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1603
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1604
|
+
def patch_grant(name, grant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1605
|
+
command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
|
1606
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
|
1607
|
+
command.request_object = grant_object
|
1608
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
|
1609
|
+
command.response_class = Google::Apis::AndroidpublisherV3::Grant
|
1610
|
+
command.params['name'] = name unless name.nil?
|
1611
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1612
|
+
command.query['fields'] = fields unless fields.nil?
|
1613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1614
|
+
execute_or_queue_command(command, &block)
|
1615
|
+
end
|
1616
|
+
|
1405
1617
|
# Deletes an in-app product (i.e. a managed product or a subscriptions).
|
1406
1618
|
# @param [String] package_name
|
1407
1619
|
# Package name of the app.
|
@@ -1504,13 +1716,17 @@ module Google
|
|
1504
1716
|
execute_or_queue_command(command, &block)
|
1505
1717
|
end
|
1506
1718
|
|
1507
|
-
# Lists all in-app products - both managed products and subscriptions.
|
1719
|
+
# Lists all in-app products - both managed products and subscriptions. If an app
|
1720
|
+
# has a large number of in-app products, the response may be paginated. In this
|
1721
|
+
# case the response field `tokenPagination.nextPageToken` will be set and the
|
1722
|
+
# caller should provide its value as a `token` request parameter to retrieve the
|
1723
|
+
# next page.
|
1508
1724
|
# @param [String] package_name
|
1509
1725
|
# Package name of the app.
|
1510
1726
|
# @param [Fixnum] max_results
|
1511
|
-
#
|
1727
|
+
# Deprecated and ignored. The page size is determined by the server.
|
1512
1728
|
# @param [Fixnum] start_index
|
1513
|
-
#
|
1729
|
+
# Deprecated and ignored. Set the `token` parameter to rertieve the next page.
|
1514
1730
|
# @param [String] token
|
1515
1731
|
# Pagination token. If empty, list starts at the first product.
|
1516
1732
|
# @param [String] fields
|
@@ -1717,7 +1933,42 @@ module Google
|
|
1717
1933
|
execute_or_queue_command(command, &block)
|
1718
1934
|
end
|
1719
1935
|
|
1720
|
-
#
|
1936
|
+
# Calculates the region prices, using today's exchange rate and country-specific
|
1937
|
+
# pricing patterns, based on the price in the request for a set of regions.
|
1938
|
+
# @param [String] package_name
|
1939
|
+
# Required. The app package name.
|
1940
|
+
# @param [Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest] convert_region_prices_request_object
|
1941
|
+
# @param [String] fields
|
1942
|
+
# Selector specifying which fields to include in a partial response.
|
1943
|
+
# @param [String] quota_user
|
1944
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1945
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1946
|
+
# @param [Google::Apis::RequestOptions] options
|
1947
|
+
# Request-specific options
|
1948
|
+
#
|
1949
|
+
# @yield [result, err] Result & error if block supplied
|
1950
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse] parsed result object
|
1951
|
+
# @yieldparam err [StandardError] error object if request failed
|
1952
|
+
#
|
1953
|
+
# @return [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse]
|
1954
|
+
#
|
1955
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1956
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1957
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1958
|
+
def convert_monetization_region_prices(package_name, convert_region_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1959
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', options)
|
1960
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest::Representation
|
1961
|
+
command.request_object = convert_region_prices_request_object
|
1962
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse::Representation
|
1963
|
+
command.response_class = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse
|
1964
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
1965
|
+
command.query['fields'] = fields unless fields.nil?
|
1966
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1967
|
+
execute_or_queue_command(command, &block)
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
# Refunds a user's subscription or in-app purchase order. Orders older than 1
|
1971
|
+
# year cannot be refunded.
|
1721
1972
|
# @param [String] package_name
|
1722
1973
|
# The package name of the application for which this subscription or in-app item
|
1723
1974
|
# was purchased (for example, 'com.some.thing').
|
@@ -2386,6 +2637,145 @@ module Google
|
|
2386
2637
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2387
2638
|
execute_or_queue_command(command, &block)
|
2388
2639
|
end
|
2640
|
+
|
2641
|
+
# Grant access for a user to the given developer account.
|
2642
|
+
# @param [String] parent
|
2643
|
+
# Required. The developer account to add the user to. Format: developers/`
|
2644
|
+
# developer`
|
2645
|
+
# @param [Google::Apis::AndroidpublisherV3::User] user_object
|
2646
|
+
# @param [String] fields
|
2647
|
+
# Selector specifying which fields to include in a partial response.
|
2648
|
+
# @param [String] quota_user
|
2649
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2650
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2651
|
+
# @param [Google::Apis::RequestOptions] options
|
2652
|
+
# Request-specific options
|
2653
|
+
#
|
2654
|
+
# @yield [result, err] Result & error if block supplied
|
2655
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
|
2656
|
+
# @yieldparam err [StandardError] error object if request failed
|
2657
|
+
#
|
2658
|
+
# @return [Google::Apis::AndroidpublisherV3::User]
|
2659
|
+
#
|
2660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2663
|
+
def create_user(parent, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2664
|
+
command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/users', options)
|
2665
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
|
2666
|
+
command.request_object = user_object
|
2667
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
|
2668
|
+
command.response_class = Google::Apis::AndroidpublisherV3::User
|
2669
|
+
command.params['parent'] = parent unless parent.nil?
|
2670
|
+
command.query['fields'] = fields unless fields.nil?
|
2671
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2672
|
+
execute_or_queue_command(command, &block)
|
2673
|
+
end
|
2674
|
+
|
2675
|
+
# Removes all access for the user to the given developer account.
|
2676
|
+
# @param [String] name
|
2677
|
+
# Required. The name of the user to delete. Format: developers/`developer`/users/
|
2678
|
+
# `email`
|
2679
|
+
# @param [String] fields
|
2680
|
+
# Selector specifying which fields to include in a partial response.
|
2681
|
+
# @param [String] quota_user
|
2682
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2683
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2684
|
+
# @param [Google::Apis::RequestOptions] options
|
2685
|
+
# Request-specific options
|
2686
|
+
#
|
2687
|
+
# @yield [result, err] Result & error if block supplied
|
2688
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2689
|
+
# @yieldparam err [StandardError] error object if request failed
|
2690
|
+
#
|
2691
|
+
# @return [void]
|
2692
|
+
#
|
2693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2696
|
+
def delete_user(name, fields: nil, quota_user: nil, options: nil, &block)
|
2697
|
+
command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
|
2698
|
+
command.params['name'] = name unless name.nil?
|
2699
|
+
command.query['fields'] = fields unless fields.nil?
|
2700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2701
|
+
execute_or_queue_command(command, &block)
|
2702
|
+
end
|
2703
|
+
|
2704
|
+
# Lists all users with access to a developer account.
|
2705
|
+
# @param [String] parent
|
2706
|
+
# Required. The developer account to fetch users from. Format: developers/`
|
2707
|
+
# developer`
|
2708
|
+
# @param [Fixnum] page_size
|
2709
|
+
# The maximum number of results to return. This must be set to -1 to disable
|
2710
|
+
# pagination.
|
2711
|
+
# @param [String] page_token
|
2712
|
+
# A token received from a previous call to this method, in order to retrieve
|
2713
|
+
# further results.
|
2714
|
+
# @param [String] fields
|
2715
|
+
# Selector specifying which fields to include in a partial response.
|
2716
|
+
# @param [String] quota_user
|
2717
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2718
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2719
|
+
# @param [Google::Apis::RequestOptions] options
|
2720
|
+
# Request-specific options
|
2721
|
+
#
|
2722
|
+
# @yield [result, err] Result & error if block supplied
|
2723
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::ListUsersResponse] parsed result object
|
2724
|
+
# @yieldparam err [StandardError] error object if request failed
|
2725
|
+
#
|
2726
|
+
# @return [Google::Apis::AndroidpublisherV3::ListUsersResponse]
|
2727
|
+
#
|
2728
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2729
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2730
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2731
|
+
def list_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2732
|
+
command = make_simple_command(:get, 'androidpublisher/v3/{+parent}/users', options)
|
2733
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::ListUsersResponse::Representation
|
2734
|
+
command.response_class = Google::Apis::AndroidpublisherV3::ListUsersResponse
|
2735
|
+
command.params['parent'] = parent unless parent.nil?
|
2736
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2737
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2738
|
+
command.query['fields'] = fields unless fields.nil?
|
2739
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2740
|
+
execute_or_queue_command(command, &block)
|
2741
|
+
end
|
2742
|
+
|
2743
|
+
# Updates access for the user to the developer account.
|
2744
|
+
# @param [String] name
|
2745
|
+
# Required. Resource name for this user, following the pattern "developers/`
|
2746
|
+
# developer`/users/`email`".
|
2747
|
+
# @param [Google::Apis::AndroidpublisherV3::User] user_object
|
2748
|
+
# @param [String] update_mask
|
2749
|
+
# Optional. The list of fields to be updated.
|
2750
|
+
# @param [String] fields
|
2751
|
+
# Selector specifying which fields to include in a partial response.
|
2752
|
+
# @param [String] quota_user
|
2753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2755
|
+
# @param [Google::Apis::RequestOptions] options
|
2756
|
+
# Request-specific options
|
2757
|
+
#
|
2758
|
+
# @yield [result, err] Result & error if block supplied
|
2759
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
|
2760
|
+
# @yieldparam err [StandardError] error object if request failed
|
2761
|
+
#
|
2762
|
+
# @return [Google::Apis::AndroidpublisherV3::User]
|
2763
|
+
#
|
2764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2767
|
+
def patch_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2768
|
+
command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
|
2769
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
|
2770
|
+
command.request_object = user_object
|
2771
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
|
2772
|
+
command.response_class = Google::Apis::AndroidpublisherV3::User
|
2773
|
+
command.params['name'] = name unless name.nil?
|
2774
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2775
|
+
command.query['fields'] = fields unless fields.nil?
|
2776
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2777
|
+
execute_or_queue_command(command, &block)
|
2778
|
+
end
|
2389
2779
|
|
2390
2780
|
protected
|
2391
2781
|
|
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.
|
4
|
+
version: 0.14.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-
|
11
|
+
date: 2021-12-06 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.14.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:
|