google-apis-androidmanagement_v1 0.67.0 → 0.68.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 +5 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +160 -0
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +54 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +108 -0
- 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: 3f4ea2aeb2ba8b772cc58f35147597565b8cc411685624202c36e4f358799507
|
4
|
+
data.tar.gz: c2424af77e6ec9d38c21dbc3ac5425c2b9fd9ea7ada0d5a45f3a848891f7e846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21b8cf3c60eaa96552a96321358d6b3d4a3749bbf4cd6d5f6cf0703a103a3347257d6ed588dfba5314b7c511862999283705f76b1ce137f1e9ea198db379d510
|
7
|
+
data.tar.gz: de9627a7abeafbdc05ea06113772045686a5ae45d7991ceaa10ef1553a4ee17d6527440a66158f5fe3b5325a8048121440b67e0866df8737a70c994679093252
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-androidmanagement_v1
|
2
2
|
|
3
|
+
### v0.68.0 (2024-01-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240115
|
6
|
+
* Regenerated using generator version 0.13.1
|
7
|
+
|
3
8
|
### v0.67.0 (2024-01-22)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20240108
|
@@ -1527,6 +1527,12 @@ module Google
|
|
1527
1527
|
# @return [Array<Google::Apis::AndroidmanagementV1::DisplayProp>]
|
1528
1528
|
attr_accessor :displays
|
1529
1529
|
|
1530
|
+
# Information related to whether this device was migrated from being managed by
|
1531
|
+
# another Device Policy Controller (DPC).
|
1532
|
+
# Corresponds to the JSON property `dpcMigrationInfo`
|
1533
|
+
# @return [Google::Apis::AndroidmanagementV1::DpcMigrationInfo]
|
1534
|
+
attr_accessor :dpc_migration_info
|
1535
|
+
|
1530
1536
|
# The time of device enrollment.
|
1531
1537
|
# Corresponds to the JSON property `enrollmentTime`
|
1532
1538
|
# @return [String]
|
@@ -1695,6 +1701,7 @@ module Google
|
|
1695
1701
|
@device_settings = args[:device_settings] if args.key?(:device_settings)
|
1696
1702
|
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
|
1697
1703
|
@displays = args[:displays] if args.key?(:displays)
|
1704
|
+
@dpc_migration_info = args[:dpc_migration_info] if args.key?(:dpc_migration_info)
|
1698
1705
|
@enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
|
1699
1706
|
@enrollment_token_data = args[:enrollment_token_data] if args.key?(:enrollment_token_data)
|
1700
1707
|
@enrollment_token_name = args[:enrollment_token_name] if args.key?(:enrollment_token_name)
|
@@ -1967,6 +1974,34 @@ module Google
|
|
1967
1974
|
end
|
1968
1975
|
end
|
1969
1976
|
|
1977
|
+
# Information related to whether this device was migrated from being managed by
|
1978
|
+
# another Device Policy Controller (DPC).
|
1979
|
+
class DpcMigrationInfo
|
1980
|
+
include Google::Apis::Core::Hashable
|
1981
|
+
|
1982
|
+
# Output only. If this device was migrated from another DPC, the additionalData
|
1983
|
+
# field of the migration token is populated here.
|
1984
|
+
# Corresponds to the JSON property `additionalData`
|
1985
|
+
# @return [String]
|
1986
|
+
attr_accessor :additional_data
|
1987
|
+
|
1988
|
+
# Output only. If this device was migrated from another DPC, this is its package
|
1989
|
+
# name. Not populated otherwise.
|
1990
|
+
# Corresponds to the JSON property `previousDpc`
|
1991
|
+
# @return [String]
|
1992
|
+
attr_accessor :previous_dpc
|
1993
|
+
|
1994
|
+
def initialize(**args)
|
1995
|
+
update!(**args)
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
# Update properties of this object
|
1999
|
+
def update!(**args)
|
2000
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
2001
|
+
@previous_dpc = args[:previous_dpc] if args.key?(:previous_dpc)
|
2002
|
+
end
|
2003
|
+
end
|
2004
|
+
|
1970
2005
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1971
2006
|
# messages in your APIs. A typical example is to use it as the request or the
|
1972
2007
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -2915,6 +2950,32 @@ module Google
|
|
2915
2950
|
end
|
2916
2951
|
end
|
2917
2952
|
|
2953
|
+
# Response to a request to list migration tokens for a given enterprise.
|
2954
|
+
class ListMigrationTokensResponse
|
2955
|
+
include Google::Apis::Core::Hashable
|
2956
|
+
|
2957
|
+
# The migration tokens from the specified enterprise.
|
2958
|
+
# Corresponds to the JSON property `migrationTokens`
|
2959
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::MigrationToken>]
|
2960
|
+
attr_accessor :migration_tokens
|
2961
|
+
|
2962
|
+
# A token, which can be sent as page_token to retrieve the next page. If this
|
2963
|
+
# field is omitted, there are no subsequent pages.
|
2964
|
+
# Corresponds to the JSON property `nextPageToken`
|
2965
|
+
# @return [String]
|
2966
|
+
attr_accessor :next_page_token
|
2967
|
+
|
2968
|
+
def initialize(**args)
|
2969
|
+
update!(**args)
|
2970
|
+
end
|
2971
|
+
|
2972
|
+
# Update properties of this object
|
2973
|
+
def update!(**args)
|
2974
|
+
@migration_tokens = args[:migration_tokens] if args.key?(:migration_tokens)
|
2975
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2976
|
+
end
|
2977
|
+
end
|
2978
|
+
|
2918
2979
|
# The response message for Operations.ListOperations.
|
2919
2980
|
class ListOperationsResponse
|
2920
2981
|
include Google::Apis::Core::Hashable
|
@@ -3316,6 +3377,105 @@ module Google
|
|
3316
3377
|
end
|
3317
3378
|
end
|
3318
3379
|
|
3380
|
+
# A token to initiate the migration of a device from being managed by a third-
|
3381
|
+
# party DPC to being managed by Android Management API. A migration token is
|
3382
|
+
# valid only for a single device.
|
3383
|
+
class MigrationToken
|
3384
|
+
include Google::Apis::Core::Hashable
|
3385
|
+
|
3386
|
+
# Immutable. Optional EMM-specified additional data. Once the device is migrated
|
3387
|
+
# this will be populated in the migrationAdditionalData field of the Device
|
3388
|
+
# resource. This must be at most 1024 characters.
|
3389
|
+
# Corresponds to the JSON property `additionalData`
|
3390
|
+
# @return [String]
|
3391
|
+
attr_accessor :additional_data
|
3392
|
+
|
3393
|
+
# Output only. Time when this migration token was created.
|
3394
|
+
# Corresponds to the JSON property `createTime`
|
3395
|
+
# @return [String]
|
3396
|
+
attr_accessor :create_time
|
3397
|
+
|
3398
|
+
# Output only. Once this migration token is used to migrate a device, the name
|
3399
|
+
# of the resulting Device resource will be populated here, in the form
|
3400
|
+
# enterprises/`enterprise`/devices/`device`.
|
3401
|
+
# Corresponds to the JSON property `device`
|
3402
|
+
# @return [String]
|
3403
|
+
attr_accessor :device
|
3404
|
+
|
3405
|
+
# Required. Immutable. The id of the device, as in the Play EMM API. This
|
3406
|
+
# corresponds to the deviceId parameter in Play EMM API's Devices.get (https://
|
3407
|
+
# developers.google.com/android/work/play/emm-api/v1/devices/get#parameters)
|
3408
|
+
# call.
|
3409
|
+
# Corresponds to the JSON property `deviceId`
|
3410
|
+
# @return [String]
|
3411
|
+
attr_accessor :device_id
|
3412
|
+
|
3413
|
+
# Immutable. The time when this migration token expires. This can be at most
|
3414
|
+
# seven days from the time of creation. The migration token is deleted seven
|
3415
|
+
# days after it expires.
|
3416
|
+
# Corresponds to the JSON property `expireTime`
|
3417
|
+
# @return [String]
|
3418
|
+
attr_accessor :expire_time
|
3419
|
+
|
3420
|
+
# Required. Immutable. The management mode of the device or profile being
|
3421
|
+
# migrated.
|
3422
|
+
# Corresponds to the JSON property `managementMode`
|
3423
|
+
# @return [String]
|
3424
|
+
attr_accessor :management_mode
|
3425
|
+
|
3426
|
+
# Output only. The name of the migration token, which is generated by the server
|
3427
|
+
# during creation, in the form enterprises/`enterprise`/migrationTokens/`
|
3428
|
+
# migration_token`.
|
3429
|
+
# Corresponds to the JSON property `name`
|
3430
|
+
# @return [String]
|
3431
|
+
attr_accessor :name
|
3432
|
+
|
3433
|
+
# Required. Immutable. The name of the policy initially applied to the enrolled
|
3434
|
+
# device, in the form enterprises/`enterprise`/policies/`policy`.
|
3435
|
+
# Corresponds to the JSON property `policy`
|
3436
|
+
# @return [String]
|
3437
|
+
attr_accessor :policy
|
3438
|
+
|
3439
|
+
# Input only. The time that this migration token is valid for. This is input-
|
3440
|
+
# only, and for returning a migration token the server will populate the
|
3441
|
+
# expireTime field. This can be at most seven days. The default is seven days.
|
3442
|
+
# Corresponds to the JSON property `ttl`
|
3443
|
+
# @return [String]
|
3444
|
+
attr_accessor :ttl
|
3445
|
+
|
3446
|
+
# Required. Immutable. The user id of the Managed Google Play account on the
|
3447
|
+
# device, as in the Play EMM API. This corresponds to the userId parameter in
|
3448
|
+
# Play EMM API's Devices.get (https://developers.google.com/android/work/play/
|
3449
|
+
# emm-api/v1/devices/get#parameters) call.
|
3450
|
+
# Corresponds to the JSON property `userId`
|
3451
|
+
# @return [String]
|
3452
|
+
attr_accessor :user_id
|
3453
|
+
|
3454
|
+
# Output only. The value of the migration token.
|
3455
|
+
# Corresponds to the JSON property `value`
|
3456
|
+
# @return [String]
|
3457
|
+
attr_accessor :value
|
3458
|
+
|
3459
|
+
def initialize(**args)
|
3460
|
+
update!(**args)
|
3461
|
+
end
|
3462
|
+
|
3463
|
+
# Update properties of this object
|
3464
|
+
def update!(**args)
|
3465
|
+
@additional_data = args[:additional_data] if args.key?(:additional_data)
|
3466
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3467
|
+
@device = args[:device] if args.key?(:device)
|
3468
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
3469
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
3470
|
+
@management_mode = args[:management_mode] if args.key?(:management_mode)
|
3471
|
+
@name = args[:name] if args.key?(:name)
|
3472
|
+
@policy = args[:policy] if args.key?(:policy)
|
3473
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
3474
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
3475
|
+
@value = args[:value] if args.key?(:value)
|
3476
|
+
end
|
3477
|
+
end
|
3478
|
+
|
3319
3479
|
# Device network info.
|
3320
3480
|
class NetworkInfo
|
3321
3481
|
include Google::Apis::Core::Hashable
|
@@ -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.68.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 = "20240115"
|
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
|
|
@@ -400,6 +406,12 @@ module Google
|
|
400
406
|
include Google::Apis::Core::JsonObjectSupport
|
401
407
|
end
|
402
408
|
|
409
|
+
class ListMigrationTokensResponse
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
403
415
|
class ListOperationsResponse
|
404
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
417
|
|
@@ -496,6 +508,12 @@ module Google
|
|
496
508
|
include Google::Apis::Core::JsonObjectSupport
|
497
509
|
end
|
498
510
|
|
511
|
+
class MigrationToken
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
499
517
|
class NetworkInfo
|
500
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
519
|
|
@@ -1159,6 +1177,8 @@ module Google
|
|
1159
1177
|
|
1160
1178
|
collection :displays, as: 'displays', class: Google::Apis::AndroidmanagementV1::DisplayProp, decorator: Google::Apis::AndroidmanagementV1::DisplayProp::Representation
|
1161
1179
|
|
1180
|
+
property :dpc_migration_info, as: 'dpcMigrationInfo', class: Google::Apis::AndroidmanagementV1::DpcMigrationInfo, decorator: Google::Apis::AndroidmanagementV1::DpcMigrationInfo::Representation
|
1181
|
+
|
1162
1182
|
property :enrollment_time, as: 'enrollmentTime'
|
1163
1183
|
property :enrollment_token_data, as: 'enrollmentTokenData'
|
1164
1184
|
property :enrollment_token_name, as: 'enrollmentTokenName'
|
@@ -1254,6 +1274,14 @@ module Google
|
|
1254
1274
|
end
|
1255
1275
|
end
|
1256
1276
|
|
1277
|
+
class DpcMigrationInfo
|
1278
|
+
# @private
|
1279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1280
|
+
property :additional_data, as: 'additionalData'
|
1281
|
+
property :previous_dpc, as: 'previousDpc'
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
1257
1285
|
class Empty
|
1258
1286
|
# @private
|
1259
1287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1495,6 +1523,15 @@ module Google
|
|
1495
1523
|
end
|
1496
1524
|
end
|
1497
1525
|
|
1526
|
+
class ListMigrationTokensResponse
|
1527
|
+
# @private
|
1528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1529
|
+
collection :migration_tokens, as: 'migrationTokens', class: Google::Apis::AndroidmanagementV1::MigrationToken, decorator: Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
1530
|
+
|
1531
|
+
property :next_page_token, as: 'nextPageToken'
|
1532
|
+
end
|
1533
|
+
end
|
1534
|
+
|
1498
1535
|
class ListOperationsResponse
|
1499
1536
|
# @private
|
1500
1537
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1627,6 +1664,23 @@ module Google
|
|
1627
1664
|
end
|
1628
1665
|
end
|
1629
1666
|
|
1667
|
+
class MigrationToken
|
1668
|
+
# @private
|
1669
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1670
|
+
property :additional_data, as: 'additionalData'
|
1671
|
+
property :create_time, as: 'createTime'
|
1672
|
+
property :device, as: 'device'
|
1673
|
+
property :device_id, as: 'deviceId'
|
1674
|
+
property :expire_time, as: 'expireTime'
|
1675
|
+
property :management_mode, as: 'managementMode'
|
1676
|
+
property :name, as: 'name'
|
1677
|
+
property :policy, as: 'policy'
|
1678
|
+
property :ttl, as: 'ttl'
|
1679
|
+
property :user_id, as: 'userId'
|
1680
|
+
property :value, as: 'value'
|
1681
|
+
end
|
1682
|
+
end
|
1683
|
+
|
1630
1684
|
class NetworkInfo
|
1631
1685
|
# @private
|
1632
1686
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -753,6 +753,114 @@ module Google
|
|
753
753
|
execute_or_queue_command(command, &block)
|
754
754
|
end
|
755
755
|
|
756
|
+
# Creates a migration token, to migrate an existing device from being managed by
|
757
|
+
# the EMM's Device Policy Controller (DPC) to being managed by the Android
|
758
|
+
# Management API.
|
759
|
+
# @param [String] parent
|
760
|
+
# Required. The enterprise in which this migration token will be created. Format:
|
761
|
+
# enterprises/`enterprise`
|
762
|
+
# @param [Google::Apis::AndroidmanagementV1::MigrationToken] migration_token_object
|
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 create_enterprise_migration_token(parent, migration_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
781
|
+
command = make_simple_command(:post, 'v1/{+parent}/migrationTokens', options)
|
782
|
+
command.request_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
783
|
+
command.request_object = migration_token_object
|
784
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
785
|
+
command.response_class = Google::Apis::AndroidmanagementV1::MigrationToken
|
786
|
+
command.params['parent'] = parent unless parent.nil?
|
787
|
+
command.query['fields'] = fields unless fields.nil?
|
788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
789
|
+
execute_or_queue_command(command, &block)
|
790
|
+
end
|
791
|
+
|
792
|
+
# Gets a migration token.
|
793
|
+
# @param [String] name
|
794
|
+
# Required. The name of the migration token to retrieve. Format: enterprises/`
|
795
|
+
# enterprise`/migrationTokens/`migration_token`
|
796
|
+
# @param [String] fields
|
797
|
+
# Selector specifying which fields to include in a partial response.
|
798
|
+
# @param [String] quota_user
|
799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
801
|
+
# @param [Google::Apis::RequestOptions] options
|
802
|
+
# Request-specific options
|
803
|
+
#
|
804
|
+
# @yield [result, err] Result & error if block supplied
|
805
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::MigrationToken] parsed result object
|
806
|
+
# @yieldparam err [StandardError] error object if request failed
|
807
|
+
#
|
808
|
+
# @return [Google::Apis::AndroidmanagementV1::MigrationToken]
|
809
|
+
#
|
810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
813
|
+
def get_enterprise_migration_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
814
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
815
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::MigrationToken::Representation
|
816
|
+
command.response_class = Google::Apis::AndroidmanagementV1::MigrationToken
|
817
|
+
command.params['name'] = name unless name.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
execute_or_queue_command(command, &block)
|
821
|
+
end
|
822
|
+
|
823
|
+
# Lists migration tokens.
|
824
|
+
# @param [String] parent
|
825
|
+
# Required. The enterprise which the migration tokens belong to. Format:
|
826
|
+
# enterprises/`enterprise`
|
827
|
+
# @param [Fixnum] page_size
|
828
|
+
# The maximum number of migration tokens to return. Fewer migration tokens may
|
829
|
+
# be returned. If unspecified, at most 100 migration tokens will be returned.
|
830
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
831
|
+
# @param [String] page_token
|
832
|
+
# A page token, received from a previous ListMigrationTokens call. Provide this
|
833
|
+
# to retrieve the subsequent page.When paginating, all other parameters provided
|
834
|
+
# to ListMigrationTokens must match the call that provided the page token.
|
835
|
+
# @param [String] fields
|
836
|
+
# Selector specifying which fields to include in a partial response.
|
837
|
+
# @param [String] quota_user
|
838
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
839
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
840
|
+
# @param [Google::Apis::RequestOptions] options
|
841
|
+
# Request-specific options
|
842
|
+
#
|
843
|
+
# @yield [result, err] Result & error if block supplied
|
844
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse] parsed result object
|
845
|
+
# @yieldparam err [StandardError] error object if request failed
|
846
|
+
#
|
847
|
+
# @return [Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse]
|
848
|
+
#
|
849
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
850
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
851
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
852
|
+
def list_enterprise_migration_tokens(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
853
|
+
command = make_simple_command(:get, 'v1/{+parent}/migrationTokens', options)
|
854
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse::Representation
|
855
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListMigrationTokensResponse
|
856
|
+
command.params['parent'] = parent unless parent.nil?
|
857
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
858
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
859
|
+
command.query['fields'] = fields unless fields.nil?
|
860
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
861
|
+
execute_or_queue_command(command, &block)
|
862
|
+
end
|
863
|
+
|
756
864
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
757
865
|
# referencing the policy.
|
758
866
|
# @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.68.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-01-
|
11
|
+
date: 2024-01-28 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.68.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: []
|