google-apis-androidmanagement_v1 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +175 -0
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +2 -2
- data/lib/google/apis/androidmanagement_v1/representations.rb +104 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +83 -1
- 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: 9bc26376706f5afc29e098ccb309f7f4ba4f6addd08f435bed538792fd5c06f0
|
4
|
+
data.tar.gz: ed4dabe0ae76abf321a6e3ebb023506fc2309f20b40aa6645363ca177db39693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75bbab508168acc3408788247c7d1fa1cb48852269fe74879b5d8f3007d235da755b0517bdf1901587b38f5f4d666a15a90e248d6692dcf918419350e5aeada0
|
7
|
+
data.tar.gz: 1c1cb5bcfe0d710b8a22773122529277ef19ca9eeb71404d8e96dee5d3e56e5a44054a3254eb9839c0d13ad36332935013bdb7dc408db3f58583db9379588063
|
data/CHANGELOG.md
CHANGED
@@ -735,10 +735,64 @@ module Google
|
|
735
735
|
end
|
736
736
|
end
|
737
737
|
|
738
|
+
# Parameters associated with the CLEAR_APP_DATA command to clear the data of
|
739
|
+
# specified apps from the device.
|
740
|
+
class ClearAppsDataParams
|
741
|
+
include Google::Apis::Core::Hashable
|
742
|
+
|
743
|
+
# The package names of the apps whose data will be cleared when the command is
|
744
|
+
# executed.
|
745
|
+
# Corresponds to the JSON property `packageNames`
|
746
|
+
# @return [Array<String>]
|
747
|
+
attr_accessor :package_names
|
748
|
+
|
749
|
+
def initialize(**args)
|
750
|
+
update!(**args)
|
751
|
+
end
|
752
|
+
|
753
|
+
# Update properties of this object
|
754
|
+
def update!(**args)
|
755
|
+
@package_names = args[:package_names] if args.key?(:package_names)
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
# Status of the CLEAR_APP_DATA command to clear the data of specified apps from
|
760
|
+
# the device.
|
761
|
+
class ClearAppsDataStatus
|
762
|
+
include Google::Apis::Core::Hashable
|
763
|
+
|
764
|
+
# The per-app results, a mapping from package names to the respective clearing
|
765
|
+
# result.
|
766
|
+
# Corresponds to the JSON property `results`
|
767
|
+
# @return [Hash<String,Google::Apis::AndroidmanagementV1::PerAppResult>]
|
768
|
+
attr_accessor :results
|
769
|
+
|
770
|
+
def initialize(**args)
|
771
|
+
update!(**args)
|
772
|
+
end
|
773
|
+
|
774
|
+
# Update properties of this object
|
775
|
+
def update!(**args)
|
776
|
+
@results = args[:results] if args.key?(:results)
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
738
780
|
# A command.
|
739
781
|
class Command
|
740
782
|
include Google::Apis::Core::Hashable
|
741
783
|
|
784
|
+
# Parameters associated with the CLEAR_APP_DATA command to clear the data of
|
785
|
+
# specified apps from the device.
|
786
|
+
# Corresponds to the JSON property `clearAppsDataParams`
|
787
|
+
# @return [Google::Apis::AndroidmanagementV1::ClearAppsDataParams]
|
788
|
+
attr_accessor :clear_apps_data_params
|
789
|
+
|
790
|
+
# Status of the CLEAR_APP_DATA command to clear the data of specified apps from
|
791
|
+
# the device.
|
792
|
+
# Corresponds to the JSON property `clearAppsDataStatus`
|
793
|
+
# @return [Google::Apis::AndroidmanagementV1::ClearAppsDataStatus]
|
794
|
+
attr_accessor :clear_apps_data_status
|
795
|
+
|
742
796
|
# The timestamp at which the command was created. The timestamp is automatically
|
743
797
|
# generated by the server.
|
744
798
|
# Corresponds to the JSON property `createTime`
|
@@ -786,6 +840,8 @@ module Google
|
|
786
840
|
|
787
841
|
# Update properties of this object
|
788
842
|
def update!(**args)
|
843
|
+
@clear_apps_data_params = args[:clear_apps_data_params] if args.key?(:clear_apps_data_params)
|
844
|
+
@clear_apps_data_status = args[:clear_apps_data_status] if args.key?(:clear_apps_data_status)
|
789
845
|
@create_time = args[:create_time] if args.key?(:create_time)
|
790
846
|
@duration = args[:duration] if args.key?(:duration)
|
791
847
|
@error_code = args[:error_code] if args.key?(:error_code)
|
@@ -2058,6 +2114,31 @@ module Google
|
|
2058
2114
|
end
|
2059
2115
|
end
|
2060
2116
|
|
2117
|
+
# Response to a request to list enrollment tokens for a given enterprise.
|
2118
|
+
class ListEnrollmentTokensResponse
|
2119
|
+
include Google::Apis::Core::Hashable
|
2120
|
+
|
2121
|
+
# The list of enrollment tokens.
|
2122
|
+
# Corresponds to the JSON property `enrollmentTokens`
|
2123
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::EnrollmentToken>]
|
2124
|
+
attr_accessor :enrollment_tokens
|
2125
|
+
|
2126
|
+
# If there are more results, a token to retrieve next page of results.
|
2127
|
+
# Corresponds to the JSON property `nextPageToken`
|
2128
|
+
# @return [String]
|
2129
|
+
attr_accessor :next_page_token
|
2130
|
+
|
2131
|
+
def initialize(**args)
|
2132
|
+
update!(**args)
|
2133
|
+
end
|
2134
|
+
|
2135
|
+
# Update properties of this object
|
2136
|
+
def update!(**args)
|
2137
|
+
@enrollment_tokens = args[:enrollment_tokens] if args.key?(:enrollment_tokens)
|
2138
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2139
|
+
end
|
2140
|
+
end
|
2141
|
+
|
2061
2142
|
# Response to a request to list enterprises.
|
2062
2143
|
class ListEnterprisesResponse
|
2063
2144
|
include Google::Apis::Core::Hashable
|
@@ -2415,6 +2496,16 @@ module Google
|
|
2415
2496
|
# @return [String]
|
2416
2497
|
attr_accessor :setting_name
|
2417
2498
|
|
2499
|
+
# Additional context for SpecificNonComplianceReason.
|
2500
|
+
# Corresponds to the JSON property `specificNonComplianceContext`
|
2501
|
+
# @return [Google::Apis::AndroidmanagementV1::SpecificNonComplianceContext]
|
2502
|
+
attr_accessor :specific_non_compliance_context
|
2503
|
+
|
2504
|
+
# The policy-specific reason the device is not in compliance with the setting.
|
2505
|
+
# Corresponds to the JSON property `specificNonComplianceReason`
|
2506
|
+
# @return [String]
|
2507
|
+
attr_accessor :specific_non_compliance_reason
|
2508
|
+
|
2418
2509
|
def initialize(**args)
|
2419
2510
|
update!(**args)
|
2420
2511
|
end
|
@@ -2427,6 +2518,8 @@ module Google
|
|
2427
2518
|
@non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
|
2428
2519
|
@package_name = args[:package_name] if args.key?(:package_name)
|
2429
2520
|
@setting_name = args[:setting_name] if args.key?(:setting_name)
|
2521
|
+
@specific_non_compliance_context = args[:specific_non_compliance_context] if args.key?(:specific_non_compliance_context)
|
2522
|
+
@specific_non_compliance_reason = args[:specific_non_compliance_reason] if args.key?(:specific_non_compliance_reason)
|
2430
2523
|
end
|
2431
2524
|
end
|
2432
2525
|
|
@@ -2493,6 +2586,25 @@ module Google
|
|
2493
2586
|
end
|
2494
2587
|
end
|
2495
2588
|
|
2589
|
+
# Additional context for non-compliance related to Wi-Fi configuration.
|
2590
|
+
class OncWifiContext
|
2591
|
+
include Google::Apis::Core::Hashable
|
2592
|
+
|
2593
|
+
# The GUID of non-compliant Wi-Fi configuration.
|
2594
|
+
# Corresponds to the JSON property `wifiGuid`
|
2595
|
+
# @return [String]
|
2596
|
+
attr_accessor :wifi_guid
|
2597
|
+
|
2598
|
+
def initialize(**args)
|
2599
|
+
update!(**args)
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
# Update properties of this object
|
2603
|
+
def update!(**args)
|
2604
|
+
@wifi_guid = args[:wifi_guid] if args.key?(:wifi_guid)
|
2605
|
+
end
|
2606
|
+
end
|
2607
|
+
|
2496
2608
|
# This resource represents a long-running operation that is the result of a
|
2497
2609
|
# network API call.
|
2498
2610
|
class Operation
|
@@ -2574,6 +2686,25 @@ module Google
|
|
2574
2686
|
end
|
2575
2687
|
end
|
2576
2688
|
|
2689
|
+
# Additional context for non-compliance related to password policies.
|
2690
|
+
class PasswordPoliciesContext
|
2691
|
+
include Google::Apis::Core::Hashable
|
2692
|
+
|
2693
|
+
# The scope of non-compliant password.
|
2694
|
+
# Corresponds to the JSON property `passwordPolicyScope`
|
2695
|
+
# @return [String]
|
2696
|
+
attr_accessor :password_policy_scope
|
2697
|
+
|
2698
|
+
def initialize(**args)
|
2699
|
+
update!(**args)
|
2700
|
+
end
|
2701
|
+
|
2702
|
+
# Update properties of this object
|
2703
|
+
def update!(**args)
|
2704
|
+
@password_policy_scope = args[:password_policy_scope] if args.key?(:password_policy_scope)
|
2705
|
+
end
|
2706
|
+
end
|
2707
|
+
|
2577
2708
|
# Requirements for the password used to unlock a device.
|
2578
2709
|
class PasswordRequirements
|
2579
2710
|
include Google::Apis::Core::Hashable
|
@@ -2691,6 +2822,25 @@ module Google
|
|
2691
2822
|
end
|
2692
2823
|
end
|
2693
2824
|
|
2825
|
+
# The result of an attempt to clear the data of a single app.
|
2826
|
+
class PerAppResult
|
2827
|
+
include Google::Apis::Core::Hashable
|
2828
|
+
|
2829
|
+
# The result of an attempt to clear the data of a single app.
|
2830
|
+
# Corresponds to the JSON property `clearingResult`
|
2831
|
+
# @return [String]
|
2832
|
+
attr_accessor :clearing_result
|
2833
|
+
|
2834
|
+
def initialize(**args)
|
2835
|
+
update!(**args)
|
2836
|
+
end
|
2837
|
+
|
2838
|
+
# Update properties of this object
|
2839
|
+
def update!(**args)
|
2840
|
+
@clearing_result = args[:clearing_result] if args.key?(:clearing_result)
|
2841
|
+
end
|
2842
|
+
end
|
2843
|
+
|
2694
2844
|
# Configuration for an Android permission and its grant state.
|
2695
2845
|
class PermissionGrant
|
2696
2846
|
include Google::Apis::Core::Hashable
|
@@ -3856,6 +4006,31 @@ module Google
|
|
3856
4006
|
end
|
3857
4007
|
end
|
3858
4008
|
|
4009
|
+
# Additional context for SpecificNonComplianceReason.
|
4010
|
+
class SpecificNonComplianceContext
|
4011
|
+
include Google::Apis::Core::Hashable
|
4012
|
+
|
4013
|
+
# Additional context for non-compliance related to Wi-Fi configuration.
|
4014
|
+
# Corresponds to the JSON property `oncWifiContext`
|
4015
|
+
# @return [Google::Apis::AndroidmanagementV1::OncWifiContext]
|
4016
|
+
attr_accessor :onc_wifi_context
|
4017
|
+
|
4018
|
+
# Additional context for non-compliance related to password policies.
|
4019
|
+
# Corresponds to the JSON property `passwordPoliciesContext`
|
4020
|
+
# @return [Google::Apis::AndroidmanagementV1::PasswordPoliciesContext]
|
4021
|
+
attr_accessor :password_policies_context
|
4022
|
+
|
4023
|
+
def initialize(**args)
|
4024
|
+
update!(**args)
|
4025
|
+
end
|
4026
|
+
|
4027
|
+
# Update properties of this object
|
4028
|
+
def update!(**args)
|
4029
|
+
@onc_wifi_context = args[:onc_wifi_context] if args.key?(:onc_wifi_context)
|
4030
|
+
@password_policies_context = args[:password_policies_context] if args.key?(:password_policies_context)
|
4031
|
+
end
|
4032
|
+
end
|
4033
|
+
|
3859
4034
|
# The Status type defines a logical error model that is suitable for different
|
3860
4035
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
3861
4036
|
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
@@ -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.35.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.5.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220601"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,18 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class ClearAppsDataParams
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class ClearAppsDataStatus
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
103
115
|
class Command
|
104
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
117
|
|
@@ -238,6 +250,12 @@ module Google
|
|
238
250
|
include Google::Apis::Core::JsonObjectSupport
|
239
251
|
end
|
240
252
|
|
253
|
+
class ListEnrollmentTokensResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
241
259
|
class ListEnterprisesResponse
|
242
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
261
|
|
@@ -316,6 +334,12 @@ module Google
|
|
316
334
|
include Google::Apis::Core::JsonObjectSupport
|
317
335
|
end
|
318
336
|
|
337
|
+
class OncWifiContext
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
319
343
|
class Operation
|
320
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
345
|
|
@@ -328,12 +352,24 @@ module Google
|
|
328
352
|
include Google::Apis::Core::JsonObjectSupport
|
329
353
|
end
|
330
354
|
|
355
|
+
class PasswordPoliciesContext
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
331
361
|
class PasswordRequirements
|
332
362
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
363
|
|
334
364
|
include Google::Apis::Core::JsonObjectSupport
|
335
365
|
end
|
336
366
|
|
367
|
+
class PerAppResult
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
337
373
|
class PermissionGrant
|
338
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
375
|
|
@@ -418,6 +454,12 @@ module Google
|
|
418
454
|
include Google::Apis::Core::JsonObjectSupport
|
419
455
|
end
|
420
456
|
|
457
|
+
class SpecificNonComplianceContext
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
421
463
|
class Status
|
422
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
465
|
|
@@ -656,9 +698,28 @@ module Google
|
|
656
698
|
end
|
657
699
|
end
|
658
700
|
|
701
|
+
class ClearAppsDataParams
|
702
|
+
# @private
|
703
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
704
|
+
collection :package_names, as: 'packageNames'
|
705
|
+
end
|
706
|
+
end
|
707
|
+
|
708
|
+
class ClearAppsDataStatus
|
709
|
+
# @private
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
711
|
+
hash :results, as: 'results', class: Google::Apis::AndroidmanagementV1::PerAppResult, decorator: Google::Apis::AndroidmanagementV1::PerAppResult::Representation
|
712
|
+
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
659
716
|
class Command
|
660
717
|
# @private
|
661
718
|
class Representation < Google::Apis::Core::JsonRepresentation
|
719
|
+
property :clear_apps_data_params, as: 'clearAppsDataParams', class: Google::Apis::AndroidmanagementV1::ClearAppsDataParams, decorator: Google::Apis::AndroidmanagementV1::ClearAppsDataParams::Representation
|
720
|
+
|
721
|
+
property :clear_apps_data_status, as: 'clearAppsDataStatus', class: Google::Apis::AndroidmanagementV1::ClearAppsDataStatus, decorator: Google::Apis::AndroidmanagementV1::ClearAppsDataStatus::Representation
|
722
|
+
|
662
723
|
property :create_time, as: 'createTime'
|
663
724
|
property :duration, as: 'duration'
|
664
725
|
property :error_code, as: 'errorCode'
|
@@ -959,6 +1020,15 @@ module Google
|
|
959
1020
|
end
|
960
1021
|
end
|
961
1022
|
|
1023
|
+
class ListEnrollmentTokensResponse
|
1024
|
+
# @private
|
1025
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1026
|
+
collection :enrollment_tokens, as: 'enrollmentTokens', class: Google::Apis::AndroidmanagementV1::EnrollmentToken, decorator: Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
|
1027
|
+
|
1028
|
+
property :next_page_token, as: 'nextPageToken'
|
1029
|
+
end
|
1030
|
+
end
|
1031
|
+
|
962
1032
|
class ListEnterprisesResponse
|
963
1033
|
# @private
|
964
1034
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1064,6 +1134,9 @@ module Google
|
|
1064
1134
|
property :non_compliance_reason, as: 'nonComplianceReason'
|
1065
1135
|
property :package_name, as: 'packageName'
|
1066
1136
|
property :setting_name, as: 'settingName'
|
1137
|
+
property :specific_non_compliance_context, as: 'specificNonComplianceContext', class: Google::Apis::AndroidmanagementV1::SpecificNonComplianceContext, decorator: Google::Apis::AndroidmanagementV1::SpecificNonComplianceContext::Representation
|
1138
|
+
|
1139
|
+
property :specific_non_compliance_reason, as: 'specificNonComplianceReason'
|
1067
1140
|
end
|
1068
1141
|
end
|
1069
1142
|
|
@@ -1085,6 +1158,13 @@ module Google
|
|
1085
1158
|
end
|
1086
1159
|
end
|
1087
1160
|
|
1161
|
+
class OncWifiContext
|
1162
|
+
# @private
|
1163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1164
|
+
property :wifi_guid, as: 'wifiGuid'
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
|
1088
1168
|
class Operation
|
1089
1169
|
# @private
|
1090
1170
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1104,6 +1184,13 @@ module Google
|
|
1104
1184
|
end
|
1105
1185
|
end
|
1106
1186
|
|
1187
|
+
class PasswordPoliciesContext
|
1188
|
+
# @private
|
1189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1190
|
+
property :password_policy_scope, as: 'passwordPolicyScope'
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1107
1194
|
class PasswordRequirements
|
1108
1195
|
# @private
|
1109
1196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1124,6 +1211,13 @@ module Google
|
|
1124
1211
|
end
|
1125
1212
|
end
|
1126
1213
|
|
1214
|
+
class PerAppResult
|
1215
|
+
# @private
|
1216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1217
|
+
property :clearing_result, as: 'clearingResult'
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
1127
1221
|
class PermissionGrant
|
1128
1222
|
# @private
|
1129
1223
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1376,6 +1470,16 @@ module Google
|
|
1376
1470
|
end
|
1377
1471
|
end
|
1378
1472
|
|
1473
|
+
class SpecificNonComplianceContext
|
1474
|
+
# @private
|
1475
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1476
|
+
property :onc_wifi_context, as: 'oncWifiContext', class: Google::Apis::AndroidmanagementV1::OncWifiContext, decorator: Google::Apis::AndroidmanagementV1::OncWifiContext::Representation
|
1477
|
+
|
1478
|
+
property :password_policies_context, as: 'passwordPoliciesContext', class: Google::Apis::AndroidmanagementV1::PasswordPoliciesContext, decorator: Google::Apis::AndroidmanagementV1::PasswordPoliciesContext::Representation
|
1479
|
+
|
1480
|
+
end
|
1481
|
+
end
|
1482
|
+
|
1379
1483
|
class Status
|
1380
1484
|
# @private
|
1381
1485
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -606,7 +606,12 @@ module Google
|
|
606
606
|
execute_or_queue_command(command, &block)
|
607
607
|
end
|
608
608
|
|
609
|
-
# Creates an enrollment token for a given enterprise.
|
609
|
+
# Creates an enrollment token for a given enterprise. It's up to the caller's
|
610
|
+
# responsibility to manage the lifecycle of newly created tokens and deleting
|
611
|
+
# them when they're not intended to be used anymore. Once an enrollment token
|
612
|
+
# has been created, it's not possible to retrieve the token's content anymore
|
613
|
+
# using AM API. It is recommended for EMMs to securely store the token if it's
|
614
|
+
# intended to be reused.
|
610
615
|
# @param [String] parent
|
611
616
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
612
617
|
# @param [Google::Apis::AndroidmanagementV1::EnrollmentToken] enrollment_token_object
|
@@ -671,6 +676,83 @@ module Google
|
|
671
676
|
execute_or_queue_command(command, &block)
|
672
677
|
end
|
673
678
|
|
679
|
+
# Gets an active, unexpired enrollment token. Only a partial view of
|
680
|
+
# EnrollmentToken is returned: all the fields but name and expiration_timestamp
|
681
|
+
# are empty. This method is meant to help manage active enrollment tokens
|
682
|
+
# lifecycle. For security reasons, it's recommended to delete active enrollment
|
683
|
+
# tokens as soon as they're not intended to be used anymore.
|
684
|
+
# @param [String] name
|
685
|
+
# Required. The name of the enrollment token in the form enterprises/`
|
686
|
+
# enterpriseId`/enrollmentTokens/`enrollmentTokenId`.
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::EnrollmentToken] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::AndroidmanagementV1::EnrollmentToken]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def get_enterprise_enrollment_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
706
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::EnrollmentToken::Representation
|
707
|
+
command.response_class = Google::Apis::AndroidmanagementV1::EnrollmentToken
|
708
|
+
command.params['name'] = name unless name.nil?
|
709
|
+
command.query['fields'] = fields unless fields.nil?
|
710
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Lists active, unexpired enrollment tokens for a given enterprise. The list
|
715
|
+
# items contain only a partial view of EnrollmentToken: all the fields but name
|
716
|
+
# and expiration_timestamp are empty. This method is meant to help manage active
|
717
|
+
# enrollment tokens lifecycle. For security reasons, it's recommended to delete
|
718
|
+
# active enrollment tokens as soon as they're not intended to be used anymore.
|
719
|
+
# @param [String] parent
|
720
|
+
# Required. The name of the enterprise in the form enterprises/`enterpriseId`.
|
721
|
+
# @param [Fixnum] page_size
|
722
|
+
# The requested page size. The service may return fewer than this value. If
|
723
|
+
# unspecified, at most 10 items will be returned. The maximum value is 100;
|
724
|
+
# values above 100 will be coerced to 100.
|
725
|
+
# @param [String] page_token
|
726
|
+
# A token identifying a page of results returned by the server.
|
727
|
+
# @param [String] fields
|
728
|
+
# Selector specifying which fields to include in a partial response.
|
729
|
+
# @param [String] quota_user
|
730
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
731
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
732
|
+
# @param [Google::Apis::RequestOptions] options
|
733
|
+
# Request-specific options
|
734
|
+
#
|
735
|
+
# @yield [result, err] Result & error if block supplied
|
736
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse] parsed result object
|
737
|
+
# @yieldparam err [StandardError] error object if request failed
|
738
|
+
#
|
739
|
+
# @return [Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse]
|
740
|
+
#
|
741
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
742
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
743
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
744
|
+
def list_enterprise_enrollment_tokens(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
745
|
+
command = make_simple_command(:get, 'v1/{+parent}/enrollmentTokens', options)
|
746
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse::Representation
|
747
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListEnrollmentTokensResponse
|
748
|
+
command.params['parent'] = parent unless parent.nil?
|
749
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
750
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
751
|
+
command.query['fields'] = fields unless fields.nil?
|
752
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
753
|
+
execute_or_queue_command(command, &block)
|
754
|
+
end
|
755
|
+
|
674
756
|
# Deletes a policy. This operation is only permitted if no devices are currently
|
675
757
|
# referencing the policy.
|
676
758
|
# @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.35.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: 2022-06-
|
11
|
+
date: 2022-06-13 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.35.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: []
|