google-apis-androidmanagement_v1 0.67.0 → 0.69.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 +9 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +218 -9
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +72 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +108 -33
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5be50a875dae5a62fef165cebb5581811ace1ae25b934d8865931ec41c49659
|
4
|
+
data.tar.gz: 9388c435dae732d7ee2d7cf3a98a5a32ff9a3aa95db0b52d99f8ed06846b8c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5182c2d9b729cb5ef2b342d98f651db4fbd34e863628b98a4f577afd6cb243aebc113d77ee326f9c4c0e1e02f296c360569139fa86ecc2afed2447bd17ba9a1
|
7
|
+
data.tar.gz: a91868c2c09e244b81db8fcb36fae353c3a1ca0d8bf0a8628cb5381c384d974cd77ae89a0562547ecfaecd03c8c0bf4fcf63b4aae66370067cff1bef1a7200e7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-androidmanagement_v1
|
2
2
|
|
3
|
+
### v0.69.0 (2024-02-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240129
|
6
|
+
|
7
|
+
### v0.68.0 (2024-01-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240115
|
10
|
+
* Regenerated using generator version 0.13.1
|
11
|
+
|
3
12
|
### v0.67.0 (2024-01-22)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240108
|
@@ -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
|
|
@@ -592,6 +591,21 @@ module Google
|
|
592
591
|
# @return [Google::Apis::AndroidmanagementV1::ExtensionConfig]
|
593
592
|
attr_accessor :extension_config
|
594
593
|
|
594
|
+
# Optional. The constraints for installing the app. You can specify a maximum of
|
595
|
+
# one InstallConstraint. Multiple constraints are rejected.
|
596
|
+
# Corresponds to the JSON property `installConstraint`
|
597
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::InstallConstraint>]
|
598
|
+
attr_accessor :install_constraint
|
599
|
+
|
600
|
+
# Optional. Amongst apps with installTypeset to:FORCE_INSTALLEDPREINSTALLED this
|
601
|
+
# controls the relative priority of installation. A value of 0 (default) means
|
602
|
+
# this app has no priority over other apps. For values between 1 and 10,000, a
|
603
|
+
# lower value means a higher priority. Values outside of the range 0 to 10,000
|
604
|
+
# inclusive are rejected.
|
605
|
+
# Corresponds to the JSON property `installPriority`
|
606
|
+
# @return [Fixnum]
|
607
|
+
attr_accessor :install_priority
|
608
|
+
|
595
609
|
# The type of installation to perform.
|
596
610
|
# Corresponds to the JSON property `installType`
|
597
611
|
# @return [String]
|
@@ -663,6 +677,8 @@ module Google
|
|
663
677
|
@delegated_scopes = args[:delegated_scopes] if args.key?(:delegated_scopes)
|
664
678
|
@disabled = args[:disabled] if args.key?(:disabled)
|
665
679
|
@extension_config = args[:extension_config] if args.key?(:extension_config)
|
680
|
+
@install_constraint = args[:install_constraint] if args.key?(:install_constraint)
|
681
|
+
@install_priority = args[:install_priority] if args.key?(:install_priority)
|
666
682
|
@install_type = args[:install_type] if args.key?(:install_type)
|
667
683
|
@lock_task_allowed = args[:lock_task_allowed] if args.key?(:lock_task_allowed)
|
668
684
|
@managed_configuration = args[:managed_configuration] if args.key?(:managed_configuration)
|
@@ -1527,6 +1543,12 @@ module Google
|
|
1527
1543
|
# @return [Array<Google::Apis::AndroidmanagementV1::DisplayProp>]
|
1528
1544
|
attr_accessor :displays
|
1529
1545
|
|
1546
|
+
# Information related to whether this device was migrated from being managed by
|
1547
|
+
# another Device Policy Controller (DPC).
|
1548
|
+
# Corresponds to the JSON property `dpcMigrationInfo`
|
1549
|
+
# @return [Google::Apis::AndroidmanagementV1::DpcMigrationInfo]
|
1550
|
+
attr_accessor :dpc_migration_info
|
1551
|
+
|
1530
1552
|
# The time of device enrollment.
|
1531
1553
|
# Corresponds to the JSON property `enrollmentTime`
|
1532
1554
|
# @return [String]
|
@@ -1580,7 +1602,8 @@ module Google
|
|
1580
1602
|
|
1581
1603
|
# Events related to memory and storage measurements in chronological order. This
|
1582
1604
|
# information is only available if memoryInfoEnabled is true in the device's
|
1583
|
-
# policy.
|
1605
|
+
# policy.Events are retained for a certain period of time and old events are
|
1606
|
+
# deleted.
|
1584
1607
|
# Corresponds to the JSON property `memoryEvents`
|
1585
1608
|
# @return [Array<Google::Apis::AndroidmanagementV1::MemoryEvent>]
|
1586
1609
|
attr_accessor :memory_events
|
@@ -1695,6 +1718,7 @@ module Google
|
|
1695
1718
|
@device_settings = args[:device_settings] if args.key?(:device_settings)
|
1696
1719
|
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
|
1697
1720
|
@displays = args[:displays] if args.key?(:displays)
|
1721
|
+
@dpc_migration_info = args[:dpc_migration_info] if args.key?(:dpc_migration_info)
|
1698
1722
|
@enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
|
1699
1723
|
@enrollment_token_data = args[:enrollment_token_data] if args.key?(:enrollment_token_data)
|
1700
1724
|
@enrollment_token_name = args[:enrollment_token_name] if args.key?(:enrollment_token_name)
|
@@ -1967,6 +1991,34 @@ module Google
|
|
1967
1991
|
end
|
1968
1992
|
end
|
1969
1993
|
|
1994
|
+
# Information related to whether this device was migrated from being managed by
|
1995
|
+
# another Device Policy Controller (DPC).
|
1996
|
+
class DpcMigrationInfo
|
1997
|
+
include Google::Apis::Core::Hashable
|
1998
|
+
|
1999
|
+
# Output only. If this device was migrated from another DPC, the additionalData
|
2000
|
+
# field of the migration token is populated here.
|
2001
|
+
# Corresponds to the JSON property `additionalData`
|
2002
|
+
# @return [String]
|
2003
|
+
attr_accessor :additional_data
|
2004
|
+
|
2005
|
+
# Output only. If this device was migrated from another DPC, this is its package
|
2006
|
+
# name. Not populated otherwise.
|
2007
|
+
# Corresponds to the JSON property `previousDpc`
|
2008
|
+
# @return [String]
|
2009
|
+
attr_accessor :previous_dpc
|
2010
|
+
|
2011
|
+
def initialize(**args)
|
2012
|
+
update!(**args)
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
# Update properties of this object
|
2016
|
+
def update!(**args)
|
2017
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
2018
|
+
@previous_dpc = args[:previous_dpc] if args.key?(:previous_dpc)
|
2019
|
+
end
|
2020
|
+
end
|
2021
|
+
|
1970
2022
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1971
2023
|
# messages in your APIs. A typical example is to use it as the request or the
|
1972
2024
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -2516,6 +2568,40 @@ module Google
|
|
2516
2568
|
end
|
2517
2569
|
end
|
2518
2570
|
|
2571
|
+
# Amongst apps with InstallTypeset to:FORCE_INSTALLEDPREINSTALLED this defines a
|
2572
|
+
# set of restrictions for the app installation. At least one of the fields must
|
2573
|
+
# be set. When multiple fields are set, then all the constraints need to be
|
2574
|
+
# satisfied for the app to be installed.
|
2575
|
+
class InstallConstraint
|
2576
|
+
include Google::Apis::Core::Hashable
|
2577
|
+
|
2578
|
+
# Optional. Charging constraint.
|
2579
|
+
# Corresponds to the JSON property `chargingConstraint`
|
2580
|
+
# @return [String]
|
2581
|
+
attr_accessor :charging_constraint
|
2582
|
+
|
2583
|
+
# Optional. Device idle constraint.
|
2584
|
+
# Corresponds to the JSON property `deviceIdleConstraint`
|
2585
|
+
# @return [String]
|
2586
|
+
attr_accessor :device_idle_constraint
|
2587
|
+
|
2588
|
+
# Optional. Network type constraint.
|
2589
|
+
# Corresponds to the JSON property `networkTypeConstraint`
|
2590
|
+
# @return [String]
|
2591
|
+
attr_accessor :network_type_constraint
|
2592
|
+
|
2593
|
+
def initialize(**args)
|
2594
|
+
update!(**args)
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
# Update properties of this object
|
2598
|
+
def update!(**args)
|
2599
|
+
@charging_constraint = args[:charging_constraint] if args.key?(:charging_constraint)
|
2600
|
+
@device_idle_constraint = args[:device_idle_constraint] if args.key?(:device_idle_constraint)
|
2601
|
+
@network_type_constraint = args[:network_type_constraint] if args.key?(:network_type_constraint)
|
2602
|
+
end
|
2603
|
+
end
|
2604
|
+
|
2519
2605
|
# Response on issuing a command. This is currently empty as a placeholder.
|
2520
2606
|
class IssueCommandResponse
|
2521
2607
|
include Google::Apis::Core::Hashable
|
@@ -2915,6 +3001,32 @@ module Google
|
|
2915
3001
|
end
|
2916
3002
|
end
|
2917
3003
|
|
3004
|
+
# Response to a request to list migration tokens for a given enterprise.
|
3005
|
+
class ListMigrationTokensResponse
|
3006
|
+
include Google::Apis::Core::Hashable
|
3007
|
+
|
3008
|
+
# The migration tokens from the specified enterprise.
|
3009
|
+
# Corresponds to the JSON property `migrationTokens`
|
3010
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::MigrationToken>]
|
3011
|
+
attr_accessor :migration_tokens
|
3012
|
+
|
3013
|
+
# A token, which can be sent as page_token to retrieve the next page. If this
|
3014
|
+
# field is omitted, there are no subsequent pages.
|
3015
|
+
# Corresponds to the JSON property `nextPageToken`
|
3016
|
+
# @return [String]
|
3017
|
+
attr_accessor :next_page_token
|
3018
|
+
|
3019
|
+
def initialize(**args)
|
3020
|
+
update!(**args)
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
# Update properties of this object
|
3024
|
+
def update!(**args)
|
3025
|
+
@migration_tokens = args[:migration_tokens] if args.key?(:migration_tokens)
|
3026
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3027
|
+
end
|
3028
|
+
end
|
3029
|
+
|
2918
3030
|
# The response message for Operations.ListOperations.
|
2919
3031
|
class ListOperationsResponse
|
2920
3032
|
include Google::Apis::Core::Hashable
|
@@ -3259,7 +3371,8 @@ module Google
|
|
3259
3371
|
end
|
3260
3372
|
end
|
3261
3373
|
|
3262
|
-
# An event related to memory and storage measurements.
|
3374
|
+
# An event related to memory and storage measurements.To distinguish between new
|
3375
|
+
# and old events, we recommend using the createTime field.
|
3263
3376
|
class MemoryEvent
|
3264
3377
|
include Google::Apis::Core::Hashable
|
3265
3378
|
|
@@ -3316,6 +3429,105 @@ module Google
|
|
3316
3429
|
end
|
3317
3430
|
end
|
3318
3431
|
|
3432
|
+
# A token to initiate the migration of a device from being managed by a third-
|
3433
|
+
# party DPC to being managed by Android Management API. A migration token is
|
3434
|
+
# valid only for a single device.
|
3435
|
+
class MigrationToken
|
3436
|
+
include Google::Apis::Core::Hashable
|
3437
|
+
|
3438
|
+
# Immutable. Optional EMM-specified additional data. Once the device is migrated
|
3439
|
+
# this will be populated in the migrationAdditionalData field of the Device
|
3440
|
+
# resource. This must be at most 1024 characters.
|
3441
|
+
# Corresponds to the JSON property `additionalData`
|
3442
|
+
# @return [String]
|
3443
|
+
attr_accessor :additional_data
|
3444
|
+
|
3445
|
+
# Output only. Time when this migration token was created.
|
3446
|
+
# Corresponds to the JSON property `createTime`
|
3447
|
+
# @return [String]
|
3448
|
+
attr_accessor :create_time
|
3449
|
+
|
3450
|
+
# Output only. Once this migration token is used to migrate a device, the name
|
3451
|
+
# of the resulting Device resource will be populated here, in the form
|
3452
|
+
# enterprises/`enterprise`/devices/`device`.
|
3453
|
+
# Corresponds to the JSON property `device`
|
3454
|
+
# @return [String]
|
3455
|
+
attr_accessor :device
|
3456
|
+
|
3457
|
+
# Required. Immutable. The id of the device, as in the Play EMM API. This
|
3458
|
+
# corresponds to the deviceId parameter in Play EMM API's Devices.get (https://
|
3459
|
+
# developers.google.com/android/work/play/emm-api/v1/devices/get#parameters)
|
3460
|
+
# call.
|
3461
|
+
# Corresponds to the JSON property `deviceId`
|
3462
|
+
# @return [String]
|
3463
|
+
attr_accessor :device_id
|
3464
|
+
|
3465
|
+
# Immutable. The time when this migration token expires. This can be at most
|
3466
|
+
# seven days from the time of creation. The migration token is deleted seven
|
3467
|
+
# days after it expires.
|
3468
|
+
# Corresponds to the JSON property `expireTime`
|
3469
|
+
# @return [String]
|
3470
|
+
attr_accessor :expire_time
|
3471
|
+
|
3472
|
+
# Required. Immutable. The management mode of the device or profile being
|
3473
|
+
# migrated.
|
3474
|
+
# Corresponds to the JSON property `managementMode`
|
3475
|
+
# @return [String]
|
3476
|
+
attr_accessor :management_mode
|
3477
|
+
|
3478
|
+
# Output only. The name of the migration token, which is generated by the server
|
3479
|
+
# during creation, in the form enterprises/`enterprise`/migrationTokens/`
|
3480
|
+
# migration_token`.
|
3481
|
+
# Corresponds to the JSON property `name`
|
3482
|
+
# @return [String]
|
3483
|
+
attr_accessor :name
|
3484
|
+
|
3485
|
+
# Required. Immutable. The name of the policy initially applied to the enrolled
|
3486
|
+
# device, in the form enterprises/`enterprise`/policies/`policy`.
|
3487
|
+
# Corresponds to the JSON property `policy`
|
3488
|
+
# @return [String]
|
3489
|
+
attr_accessor :policy
|
3490
|
+
|
3491
|
+
# Input only. The time that this migration token is valid for. This is input-
|
3492
|
+
# only, and for returning a migration token the server will populate the
|
3493
|
+
# expireTime field. This can be at most seven days. The default is seven days.
|
3494
|
+
# Corresponds to the JSON property `ttl`
|
3495
|
+
# @return [String]
|
3496
|
+
attr_accessor :ttl
|
3497
|
+
|
3498
|
+
# Required. Immutable. The user id of the Managed Google Play account on the
|
3499
|
+
# device, as in the Play EMM API. This corresponds to the userId parameter in
|
3500
|
+
# Play EMM API's Devices.get (https://developers.google.com/android/work/play/
|
3501
|
+
# emm-api/v1/devices/get#parameters) call.
|
3502
|
+
# Corresponds to the JSON property `userId`
|
3503
|
+
# @return [String]
|
3504
|
+
attr_accessor :user_id
|
3505
|
+
|
3506
|
+
# Output only. The value of the migration token.
|
3507
|
+
# Corresponds to the JSON property `value`
|
3508
|
+
# @return [String]
|
3509
|
+
attr_accessor :value
|
3510
|
+
|
3511
|
+
def initialize(**args)
|
3512
|
+
update!(**args)
|
3513
|
+
end
|
3514
|
+
|
3515
|
+
# Update properties of this object
|
3516
|
+
def update!(**args)
|
3517
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
3518
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3519
|
+
@device = args[:device] if args.key?(:device)
|
3520
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
3521
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
3522
|
+
@management_mode = args[:management_mode] if args.key?(:management_mode)
|
3523
|
+
@name = args[:name] if args.key?(:name)
|
3524
|
+
@policy = args[:policy] if args.key?(:policy)
|
3525
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
3526
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
3527
|
+
@value = args[:value] if args.key?(:value)
|
3528
|
+
end
|
3529
|
+
end
|
3530
|
+
|
3319
3531
|
# Device network info.
|
3320
3532
|
class NetworkInfo
|
3321
3533
|
include Google::Apis::Core::Hashable
|
@@ -3961,8 +4173,7 @@ module Google
|
|
3961
4173
|
attr_accessor :adjust_volume_disabled
|
3962
4174
|
alias_method :adjust_volume_disabled?, :adjust_volume_disabled
|
3963
4175
|
|
3964
|
-
#
|
3965
|
-
# posture of a device, we don't recommend overriding any of the default values.
|
4176
|
+
# Advanced security settings. In most cases, setting these is not needed.
|
3966
4177
|
# Corresponds to the JSON property `advancedSecurityOverrides`
|
3967
4178
|
# @return [Google::Apis::AndroidmanagementV1::AdvancedSecurityOverrides]
|
3968
4179
|
attr_accessor :advanced_security_overrides
|
@@ -3972,9 +4183,7 @@ module Google
|
|
3972
4183
|
# @return [Google::Apis::AndroidmanagementV1::AlwaysOnVpnPackage]
|
3973
4184
|
attr_accessor :always_on_vpn_package
|
3974
4185
|
|
3975
|
-
#
|
3976
|
-
# receives the latest version among all accessible tracks. If no tracks are
|
3977
|
-
# specified, then the device only uses the production track.
|
4186
|
+
# This setting is not supported. Any value is ignored.
|
3978
4187
|
# Corresponds to the JSON property `androidDevicePolicyTracks`
|
3979
4188
|
# @return [Array<String>]
|
3980
4189
|
attr_accessor :android_device_policy_tracks
|
@@ -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.69.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.13.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240129"
|
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
|
|
@@ -929,6 +953,9 @@ module Google
|
|
929
953
|
property :disabled, as: 'disabled'
|
930
954
|
property :extension_config, as: 'extensionConfig', class: Google::Apis::AndroidmanagementV1::ExtensionConfig, decorator: Google::Apis::AndroidmanagementV1::ExtensionConfig::Representation
|
931
955
|
|
956
|
+
collection :install_constraint, as: 'installConstraint', class: Google::Apis::AndroidmanagementV1::InstallConstraint, decorator: Google::Apis::AndroidmanagementV1::InstallConstraint::Representation
|
957
|
+
|
958
|
+
property :install_priority, as: 'installPriority'
|
932
959
|
property :install_type, as: 'installType'
|
933
960
|
property :lock_task_allowed, as: 'lockTaskAllowed'
|
934
961
|
hash :managed_configuration, as: 'managedConfiguration'
|
@@ -1159,6 +1186,8 @@ module Google
|
|
1159
1186
|
|
1160
1187
|
collection :displays, as: 'displays', class: Google::Apis::AndroidmanagementV1::DisplayProp, decorator: Google::Apis::AndroidmanagementV1::DisplayProp::Representation
|
1161
1188
|
|
1189
|
+
property :dpc_migration_info, as: 'dpcMigrationInfo', class: Google::Apis::AndroidmanagementV1::DpcMigrationInfo, decorator: Google::Apis::AndroidmanagementV1::DpcMigrationInfo::Representation
|
1190
|
+
|
1162
1191
|
property :enrollment_time, as: 'enrollmentTime'
|
1163
1192
|
property :enrollment_token_data, as: 'enrollmentTokenData'
|
1164
1193
|
property :enrollment_token_name, as: 'enrollmentTokenName'
|
@@ -1254,6 +1283,14 @@ module Google
|
|
1254
1283
|
end
|
1255
1284
|
end
|
1256
1285
|
|
1286
|
+
class DpcMigrationInfo
|
1287
|
+
# @private
|
1288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1289
|
+
property :additional_data, as: 'additionalData'
|
1290
|
+
property :previous_dpc, as: 'previousDpc'
|
1291
|
+
end
|
1292
|
+
end
|
1293
|
+
|
1257
1294
|
class Empty
|
1258
1295
|
# @private
|
1259
1296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1377,6 +1414,15 @@ module Google
|
|
1377
1414
|
end
|
1378
1415
|
end
|
1379
1416
|
|
1417
|
+
class InstallConstraint
|
1418
|
+
# @private
|
1419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1420
|
+
property :charging_constraint, as: 'chargingConstraint'
|
1421
|
+
property :device_idle_constraint, as: 'deviceIdleConstraint'
|
1422
|
+
property :network_type_constraint, as: 'networkTypeConstraint'
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
|
1380
1426
|
class IssueCommandResponse
|
1381
1427
|
# @private
|
1382
1428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1495,6 +1541,15 @@ module Google
|
|
1495
1541
|
end
|
1496
1542
|
end
|
1497
1543
|
|
1544
|
+
class ListMigrationTokensResponse
|
1545
|
+
# @private
|
1546
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1547
|
+
collection :migration_tokens, as: 'migrationTokens', class: Google::Apis::AndroidmanagementV1::MigrationToken, decorator: Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
1548
|
+
|
1549
|
+
property :next_page_token, as: 'nextPageToken'
|
1550
|
+
end
|
1551
|
+
end
|
1552
|
+
|
1498
1553
|
class ListOperationsResponse
|
1499
1554
|
# @private
|
1500
1555
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1627,6 +1682,23 @@ module Google
|
|
1627
1682
|
end
|
1628
1683
|
end
|
1629
1684
|
|
1685
|
+
class MigrationToken
|
1686
|
+
# @private
|
1687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1688
|
+
property :additional_data, as: 'additionalData'
|
1689
|
+
property :create_time, as: 'createTime'
|
1690
|
+
property :device, as: 'device'
|
1691
|
+
property :device_id, as: 'deviceId'
|
1692
|
+
property :expire_time, as: 'expireTime'
|
1693
|
+
property :management_mode, as: 'managementMode'
|
1694
|
+
property :name, as: 'name'
|
1695
|
+
property :policy, as: 'policy'
|
1696
|
+
property :ttl, as: 'ttl'
|
1697
|
+
property :user_id, as: 'userId'
|
1698
|
+
property :value, as: 'value'
|
1699
|
+
end
|
1700
|
+
end
|
1701
|
+
|
1630
1702
|
class NetworkInfo
|
1631
1703
|
# @private
|
1632
1704
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -502,39 +502,6 @@ module Google
|
|
502
502
|
execute_or_queue_command(command, &block)
|
503
503
|
end
|
504
504
|
|
505
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
506
|
-
# longer interested in the operation result. It does not cancel the operation.
|
507
|
-
# If the server doesn't support this method, it returns google.rpc.Code.
|
508
|
-
# UNIMPLEMENTED.
|
509
|
-
# @param [String] name
|
510
|
-
# The name of the operation resource to be deleted.
|
511
|
-
# @param [String] fields
|
512
|
-
# Selector specifying which fields to include in a partial response.
|
513
|
-
# @param [String] quota_user
|
514
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
-
# @param [Google::Apis::RequestOptions] options
|
517
|
-
# Request-specific options
|
518
|
-
#
|
519
|
-
# @yield [result, err] Result & error if block supplied
|
520
|
-
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
|
521
|
-
# @yieldparam err [StandardError] error object if request failed
|
522
|
-
#
|
523
|
-
# @return [Google::Apis::AndroidmanagementV1::Empty]
|
524
|
-
#
|
525
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
-
def delete_enterprise_device_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
529
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
530
|
-
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
531
|
-
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
532
|
-
command.params['name'] = name unless name.nil?
|
533
|
-
command.query['fields'] = fields unless fields.nil?
|
534
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
-
execute_or_queue_command(command, &block)
|
536
|
-
end
|
537
|
-
|
538
505
|
# Gets the latest state of a long-running operation. Clients can use this method
|
539
506
|
# to poll the operation result at intervals as recommended by the API service.
|
540
507
|
# @param [String] name
|
@@ -753,6 +720,114 @@ module Google
|
|
753
720
|
execute_or_queue_command(command, &block)
|
754
721
|
end
|
755
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
|
+
|
756
831
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
757
832
|
# referencing the policy.
|
758
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.69.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: 2024-
|
11
|
+
date: 2024-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.69.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: []
|