google-apis-androidmanagement_v1 0.66.0 → 0.71.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 +23 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/androidmanagement_v1/classes.rb +257 -9
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +77 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +111 -34
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b49fdabeb61f79f088ee6a0ae5563a9cf69160691f2a32eb52499360bbf5083
|
4
|
+
data.tar.gz: 1776f8c1dc2cdd014e544cfa8a941c8a2ecd360456840560f75afd54d46d38fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d45d10a2720a9984b341b5e41246b47eab0eec375f93792b8914f0efebc36642a4c6cae60484c05d95d98715b352a30e17e017d1412f991395c4dbdd0d91baf8
|
7
|
+
data.tar.gz: 6e26cbde2322d1af9e36e93a09392efef7eb718ef9b1178fbb30cfe8d66f846f1200733137274a296b1415cd51c75fe8ac319fe9a261dc00a70bbdbcee5bba4f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Release history for google-apis-androidmanagement_v1
|
2
2
|
|
3
|
+
### v0.71.0 (2024-02-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240213
|
6
|
+
* Regenerated using generator version 0.14.0
|
7
|
+
|
8
|
+
### v0.70.0 (2024-02-18)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240207
|
11
|
+
|
12
|
+
### v0.69.0 (2024-02-11)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20240129
|
15
|
+
|
16
|
+
### v0.68.0 (2024-01-28)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20240115
|
19
|
+
* Regenerated using generator version 0.13.1
|
20
|
+
|
21
|
+
### v0.67.0 (2024-01-22)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20240108
|
24
|
+
* Regenerated using generator version 0.13.0
|
25
|
+
|
3
26
|
### v0.66.0 (2023-12-03)
|
4
27
|
|
5
28
|
* Regenerated from discovery document revision 20231120
|
data/OVERVIEW.md
CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/android/management) ma
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby 2.
|
86
|
+
This library is supported on Ruby 2.7+.
|
87
87
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
90
90
|
## License
|
91
91
|
|
@@ -55,8 +55,7 @@ module Google
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
#
|
59
|
-
# posture of a device, we don't recommend overriding any of the default values.
|
58
|
+
# Advanced security settings. In most cases, setting these is not needed.
|
60
59
|
class AdvancedSecurityOverrides
|
61
60
|
include Google::Apis::Core::Hashable
|
62
61
|
|
@@ -85,6 +84,13 @@ module Google
|
|
85
84
|
# @return [String]
|
86
85
|
attr_accessor :google_play_protect_verify_apps
|
87
86
|
|
87
|
+
# Optional. Controls Memory Tagging Extension (MTE) (https://source.android.com/
|
88
|
+
# docs/security/test/memory-safety/arm-mte) on the device. The device needs to
|
89
|
+
# be rebooted to apply changes to the MTE policy.
|
90
|
+
# Corresponds to the JSON property `mtePolicy`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :mte_policy
|
93
|
+
|
88
94
|
# Personal apps that can read work profile notifications using a
|
89
95
|
# NotificationListenerService (https://developer.android.com/reference/android/
|
90
96
|
# service/notification/NotificationListenerService). By default, no personal
|
@@ -109,6 +115,7 @@ module Google
|
|
109
115
|
@common_criteria_mode = args[:common_criteria_mode] if args.key?(:common_criteria_mode)
|
110
116
|
@developer_settings = args[:developer_settings] if args.key?(:developer_settings)
|
111
117
|
@google_play_protect_verify_apps = args[:google_play_protect_verify_apps] if args.key?(:google_play_protect_verify_apps)
|
118
|
+
@mte_policy = args[:mte_policy] if args.key?(:mte_policy)
|
112
119
|
@personal_apps_that_can_read_work_notifications = args[:personal_apps_that_can_read_work_notifications] if args.key?(:personal_apps_that_can_read_work_notifications)
|
113
120
|
@untrusted_apps_policy = args[:untrusted_apps_policy] if args.key?(:untrusted_apps_policy)
|
114
121
|
end
|
@@ -560,6 +567,12 @@ module Google
|
|
560
567
|
# @return [String]
|
561
568
|
attr_accessor :connected_work_and_personal_app
|
562
569
|
|
570
|
+
# Optional. Whether the app is allowed to act as a credential provider on
|
571
|
+
# Android 14 and above.
|
572
|
+
# Corresponds to the JSON property `credentialProviderPolicy`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :credential_provider_policy
|
575
|
+
|
563
576
|
# The default policy for all permissions requested by the app. If specified,
|
564
577
|
# this overrides the policy-level default_permission_policy which applies to all
|
565
578
|
# apps. It does not override the permission_grants which applies to all apps.
|
@@ -592,6 +605,21 @@ module Google
|
|
592
605
|
# @return [Google::Apis::AndroidmanagementV1::ExtensionConfig]
|
593
606
|
attr_accessor :extension_config
|
594
607
|
|
608
|
+
# Optional. The constraints for installing the app. You can specify a maximum of
|
609
|
+
# one InstallConstraint. Multiple constraints are rejected.
|
610
|
+
# Corresponds to the JSON property `installConstraint`
|
611
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::InstallConstraint>]
|
612
|
+
attr_accessor :install_constraint
|
613
|
+
|
614
|
+
# Optional. Amongst apps with installType set to: FORCE_INSTALLED
|
615
|
+
# PREINSTALLEDthis controls the relative priority of installation. A value of 0 (
|
616
|
+
# default) means this app has no priority over other apps. For values between 1
|
617
|
+
# and 10,000, a lower value means a higher priority. Values outside of the range
|
618
|
+
# 0 to 10,000 inclusive are rejected.
|
619
|
+
# Corresponds to the JSON property `installPriority`
|
620
|
+
# @return [Fixnum]
|
621
|
+
attr_accessor :install_priority
|
622
|
+
|
595
623
|
# The type of installation to perform.
|
596
624
|
# Corresponds to the JSON property `installType`
|
597
625
|
# @return [String]
|
@@ -659,10 +687,13 @@ module Google
|
|
659
687
|
@always_on_vpn_lockdown_exemption = args[:always_on_vpn_lockdown_exemption] if args.key?(:always_on_vpn_lockdown_exemption)
|
660
688
|
@auto_update_mode = args[:auto_update_mode] if args.key?(:auto_update_mode)
|
661
689
|
@connected_work_and_personal_app = args[:connected_work_and_personal_app] if args.key?(:connected_work_and_personal_app)
|
690
|
+
@credential_provider_policy = args[:credential_provider_policy] if args.key?(:credential_provider_policy)
|
662
691
|
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
|
663
692
|
@delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
|
664
693
|
@disabled = args[:disabled] if args.key?(:disabled)
|
665
694
|
@extension_config = args[:extension_config] if args.key?(:extension_config)
|
695
|
+
@install_constraint = args[:install_constraint] if args.key?(:install_constraint)
|
696
|
+
@install_priority = args[:install_priority] if args.key?(:install_priority)
|
666
697
|
@install_type = args[:install_type] if args.key?(:install_type)
|
667
698
|
@lock_task_allowed = args[:lock_task_allowed] if args.key?(:lock_task_allowed)
|
668
699
|
@managed_configuration = args[:managed_configuration] if args.key?(:managed_configuration)
|
@@ -1527,6 +1558,12 @@ module Google
|
|
1527
1558
|
# @return [Array<Google::Apis::AndroidmanagementV1::DisplayProp>]
|
1528
1559
|
attr_accessor :displays
|
1529
1560
|
|
1561
|
+
# Information related to whether this device was migrated from being managed by
|
1562
|
+
# another Device Policy Controller (DPC).
|
1563
|
+
# Corresponds to the JSON property `dpcMigrationInfo`
|
1564
|
+
# @return [Google::Apis::AndroidmanagementV1::DpcMigrationInfo]
|
1565
|
+
attr_accessor :dpc_migration_info
|
1566
|
+
|
1530
1567
|
# The time of device enrollment.
|
1531
1568
|
# Corresponds to the JSON property `enrollmentTime`
|
1532
1569
|
# @return [String]
|
@@ -1580,7 +1617,8 @@ module Google
|
|
1580
1617
|
|
1581
1618
|
# Events related to memory and storage measurements in chronological order. This
|
1582
1619
|
# information is only available if memoryInfoEnabled is true in the device's
|
1583
|
-
# policy.
|
1620
|
+
# policy.Events are retained for a certain period of time and old events are
|
1621
|
+
# deleted.
|
1584
1622
|
# Corresponds to the JSON property `memoryEvents`
|
1585
1623
|
# @return [Array<Google::Apis::AndroidmanagementV1::MemoryEvent>]
|
1586
1624
|
attr_accessor :memory_events
|
@@ -1695,6 +1733,7 @@ module Google
|
|
1695
1733
|
@device_settings = args[:device_settings] if args.key?(:device_settings)
|
1696
1734
|
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
|
1697
1735
|
@displays = args[:displays] if args.key?(:displays)
|
1736
|
+
@dpc_migration_info = args[:dpc_migration_info] if args.key?(:dpc_migration_info)
|
1698
1737
|
@enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
|
1699
1738
|
@enrollment_token_data = args[:enrollment_token_data] if args.key?(:enrollment_token_data)
|
1700
1739
|
@enrollment_token_name = args[:enrollment_token_name] if args.key?(:enrollment_token_name)
|
@@ -1779,6 +1818,12 @@ module Google
|
|
1779
1818
|
# @return [String]
|
1780
1819
|
attr_accessor :cellular_two_g_state
|
1781
1820
|
|
1821
|
+
# The minimum required security level of Wi-Fi networks that the device can
|
1822
|
+
# connect to.
|
1823
|
+
# Corresponds to the JSON property `minimumWifiSecurityLevel`
|
1824
|
+
# @return [String]
|
1825
|
+
attr_accessor :minimum_wifi_security_level
|
1826
|
+
|
1782
1827
|
# Controls the state of the ultra wideband setting and whether the user can
|
1783
1828
|
# toggle it on or off.
|
1784
1829
|
# Corresponds to the JSON property `ultraWidebandState`
|
@@ -1798,6 +1843,7 @@ module Google
|
|
1798
1843
|
def update!(**args)
|
1799
1844
|
@airplane_mode_state = args[:airplane_mode_state] if args.key?(:airplane_mode_state)
|
1800
1845
|
@cellular_two_g_state = args[:cellular_two_g_state] if args.key?(:cellular_two_g_state)
|
1846
|
+
@minimum_wifi_security_level = args[:minimum_wifi_security_level] if args.key?(:minimum_wifi_security_level)
|
1801
1847
|
@ultra_wideband_state = args[:ultra_wideband_state] if args.key?(:ultra_wideband_state)
|
1802
1848
|
@wifi_state = args[:wifi_state] if args.key?(:wifi_state)
|
1803
1849
|
end
|
@@ -1960,6 +2006,34 @@ module Google
|
|
1960
2006
|
end
|
1961
2007
|
end
|
1962
2008
|
|
2009
|
+
# Information related to whether this device was migrated from being managed by
|
2010
|
+
# another Device Policy Controller (DPC).
|
2011
|
+
class DpcMigrationInfo
|
2012
|
+
include Google::Apis::Core::Hashable
|
2013
|
+
|
2014
|
+
# Output only. If this device was migrated from another DPC, the additionalData
|
2015
|
+
# field of the migration token is populated here.
|
2016
|
+
# Corresponds to the JSON property `additionalData`
|
2017
|
+
# @return [String]
|
2018
|
+
attr_accessor :additional_data
|
2019
|
+
|
2020
|
+
# Output only. If this device was migrated from another DPC, this is its package
|
2021
|
+
# name. Not populated otherwise.
|
2022
|
+
# Corresponds to the JSON property `previousDpc`
|
2023
|
+
# @return [String]
|
2024
|
+
attr_accessor :previous_dpc
|
2025
|
+
|
2026
|
+
def initialize(**args)
|
2027
|
+
update!(**args)
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
# Update properties of this object
|
2031
|
+
def update!(**args)
|
2032
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
2033
|
+
@previous_dpc = args[:previous_dpc] if args.key?(:previous_dpc)
|
2034
|
+
end
|
2035
|
+
end
|
2036
|
+
|
1963
2037
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1964
2038
|
# messages in your APIs. A typical example is to use it as the request or the
|
1965
2039
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -2509,6 +2583,40 @@ module Google
|
|
2509
2583
|
end
|
2510
2584
|
end
|
2511
2585
|
|
2586
|
+
# Amongst apps with InstallType set to: FORCE_INSTALLED PREINSTALLEDthis defines
|
2587
|
+
# a set of restrictions for the app installation. At least one of the fields
|
2588
|
+
# must be set. When multiple fields are set, then all the constraints need to be
|
2589
|
+
# satisfied for the app to be installed.
|
2590
|
+
class InstallConstraint
|
2591
|
+
include Google::Apis::Core::Hashable
|
2592
|
+
|
2593
|
+
# Optional. Charging constraint.
|
2594
|
+
# Corresponds to the JSON property `chargingConstraint`
|
2595
|
+
# @return [String]
|
2596
|
+
attr_accessor :charging_constraint
|
2597
|
+
|
2598
|
+
# Optional. Device idle constraint.
|
2599
|
+
# Corresponds to the JSON property `deviceIdleConstraint`
|
2600
|
+
# @return [String]
|
2601
|
+
attr_accessor :device_idle_constraint
|
2602
|
+
|
2603
|
+
# Optional. Network type constraint.
|
2604
|
+
# Corresponds to the JSON property `networkTypeConstraint`
|
2605
|
+
# @return [String]
|
2606
|
+
attr_accessor :network_type_constraint
|
2607
|
+
|
2608
|
+
def initialize(**args)
|
2609
|
+
update!(**args)
|
2610
|
+
end
|
2611
|
+
|
2612
|
+
# Update properties of this object
|
2613
|
+
def update!(**args)
|
2614
|
+
@charging_constraint = args[:charging_constraint] if args.key?(:charging_constraint)
|
2615
|
+
@device_idle_constraint = args[:device_idle_constraint] if args.key?(:device_idle_constraint)
|
2616
|
+
@network_type_constraint = args[:network_type_constraint] if args.key?(:network_type_constraint)
|
2617
|
+
end
|
2618
|
+
end
|
2619
|
+
|
2512
2620
|
# Response on issuing a command. This is currently empty as a placeholder.
|
2513
2621
|
class IssueCommandResponse
|
2514
2622
|
include Google::Apis::Core::Hashable
|
@@ -2908,6 +3016,32 @@ module Google
|
|
2908
3016
|
end
|
2909
3017
|
end
|
2910
3018
|
|
3019
|
+
# Response to a request to list migration tokens for a given enterprise.
|
3020
|
+
class ListMigrationTokensResponse
|
3021
|
+
include Google::Apis::Core::Hashable
|
3022
|
+
|
3023
|
+
# The migration tokens from the specified enterprise.
|
3024
|
+
# Corresponds to the JSON property `migrationTokens`
|
3025
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::MigrationToken>]
|
3026
|
+
attr_accessor :migration_tokens
|
3027
|
+
|
3028
|
+
# A token, which can be sent as page_token to retrieve the next page. If this
|
3029
|
+
# field is omitted, there are no subsequent pages.
|
3030
|
+
# Corresponds to the JSON property `nextPageToken`
|
3031
|
+
# @return [String]
|
3032
|
+
attr_accessor :next_page_token
|
3033
|
+
|
3034
|
+
def initialize(**args)
|
3035
|
+
update!(**args)
|
3036
|
+
end
|
3037
|
+
|
3038
|
+
# Update properties of this object
|
3039
|
+
def update!(**args)
|
3040
|
+
@migration_tokens = args[:migration_tokens] if args.key?(:migration_tokens)
|
3041
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3042
|
+
end
|
3043
|
+
end
|
3044
|
+
|
2911
3045
|
# The response message for Operations.ListOperations.
|
2912
3046
|
class ListOperationsResponse
|
2913
3047
|
include Google::Apis::Core::Hashable
|
@@ -3252,7 +3386,8 @@ module Google
|
|
3252
3386
|
end
|
3253
3387
|
end
|
3254
3388
|
|
3255
|
-
# An event related to memory and storage measurements.
|
3389
|
+
# An event related to memory and storage measurements.To distinguish between new
|
3390
|
+
# and old events, we recommend using the createTime field.
|
3256
3391
|
class MemoryEvent
|
3257
3392
|
include Google::Apis::Core::Hashable
|
3258
3393
|
|
@@ -3309,6 +3444,105 @@ module Google
|
|
3309
3444
|
end
|
3310
3445
|
end
|
3311
3446
|
|
3447
|
+
# A token to initiate the migration of a device from being managed by a third-
|
3448
|
+
# party DPC to being managed by Android Management API. A migration token is
|
3449
|
+
# valid only for a single device.
|
3450
|
+
class MigrationToken
|
3451
|
+
include Google::Apis::Core::Hashable
|
3452
|
+
|
3453
|
+
# Immutable. Optional EMM-specified additional data. Once the device is migrated
|
3454
|
+
# this will be populated in the migrationAdditionalData field of the Device
|
3455
|
+
# resource. This must be at most 1024 characters.
|
3456
|
+
# Corresponds to the JSON property `additionalData`
|
3457
|
+
# @return [String]
|
3458
|
+
attr_accessor :additional_data
|
3459
|
+
|
3460
|
+
# Output only. Time when this migration token was created.
|
3461
|
+
# Corresponds to the JSON property `createTime`
|
3462
|
+
# @return [String]
|
3463
|
+
attr_accessor :create_time
|
3464
|
+
|
3465
|
+
# Output only. Once this migration token is used to migrate a device, the name
|
3466
|
+
# of the resulting Device resource will be populated here, in the form
|
3467
|
+
# enterprises/`enterprise`/devices/`device`.
|
3468
|
+
# Corresponds to the JSON property `device`
|
3469
|
+
# @return [String]
|
3470
|
+
attr_accessor :device
|
3471
|
+
|
3472
|
+
# Required. Immutable. The id of the device, as in the Play EMM API. This
|
3473
|
+
# corresponds to the deviceId parameter in Play EMM API's Devices.get (https://
|
3474
|
+
# developers.google.com/android/work/play/emm-api/v1/devices/get#parameters)
|
3475
|
+
# call.
|
3476
|
+
# Corresponds to the JSON property `deviceId`
|
3477
|
+
# @return [String]
|
3478
|
+
attr_accessor :device_id
|
3479
|
+
|
3480
|
+
# Immutable. The time when this migration token expires. This can be at most
|
3481
|
+
# seven days from the time of creation. The migration token is deleted seven
|
3482
|
+
# days after it expires.
|
3483
|
+
# Corresponds to the JSON property `expireTime`
|
3484
|
+
# @return [String]
|
3485
|
+
attr_accessor :expire_time
|
3486
|
+
|
3487
|
+
# Required. Immutable. The management mode of the device or profile being
|
3488
|
+
# migrated.
|
3489
|
+
# Corresponds to the JSON property `managementMode`
|
3490
|
+
# @return [String]
|
3491
|
+
attr_accessor :management_mode
|
3492
|
+
|
3493
|
+
# Output only. The name of the migration token, which is generated by the server
|
3494
|
+
# during creation, in the form enterprises/`enterprise`/migrationTokens/`
|
3495
|
+
# migration_token`.
|
3496
|
+
# Corresponds to the JSON property `name`
|
3497
|
+
# @return [String]
|
3498
|
+
attr_accessor :name
|
3499
|
+
|
3500
|
+
# Required. Immutable. The name of the policy initially applied to the enrolled
|
3501
|
+
# device, in the form enterprises/`enterprise`/policies/`policy`.
|
3502
|
+
# Corresponds to the JSON property `policy`
|
3503
|
+
# @return [String]
|
3504
|
+
attr_accessor :policy
|
3505
|
+
|
3506
|
+
# Input only. The time that this migration token is valid for. This is input-
|
3507
|
+
# only, and for returning a migration token the server will populate the
|
3508
|
+
# expireTime field. This can be at most seven days. The default is seven days.
|
3509
|
+
# Corresponds to the JSON property `ttl`
|
3510
|
+
# @return [String]
|
3511
|
+
attr_accessor :ttl
|
3512
|
+
|
3513
|
+
# Required. Immutable. The user id of the Managed Google Play account on the
|
3514
|
+
# device, as in the Play EMM API. This corresponds to the userId parameter in
|
3515
|
+
# Play EMM API's Devices.get (https://developers.google.com/android/work/play/
|
3516
|
+
# emm-api/v1/devices/get#parameters) call.
|
3517
|
+
# Corresponds to the JSON property `userId`
|
3518
|
+
# @return [String]
|
3519
|
+
attr_accessor :user_id
|
3520
|
+
|
3521
|
+
# Output only. The value of the migration token.
|
3522
|
+
# Corresponds to the JSON property `value`
|
3523
|
+
# @return [String]
|
3524
|
+
attr_accessor :value
|
3525
|
+
|
3526
|
+
def initialize(**args)
|
3527
|
+
update!(**args)
|
3528
|
+
end
|
3529
|
+
|
3530
|
+
# Update properties of this object
|
3531
|
+
def update!(**args)
|
3532
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
3533
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3534
|
+
@device = args[:device] if args.key?(:device)
|
3535
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
3536
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
3537
|
+
@management_mode = args[:management_mode] if args.key?(:management_mode)
|
3538
|
+
@name = args[:name] if args.key?(:name)
|
3539
|
+
@policy = args[:policy] if args.key?(:policy)
|
3540
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
3541
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
3542
|
+
@value = args[:value] if args.key?(:value)
|
3543
|
+
end
|
3544
|
+
end
|
3545
|
+
|
3312
3546
|
# Device network info.
|
3313
3547
|
class NetworkInfo
|
3314
3548
|
include Google::Apis::Core::Hashable
|
@@ -3954,8 +4188,7 @@ module Google
|
|
3954
4188
|
attr_accessor :adjust_volume_disabled
|
3955
4189
|
alias_method :adjust_volume_disabled?, :adjust_volume_disabled
|
3956
4190
|
|
3957
|
-
#
|
3958
|
-
# posture of a device, we don't recommend overriding any of the default values.
|
4191
|
+
# Advanced security settings. In most cases, setting these is not needed.
|
3959
4192
|
# Corresponds to the JSON property `advancedSecurityOverrides`
|
3960
4193
|
# @return [Google::Apis::AndroidmanagementV1::AdvancedSecurityOverrides]
|
3961
4194
|
attr_accessor :advanced_security_overrides
|
@@ -3965,9 +4198,7 @@ module Google
|
|
3965
4198
|
# @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage]
|
3966
4199
|
attr_accessor :always_on_vpn_package
|
3967
4200
|
|
3968
|
-
#
|
3969
|
-
# receives the latest version among all accessible tracks. If no tracks are
|
3970
|
-
# specified, then the device only uses the production track.
|
4201
|
+
# This setting is not supported. Any value is ignored.
|
3971
4202
|
# Corresponds to the JSON property `androidDevicePolicyTracks`
|
3972
4203
|
# @return [Array<String>]
|
3973
4204
|
attr_accessor :android_device_policy_tracks
|
@@ -4072,6 +4303,15 @@ module Google
|
|
4072
4303
|
attr_accessor :create_windows_disabled
|
4073
4304
|
alias_method :create_windows_disabled?, :create_windows_disabled
|
4074
4305
|
|
4306
|
+
# Controls which apps are allowed to act as credential providers on Android 14
|
4307
|
+
# and above. These apps store credentials, see this (https://developer.android.
|
4308
|
+
# com/training/sign-in/passkeys) and this (https://developer.android.com/
|
4309
|
+
# reference/androidx/credentials/CredentialManager) for details. See also
|
4310
|
+
# credentialProviderPolicy.
|
4311
|
+
# Corresponds to the JSON property `credentialProviderPolicyDefault`
|
4312
|
+
# @return [String]
|
4313
|
+
attr_accessor :credential_provider_policy_default
|
4314
|
+
|
4075
4315
|
# Whether configuring user credentials is disabled.
|
4076
4316
|
# Corresponds to the JSON property `credentialsConfigDisabled`
|
4077
4317
|
# @return [Boolean]
|
@@ -4349,6 +4589,12 @@ module Google
|
|
4349
4589
|
# @return [String]
|
4350
4590
|
attr_accessor :preferential_network_service
|
4351
4591
|
|
4592
|
+
# Optional. Controls whether printing is allowed. This is supported on devices
|
4593
|
+
# running Android 9 and above. .
|
4594
|
+
# Corresponds to the JSON property `printingPolicy`
|
4595
|
+
# @return [String]
|
4596
|
+
attr_accessor :printing_policy
|
4597
|
+
|
4352
4598
|
# Allows showing UI on a device for a user to choose a private key alias if
|
4353
4599
|
# there are no matching rules in ChoosePrivateKeyRules. For devices below
|
4354
4600
|
# Android P, setting this may leave enterprise keys vulnerable. This value will
|
@@ -4556,6 +4802,7 @@ module Google
|
|
4556
4802
|
@choose_private_key_rules = args[:choose_private_key_rules] if args.key?(:choose_private_key_rules)
|
4557
4803
|
@compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules)
|
4558
4804
|
@create_windows_disabled = args[:create_windows_disabled] if args.key?(:create_windows_disabled)
|
4805
|
+
@credential_provider_policy_default = args[:credential_provider_policy_default] if args.key?(:credential_provider_policy_default)
|
4559
4806
|
@credentials_config_disabled = args[:credentials_config_disabled] if args.key?(:credentials_config_disabled)
|
4560
4807
|
@cross_profile_policies = args[:cross_profile_policies] if args.key?(:cross_profile_policies)
|
4561
4808
|
@data_roaming_disabled = args[:data_roaming_disabled] if args.key?(:data_roaming_disabled)
|
@@ -4600,6 +4847,7 @@ module Google
|
|
4600
4847
|
@play_store_mode = args[:play_store_mode] if args.key?(:play_store_mode)
|
4601
4848
|
@policy_enforcement_rules = args[:policy_enforcement_rules] if args.key?(:policy_enforcement_rules)
|
4602
4849
|
@preferential_network_service = args[:preferential_network_service] if args.key?(:preferential_network_service)
|
4850
|
+
@printing_policy = args[:printing_policy] if args.key?(:printing_policy)
|
4603
4851
|
@private_key_selection_enabled = args[:private_key_selection_enabled] if args.key?(:private_key_selection_enabled)
|
4604
4852
|
@recommended_global_proxy = args[:recommended_global_proxy] if args.key?(:recommended_global_proxy)
|
4605
4853
|
@remove_user_disabled = args[:remove_user_disabled] if args.key?(:remove_user_disabled)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AndroidmanagementV1
|
18
18
|
# Version of the google-apis-androidmanagement_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.71.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240213"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -250,6 +250,12 @@ module Google
|
|
250
250
|
include Google::Apis::Core::JsonObjectSupport
|
251
251
|
end
|
252
252
|
|
253
|
+
class DpcMigrationInfo
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
253
259
|
class Empty
|
254
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
261
|
|
@@ -316,6 +322,12 @@ module Google
|
|
316
322
|
include Google::Apis::Core::JsonObjectSupport
|
317
323
|
end
|
318
324
|
|
325
|
+
class InstallConstraint
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
319
331
|
class IssueCommandResponse
|
320
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
333
|
|
@@ -400,6 +412,12 @@ module Google
|
|
400
412
|
include Google::Apis::Core::JsonObjectSupport
|
401
413
|
end
|
402
414
|
|
415
|
+
class ListMigrationTokensResponse
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
403
421
|
class ListOperationsResponse
|
404
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
423
|
|
@@ -496,6 +514,12 @@ module Google
|
|
496
514
|
include Google::Apis::Core::JsonObjectSupport
|
497
515
|
end
|
498
516
|
|
517
|
+
class MigrationToken
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
499
523
|
class NetworkInfo
|
500
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
525
|
|
@@ -809,6 +833,7 @@ module Google
|
|
809
833
|
property :common_criteria_mode, as: 'commonCriteriaMode'
|
810
834
|
property :developer_settings, as: 'developerSettings'
|
811
835
|
property :google_play_protect_verify_apps, as: 'googlePlayProtectVerifyApps'
|
836
|
+
property :mte_policy, as: 'mtePolicy'
|
812
837
|
collection :personal_apps_that_can_read_work_notifications, as: 'personalAppsThatCanReadWorkNotifications'
|
813
838
|
property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
|
814
839
|
end
|
@@ -924,11 +949,15 @@ module Google
|
|
924
949
|
property :always_on_vpn_lockdown_exemption, as: 'alwaysOnVpnLockdownExemption'
|
925
950
|
property :auto_update_mode, as: 'autoUpdateMode'
|
926
951
|
property :connected_work_and_personal_app, as: 'connectedWorkAndPersonalApp'
|
952
|
+
property :credential_provider_policy, as: 'credentialProviderPolicy'
|
927
953
|
property :default_permission_policy, as: 'defaultPermissionPolicy'
|
928
954
|
collection :delegated_scopes, as: 'delegatedScopes'
|
929
955
|
property :disabled, as: 'disabled'
|
930
956
|
property :extension_config, as: 'extensionConfig', class: Google::Apis::AndroidmanagementV1::ExtensionConfig, decorator: Google::Apis::AndroidmanagementV1::ExtensionConfig::Representation
|
931
957
|
|
958
|
+
collection :install_constraint, as: 'installConstraint', class: Google::Apis::AndroidmanagementV1::InstallConstraint, decorator: Google::Apis::AndroidmanagementV1::InstallConstraint::Representation
|
959
|
+
|
960
|
+
property :install_priority, as: 'installPriority'
|
932
961
|
property :install_type, as: 'installType'
|
933
962
|
property :lock_task_allowed, as: 'lockTaskAllowed'
|
934
963
|
hash :managed_configuration, as: 'managedConfiguration'
|
@@ -1159,6 +1188,8 @@ module Google
|
|
1159
1188
|
|
1160
1189
|
collection :displays, as: 'displays', class: Google::Apis::AndroidmanagementV1::DisplayProp, decorator: Google::Apis::AndroidmanagementV1::DisplayProp::Representation
|
1161
1190
|
|
1191
|
+
property :dpc_migration_info, as: 'dpcMigrationInfo', class: Google::Apis::AndroidmanagementV1::DpcMigrationInfo, decorator: Google::Apis::AndroidmanagementV1::DpcMigrationInfo::Representation
|
1192
|
+
|
1162
1193
|
property :enrollment_time, as: 'enrollmentTime'
|
1163
1194
|
property :enrollment_token_data, as: 'enrollmentTokenData'
|
1164
1195
|
property :enrollment_token_name, as: 'enrollmentTokenName'
|
@@ -1212,6 +1243,7 @@ module Google
|
|
1212
1243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1213
1244
|
property :airplane_mode_state, as: 'airplaneModeState'
|
1214
1245
|
property :cellular_two_g_state, as: 'cellularTwoGState'
|
1246
|
+
property :minimum_wifi_security_level, as: 'minimumWifiSecurityLevel'
|
1215
1247
|
property :ultra_wideband_state, as: 'ultraWidebandState'
|
1216
1248
|
property :wifi_state, as: 'wifiState'
|
1217
1249
|
end
|
@@ -1253,6 +1285,14 @@ module Google
|
|
1253
1285
|
end
|
1254
1286
|
end
|
1255
1287
|
|
1288
|
+
class DpcMigrationInfo
|
1289
|
+
# @private
|
1290
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1291
|
+
property :additional_data, as: 'additionalData'
|
1292
|
+
property :previous_dpc, as: 'previousDpc'
|
1293
|
+
end
|
1294
|
+
end
|
1295
|
+
|
1256
1296
|
class Empty
|
1257
1297
|
# @private
|
1258
1298
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1376,6 +1416,15 @@ module Google
|
|
1376
1416
|
end
|
1377
1417
|
end
|
1378
1418
|
|
1419
|
+
class InstallConstraint
|
1420
|
+
# @private
|
1421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1422
|
+
property :charging_constraint, as: 'chargingConstraint'
|
1423
|
+
property :device_idle_constraint, as: 'deviceIdleConstraint'
|
1424
|
+
property :network_type_constraint, as: 'networkTypeConstraint'
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
|
1379
1428
|
class IssueCommandResponse
|
1380
1429
|
# @private
|
1381
1430
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1494,6 +1543,15 @@ module Google
|
|
1494
1543
|
end
|
1495
1544
|
end
|
1496
1545
|
|
1546
|
+
class ListMigrationTokensResponse
|
1547
|
+
# @private
|
1548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1549
|
+
collection :migration_tokens, as: 'migrationTokens', class: Google::Apis::AndroidmanagementV1::MigrationToken, decorator: Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
1550
|
+
|
1551
|
+
property :next_page_token, as: 'nextPageToken'
|
1552
|
+
end
|
1553
|
+
end
|
1554
|
+
|
1497
1555
|
class ListOperationsResponse
|
1498
1556
|
# @private
|
1499
1557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1626,6 +1684,23 @@ module Google
|
|
1626
1684
|
end
|
1627
1685
|
end
|
1628
1686
|
|
1687
|
+
class MigrationToken
|
1688
|
+
# @private
|
1689
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1690
|
+
property :additional_data, as: 'additionalData'
|
1691
|
+
property :create_time, as: 'createTime'
|
1692
|
+
property :device, as: 'device'
|
1693
|
+
property :device_id, as: 'deviceId'
|
1694
|
+
property :expire_time, as: 'expireTime'
|
1695
|
+
property :management_mode, as: 'managementMode'
|
1696
|
+
property :name, as: 'name'
|
1697
|
+
property :policy, as: 'policy'
|
1698
|
+
property :ttl, as: 'ttl'
|
1699
|
+
property :user_id, as: 'userId'
|
1700
|
+
property :value, as: 'value'
|
1701
|
+
end
|
1702
|
+
end
|
1703
|
+
|
1629
1704
|
class NetworkInfo
|
1630
1705
|
# @private
|
1631
1706
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1811,6 +1886,7 @@ module Google
|
|
1811
1886
|
collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation
|
1812
1887
|
|
1813
1888
|
property :create_windows_disabled, as: 'createWindowsDisabled'
|
1889
|
+
property :credential_provider_policy_default, as: 'credentialProviderPolicyDefault'
|
1814
1890
|
property :credentials_config_disabled, as: 'credentialsConfigDisabled'
|
1815
1891
|
property :cross_profile_policies, as: 'crossProfilePolicies', class: Google::Apis::AndroidmanagementV1::CrossProfilePolicies, decorator: Google::Apis::AndroidmanagementV1::CrossProfilePolicies::Representation
|
1816
1892
|
|
@@ -1870,6 +1946,7 @@ module Google
|
|
1870
1946
|
collection :policy_enforcement_rules, as: 'policyEnforcementRules', class: Google::Apis::AndroidmanagementV1::PolicyEnforcementRule, decorator: Google::Apis::AndroidmanagementV1::PolicyEnforcementRule::Representation
|
1871
1947
|
|
1872
1948
|
property :preferential_network_service, as: 'preferentialNetworkService'
|
1949
|
+
property :printing_policy, as: 'printingPolicy'
|
1873
1950
|
property :private_key_selection_enabled, as: 'privateKeySelectionEnabled'
|
1874
1951
|
property :recommended_global_proxy, as: 'recommendedGlobalProxy', class: Google::Apis::AndroidmanagementV1::ProxyInfo, decorator: Google::Apis::AndroidmanagementV1::ProxyInfo::Representation
|
1875
1952
|
|
@@ -33,6 +33,8 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://developers.google.com/android/management
|
35
35
|
class AndroidManagementService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://androidmanagement.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,7 +46,7 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-androidmanagement_v1',
|
49
51
|
client_version: Google::Apis::AndroidmanagementV1::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
@@ -500,39 +502,6 @@ module Google
|
|
500
502
|
execute_or_queue_command(command, &block)
|
501
503
|
end
|
502
504
|
|
503
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
504
|
-
# longer interested in the operation result. It does not cancel the operation.
|
505
|
-
# If the server doesn't support this method, it returns google.rpc.Code.
|
506
|
-
# UNIMPLEMENTED.
|
507
|
-
# @param [String] name
|
508
|
-
# The name of the operation resource to be deleted.
|
509
|
-
# @param [String] fields
|
510
|
-
# Selector specifying which fields to include in a partial response.
|
511
|
-
# @param [String] quota_user
|
512
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
513
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
514
|
-
# @param [Google::Apis::RequestOptions] options
|
515
|
-
# Request-specific options
|
516
|
-
#
|
517
|
-
# @yield [result, err] Result & error if block supplied
|
518
|
-
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
|
519
|
-
# @yieldparam err [StandardError] error object if request failed
|
520
|
-
#
|
521
|
-
# @return [Google::Apis::AndroidmanagementV1::Empty]
|
522
|
-
#
|
523
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
524
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
525
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
526
|
-
def delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
527
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
528
|
-
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
529
|
-
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
530
|
-
command.params['name'] = name unless name.nil?
|
531
|
-
command.query['fields'] = fields unless fields.nil?
|
532
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
-
execute_or_queue_command(command, &block)
|
534
|
-
end
|
535
|
-
|
536
505
|
# Gets the latest state of a long-running operation. Clients can use this method
|
537
506
|
# to poll the operation result at intervals as recommended by the API service.
|
538
507
|
# @param [String] name
|
@@ -751,6 +720,114 @@ module Google
|
|
751
720
|
execute_or_queue_command(command, &block)
|
752
721
|
end
|
753
722
|
|
723
|
+
# Creates a migration token, to migrate an existing device from being managed by
|
724
|
+
# the EMM's Device Policy Controller (DPC) to being managed by the Android
|
725
|
+
# Management API.
|
726
|
+
# @param [String] parent
|
727
|
+
# Required. The enterprise in which this migration token will be created. Format:
|
728
|
+
# enterprises/`enterprise`
|
729
|
+
# @param [Google::Apis::AndroidmanagementV1::MigrationToken] migration_token_object
|
730
|
+
# @param [String] fields
|
731
|
+
# Selector specifying which fields to include in a partial response.
|
732
|
+
# @param [String] quota_user
|
733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
735
|
+
# @param [Google::Apis::RequestOptions] options
|
736
|
+
# Request-specific options
|
737
|
+
#
|
738
|
+
# @yield [result, err] Result & error if block supplied
|
739
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::MigrationToken] parsed result object
|
740
|
+
# @yieldparam err [StandardError] error object if request failed
|
741
|
+
#
|
742
|
+
# @return [Google::Apis::AndroidmanagementV1::MigrationToken]
|
743
|
+
#
|
744
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
745
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
746
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
747
|
+
def create_enterprise_migration_token(parent, migration_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
748
|
+
command = make_simple_command(:post, 'v1/{+parent}/migrationTokens', options)
|
749
|
+
command.request_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
750
|
+
command.request_object = migration_token_object
|
751
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
752
|
+
command.response_class = Google::Apis::AndroidmanagementV1::MigrationToken
|
753
|
+
command.params['parent'] = parent unless parent.nil?
|
754
|
+
command.query['fields'] = fields unless fields.nil?
|
755
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
756
|
+
execute_or_queue_command(command, &block)
|
757
|
+
end
|
758
|
+
|
759
|
+
# Gets a migration token.
|
760
|
+
# @param [String] name
|
761
|
+
# Required. The name of the migration token to retrieve. Format: enterprises/`
|
762
|
+
# enterprise`/migrationTokens/`migration_token`
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
765
|
+
# @param [String] quota_user
|
766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
768
|
+
# @param [Google::Apis::RequestOptions] options
|
769
|
+
# Request-specific options
|
770
|
+
#
|
771
|
+
# @yield [result, err] Result & error if block supplied
|
772
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::MigrationToken] parsed result object
|
773
|
+
# @yieldparam err [StandardError] error object if request failed
|
774
|
+
#
|
775
|
+
# @return [Google::Apis::AndroidmanagementV1::MigrationToken]
|
776
|
+
#
|
777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
780
|
+
def get_enterprise_migration_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
781
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
782
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
783
|
+
command.response_class = Google::Apis::AndroidmanagementV1::MigrationToken
|
784
|
+
command.params['name'] = name unless name.nil?
|
785
|
+
command.query['fields'] = fields unless fields.nil?
|
786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
787
|
+
execute_or_queue_command(command, &block)
|
788
|
+
end
|
789
|
+
|
790
|
+
# Lists migration tokens.
|
791
|
+
# @param [String] parent
|
792
|
+
# Required. The enterprise which the migration tokens belong to. Format:
|
793
|
+
# enterprises/`enterprise`
|
794
|
+
# @param [Fixnum] page_size
|
795
|
+
# The maximum number of migration tokens to return. Fewer migration tokens may
|
796
|
+
# be returned. If unspecified, at most 100 migration tokens will be returned.
|
797
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
798
|
+
# @param [String] page_token
|
799
|
+
# A page token, received from a previous ListMigrationTokens call. Provide this
|
800
|
+
# to retrieve the subsequent page.When paginating, all other parameters provided
|
801
|
+
# to ListMigrationTokens must match the call that provided the page token.
|
802
|
+
# @param [String] fields
|
803
|
+
# Selector specifying which fields to include in a partial response.
|
804
|
+
# @param [String] quota_user
|
805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
807
|
+
# @param [Google::Apis::RequestOptions] options
|
808
|
+
# Request-specific options
|
809
|
+
#
|
810
|
+
# @yield [result, err] Result & error if block supplied
|
811
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse] parsed result object
|
812
|
+
# @yieldparam err [StandardError] error object if request failed
|
813
|
+
#
|
814
|
+
# @return [Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse]
|
815
|
+
#
|
816
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
817
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
818
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
819
|
+
def list_enterprise_migration_tokens(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
820
|
+
command = make_simple_command(:get, 'v1/{+parent}/migrationTokens', options)
|
821
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse::Representation
|
822
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse
|
823
|
+
command.params['parent'] = parent unless parent.nil?
|
824
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
825
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
826
|
+
command.query['fields'] = fields unless fields.nil?
|
827
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
828
|
+
execute_or_queue_command(command, &block)
|
829
|
+
end
|
830
|
+
|
754
831
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
755
832
|
# referencing the policy.
|
756
833
|
# @param [String] name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-androidmanagement_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.71.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:
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.14.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidmanagement_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.71.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidmanagement_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Android Management API V1
|