google-apis-androidmanagement_v1 0.1.0 → 0.12.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 +47 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +270 -24
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidmanagement_v1/representations.rb +100 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +80 -1
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbd76396fa4336a4d928e4dc3ef75acfae0fec452166f339a4fa50df693a91b
|
4
|
+
data.tar.gz: d6814b7152f6ad56f7a437e7e3d75ac1d5642d65a60bf7c4b46aa7a8863eb828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e89b1c74ff5ce13a42927c70783ce4c382e806ece74b22ca8543907be03db9189fcd590a659d01595888ff8f3733c2797bf2bedd228451e1232ec48fd5df41
|
7
|
+
data.tar.gz: ba7a4d582a9e0b3371990de0668f7865e5ff60ceb3078036fdbd6db4ee12cd52fceb1c35165496ce349e64a3026161808aa823bf158a22eb4860f01a0fff3979
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,52 @@
|
|
1
1
|
# Release history for google-apis-androidmanagement_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.11.0 (2021-06-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210607
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.10.0 (2021-06-01)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210524
|
15
|
+
|
16
|
+
### v0.9.0 (2021-05-19)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.8.0 (2021-04-18)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210405
|
23
|
+
|
24
|
+
### v0.7.0 (2021-03-30)
|
25
|
+
|
26
|
+
* Regenerated from discovery document revision 20210322
|
27
|
+
|
28
|
+
### v0.6.0 (2021-03-12)
|
29
|
+
|
30
|
+
* Regenerated from discovery document revision 20210311
|
31
|
+
* Regenerated using generator version 0.2.0
|
32
|
+
|
33
|
+
### v0.5.0 (2021-03-04)
|
34
|
+
|
35
|
+
* Unspecified changes
|
36
|
+
|
37
|
+
### v0.4.0 (2021-02-16)
|
38
|
+
|
39
|
+
* Regenerated from discovery document revision 20210208
|
40
|
+
|
41
|
+
### v0.3.0 (2021-02-10)
|
42
|
+
|
43
|
+
* Regenerated from discovery document revision 20210201
|
44
|
+
|
45
|
+
### v0.2.0 (2021-02-03)
|
46
|
+
|
47
|
+
* Regenerated from discovery document revision 20210127
|
48
|
+
* Regenerated using generator version 0.1.2
|
49
|
+
|
3
50
|
### v0.1.0 (2021-01-07)
|
4
51
|
|
5
52
|
* Regenerated using generator version 0.1.1
|
@@ -40,6 +40,19 @@ module Google
|
|
40
40
|
# @return [String]
|
41
41
|
attr_accessor :common_criteria_mode
|
42
42
|
|
43
|
+
# Controls access to developer settings: developer options and safe boot.
|
44
|
+
# Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (
|
45
|
+
# deprecated).
|
46
|
+
# Corresponds to the JSON property `developerSettings`
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :developer_settings
|
49
|
+
|
50
|
+
# Whether Google Play Protect verification (https://support.google.com/accounts/
|
51
|
+
# answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated).
|
52
|
+
# Corresponds to the JSON property `googlePlayProtectVerifyApps`
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :google_play_protect_verify_apps
|
55
|
+
|
43
56
|
# The policy for untrusted apps (apps from unknown sources) enforced on the
|
44
57
|
# device. Replaces install_unknown_sources_allowed (deprecated).
|
45
58
|
# Corresponds to the JSON property `untrustedAppsPolicy`
|
@@ -53,6 +66,8 @@ module Google
|
|
53
66
|
# Update properties of this object
|
54
67
|
def update!(**args)
|
55
68
|
@common_criteria_mode = args[:common_criteria_mode] if args.key?(:common_criteria_mode)
|
69
|
+
@developer_settings = args[:developer_settings] if args.key?(:developer_settings)
|
70
|
+
@google_play_protect_verify_apps = args[:google_play_protect_verify_apps] if args.key?(:google_play_protect_verify_apps)
|
56
71
|
@untrusted_apps_policy = args[:untrusted_apps_policy] if args.key?(:untrusted_apps_policy)
|
57
72
|
end
|
58
73
|
end
|
@@ -247,7 +262,7 @@ module Google
|
|
247
262
|
# @return [Array<String>]
|
248
263
|
attr_accessor :accessible_track_ids
|
249
264
|
|
250
|
-
#
|
265
|
+
# Controls the auto-update mode for the app.
|
251
266
|
# Corresponds to the JSON property `autoUpdateMode`
|
252
267
|
# @return [String]
|
253
268
|
attr_accessor :auto_update_mode
|
@@ -485,17 +500,34 @@ module Google
|
|
485
500
|
end
|
486
501
|
end
|
487
502
|
|
488
|
-
#
|
489
|
-
#
|
503
|
+
# Controls apps' access to private keys. The rule determines which private key,
|
504
|
+
# if any, Android Device Policy grants to the specified app. Access is granted
|
505
|
+
# either when the app calls KeyChain.choosePrivateKeyAlias (https://developer.
|
506
|
+
# android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%
|
507
|
+
# 28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.
|
508
|
+
# String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.
|
509
|
+
# String%29) (or any overloads) to request a private key alias for a given URL,
|
510
|
+
# or for rules that are not URL-specific (that is, if urlPattern is not set, or
|
511
|
+
# set to the empty string or .*) on Android 11 and above, directly so that the
|
512
|
+
# app can call KeyChain.getPrivateKey (https://developer.android.com/reference/
|
513
|
+
# android/security/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.
|
514
|
+
# String%29), without first having to call KeyChain.choosePrivateKeyAlias.When
|
515
|
+
# an app calls KeyChain.choosePrivateKeyAlias if more than one
|
516
|
+
# choosePrivateKeyRules matches, the last matching rule defines which key alias
|
517
|
+
# to return.
|
490
518
|
class ChoosePrivateKeyRule
|
491
519
|
include Google::Apis::Core::Hashable
|
492
520
|
|
493
|
-
# The package names
|
494
|
-
#
|
495
|
-
# package
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
521
|
+
# The package names to which this rule applies. The hash of the signing
|
522
|
+
# certificate for each app is verified against the hash provided by Play. If no
|
523
|
+
# package names are specified, then the alias is provided to all apps that call
|
524
|
+
# KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/
|
525
|
+
# android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%
|
526
|
+
# 20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.
|
527
|
+
# security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any
|
528
|
+
# overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on
|
529
|
+
# Android 11 and above). Any app with the same Android UID as a package
|
530
|
+
# specified here will have access when they call KeyChain.choosePrivateKeyAlias.
|
499
531
|
# Corresponds to the JSON property `packageNames`
|
500
532
|
# @return [Array<String>]
|
501
533
|
attr_accessor :package_names
|
@@ -505,8 +537,9 @@ module Google
|
|
505
537
|
# @return [String]
|
506
538
|
attr_accessor :private_key_alias
|
507
539
|
|
508
|
-
# The URL pattern to match against the URL of the
|
509
|
-
#
|
540
|
+
# The URL pattern to match against the URL of the request. If not set or empty,
|
541
|
+
# it matches all URLs. This uses the regular expression syntax of java.util.
|
542
|
+
# regex.Pattern.
|
510
543
|
# Corresponds to the JSON property `urlPattern`
|
511
544
|
# @return [String]
|
512
545
|
attr_accessor :url_pattern
|
@@ -660,6 +693,96 @@ module Google
|
|
660
693
|
end
|
661
694
|
end
|
662
695
|
|
696
|
+
# Contact details for LaForge enterprises.
|
697
|
+
class ContactInfo
|
698
|
+
include Google::Apis::Core::Hashable
|
699
|
+
|
700
|
+
# Email address for a point of contact, which will be used to send important
|
701
|
+
# announcements related to managed Google Play.
|
702
|
+
# Corresponds to the JSON property `contactEmail`
|
703
|
+
# @return [String]
|
704
|
+
attr_accessor :contact_email
|
705
|
+
|
706
|
+
# The email of the data protection officer. The email is validated but not
|
707
|
+
# verified.
|
708
|
+
# Corresponds to the JSON property `dataProtectionOfficerEmail`
|
709
|
+
# @return [String]
|
710
|
+
attr_accessor :data_protection_officer_email
|
711
|
+
|
712
|
+
# The name of the data protection officer.
|
713
|
+
# Corresponds to the JSON property `dataProtectionOfficerName`
|
714
|
+
# @return [String]
|
715
|
+
attr_accessor :data_protection_officer_name
|
716
|
+
|
717
|
+
# The phone number of the data protection officer The phone number is validated
|
718
|
+
# but not verified.
|
719
|
+
# Corresponds to the JSON property `dataProtectionOfficerPhone`
|
720
|
+
# @return [String]
|
721
|
+
attr_accessor :data_protection_officer_phone
|
722
|
+
|
723
|
+
# The email of the EU representative. The email is validated but not verified.
|
724
|
+
# Corresponds to the JSON property `euRepresentativeEmail`
|
725
|
+
# @return [String]
|
726
|
+
attr_accessor :eu_representative_email
|
727
|
+
|
728
|
+
# The name of the EU representative.
|
729
|
+
# Corresponds to the JSON property `euRepresentativeName`
|
730
|
+
# @return [String]
|
731
|
+
attr_accessor :eu_representative_name
|
732
|
+
|
733
|
+
# The phone number of the EU representative. The phone number is validated but
|
734
|
+
# not verified.
|
735
|
+
# Corresponds to the JSON property `euRepresentativePhone`
|
736
|
+
# @return [String]
|
737
|
+
attr_accessor :eu_representative_phone
|
738
|
+
|
739
|
+
def initialize(**args)
|
740
|
+
update!(**args)
|
741
|
+
end
|
742
|
+
|
743
|
+
# Update properties of this object
|
744
|
+
def update!(**args)
|
745
|
+
@contact_email = args[:contact_email] if args.key?(:contact_email)
|
746
|
+
@data_protection_officer_email = args[:data_protection_officer_email] if args.key?(:data_protection_officer_email)
|
747
|
+
@data_protection_officer_name = args[:data_protection_officer_name] if args.key?(:data_protection_officer_name)
|
748
|
+
@data_protection_officer_phone = args[:data_protection_officer_phone] if args.key?(:data_protection_officer_phone)
|
749
|
+
@eu_representative_email = args[:eu_representative_email] if args.key?(:eu_representative_email)
|
750
|
+
@eu_representative_name = args[:eu_representative_name] if args.key?(:eu_representative_name)
|
751
|
+
@eu_representative_phone = args[:eu_representative_phone] if args.key?(:eu_representative_phone)
|
752
|
+
end
|
753
|
+
end
|
754
|
+
|
755
|
+
# This feature is not generally available.
|
756
|
+
class ContentProviderEndpoint
|
757
|
+
include Google::Apis::Core::Hashable
|
758
|
+
|
759
|
+
# This feature is not generally available.
|
760
|
+
# Corresponds to the JSON property `packageName`
|
761
|
+
# @return [String]
|
762
|
+
attr_accessor :package_name
|
763
|
+
|
764
|
+
# Required. This feature is not generally available.
|
765
|
+
# Corresponds to the JSON property `signingCertsSha256`
|
766
|
+
# @return [Array<String>]
|
767
|
+
attr_accessor :signing_certs_sha256
|
768
|
+
|
769
|
+
# This feature is not generally available.
|
770
|
+
# Corresponds to the JSON property `uri`
|
771
|
+
# @return [String]
|
772
|
+
attr_accessor :uri
|
773
|
+
|
774
|
+
def initialize(**args)
|
775
|
+
update!(**args)
|
776
|
+
end
|
777
|
+
|
778
|
+
# Update properties of this object
|
779
|
+
def update!(**args)
|
780
|
+
@package_name = args[:package_name] if args.key?(:package_name)
|
781
|
+
@signing_certs_sha256 = args[:signing_certs_sha256] if args.key?(:signing_certs_sha256)
|
782
|
+
@uri = args[:uri] if args.key?(:uri)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
663
786
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
664
787
|
# day and time zone are either specified elsewhere or are insignificant. The
|
665
788
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
@@ -717,6 +840,13 @@ module Google
|
|
717
840
|
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationReport>]
|
718
841
|
attr_accessor :application_reports
|
719
842
|
|
843
|
+
# The password requirements currently applied to the device. The applied
|
844
|
+
# requirements may be slightly different from those specified in
|
845
|
+
# passwordPolicies in some cases. fieldPath is set based on passwordPolicies.
|
846
|
+
# Corresponds to the JSON property `appliedPasswordPolicies`
|
847
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::PasswordRequirements>]
|
848
|
+
attr_accessor :applied_password_policies
|
849
|
+
|
720
850
|
# The name of the policy currently applied to the device.
|
721
851
|
# Corresponds to the JSON property `appliedPolicyName`
|
722
852
|
# @return [String]
|
@@ -918,6 +1048,7 @@ module Google
|
|
918
1048
|
def update!(**args)
|
919
1049
|
@api_level = args[:api_level] if args.key?(:api_level)
|
920
1050
|
@application_reports = args[:application_reports] if args.key?(:application_reports)
|
1051
|
+
@applied_password_policies = args[:applied_password_policies] if args.key?(:applied_password_policies)
|
921
1052
|
@applied_policy_name = args[:applied_policy_name] if args.key?(:applied_policy_name)
|
922
1053
|
@applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
|
923
1054
|
@applied_state = args[:applied_state] if args.key?(:applied_state)
|
@@ -993,8 +1124,8 @@ module Google
|
|
993
1124
|
attr_accessor :unknown_sources_enabled
|
994
1125
|
alias_method :unknown_sources_enabled?, :unknown_sources_enabled
|
995
1126
|
|
996
|
-
# Whether
|
997
|
-
#
|
1127
|
+
# Whether Google Play Protect verification (https://support.google.com/accounts/
|
1128
|
+
# answer/2812853) is enforced on the device.
|
998
1129
|
# Corresponds to the JSON property `verifyAppsEnabled`
|
999
1130
|
# @return [Boolean]
|
1000
1131
|
attr_accessor :verify_apps_enabled
|
@@ -1112,7 +1243,7 @@ module Google
|
|
1112
1243
|
# @return [String]
|
1113
1244
|
attr_accessor :allow_personal_usage
|
1114
1245
|
|
1115
|
-
# The length of time the enrollment token is valid, ranging from 1 minute to
|
1246
|
+
# The length of time the enrollment token is valid, ranging from 1 minute to 90
|
1116
1247
|
# days. If not specified, the default duration is 1 hour.
|
1117
1248
|
# Corresponds to the JSON property `duration`
|
1118
1249
|
# @return [String]
|
@@ -1197,6 +1328,11 @@ module Google
|
|
1197
1328
|
attr_accessor :app_auto_approval_enabled
|
1198
1329
|
alias_method :app_auto_approval_enabled?, :app_auto_approval_enabled
|
1199
1330
|
|
1331
|
+
# Contact details for LaForge enterprises.
|
1332
|
+
# Corresponds to the JSON property `contactInfo`
|
1333
|
+
# @return [Google::Apis::AndroidmanagementV1::ContactInfo]
|
1334
|
+
attr_accessor :contact_info
|
1335
|
+
|
1200
1336
|
# The types of Google Pub/Sub notifications enabled for the enterprise.
|
1201
1337
|
# Corresponds to the JSON property `enabledNotificationTypes`
|
1202
1338
|
# @return [Array<String>]
|
@@ -1252,6 +1388,7 @@ module Google
|
|
1252
1388
|
# Update properties of this object
|
1253
1389
|
def update!(**args)
|
1254
1390
|
@app_auto_approval_enabled = args[:app_auto_approval_enabled] if args.key?(:app_auto_approval_enabled)
|
1391
|
+
@contact_info = args[:contact_info] if args.key?(:contact_info)
|
1255
1392
|
@enabled_notification_types = args[:enabled_notification_types] if args.key?(:enabled_notification_types)
|
1256
1393
|
@enterprise_display_name = args[:enterprise_display_name] if args.key?(:enterprise_display_name)
|
1257
1394
|
@logo = args[:logo] if args.key?(:logo)
|
@@ -1500,6 +1637,19 @@ module Google
|
|
1500
1637
|
end
|
1501
1638
|
end
|
1502
1639
|
|
1640
|
+
# Response on issuing a command. This is currently empty as a placeholder.
|
1641
|
+
class IssueCommandResponse
|
1642
|
+
include Google::Apis::Core::Hashable
|
1643
|
+
|
1644
|
+
def initialize(**args)
|
1645
|
+
update!(**args)
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
# Update properties of this object
|
1649
|
+
def update!(**args)
|
1650
|
+
end
|
1651
|
+
end
|
1652
|
+
|
1503
1653
|
# Keyed app state reported by the app.
|
1504
1654
|
class KeyedAppState
|
1505
1655
|
include Google::Apis::Core::Hashable
|
@@ -1648,6 +1798,33 @@ module Google
|
|
1648
1798
|
end
|
1649
1799
|
end
|
1650
1800
|
|
1801
|
+
# This feature is not generally available yet. Response to a request to list
|
1802
|
+
# enterprises.
|
1803
|
+
class ListEnterprisesResponse
|
1804
|
+
include Google::Apis::Core::Hashable
|
1805
|
+
|
1806
|
+
# This feature is not generally available yet. The list of enterprises.
|
1807
|
+
# Corresponds to the JSON property `enterprises`
|
1808
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::Enterprise>]
|
1809
|
+
attr_accessor :enterprises
|
1810
|
+
|
1811
|
+
# This feature is not generally available yet. If there are more results, a
|
1812
|
+
# token to retrieve next page of results.
|
1813
|
+
# Corresponds to the JSON property `nextPageToken`
|
1814
|
+
# @return [String]
|
1815
|
+
attr_accessor :next_page_token
|
1816
|
+
|
1817
|
+
def initialize(**args)
|
1818
|
+
update!(**args)
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Update properties of this object
|
1822
|
+
def update!(**args)
|
1823
|
+
@enterprises = args[:enterprises] if args.key?(:enterprises)
|
1824
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1825
|
+
end
|
1826
|
+
end
|
1827
|
+
|
1651
1828
|
# The response message for Operations.ListOperations.
|
1652
1829
|
class ListOperationsResponse
|
1653
1830
|
include Google::Apis::Core::Hashable
|
@@ -1911,6 +2088,12 @@ module Google
|
|
1911
2088
|
# @return [String]
|
1912
2089
|
attr_accessor :network_operator_name
|
1913
2090
|
|
2091
|
+
# Provides telephony information associated with each SIM card on the device.
|
2092
|
+
# Only supported on fully managed devices starting from Android API level 23.
|
2093
|
+
# Corresponds to the JSON property `telephonyInfos`
|
2094
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::TelephonyInfo>]
|
2095
|
+
attr_accessor :telephony_infos
|
2096
|
+
|
1914
2097
|
# Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
|
1915
2098
|
# Corresponds to the JSON property `wifiMacAddress`
|
1916
2099
|
# @return [String]
|
@@ -1925,6 +2108,7 @@ module Google
|
|
1925
2108
|
@imei = args[:imei] if args.key?(:imei)
|
1926
2109
|
@meid = args[:meid] if args.key?(:meid)
|
1927
2110
|
@network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
|
2111
|
+
@telephony_infos = args[:telephony_infos] if args.key?(:telephony_infos)
|
1928
2112
|
@wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
|
1929
2113
|
end
|
1930
2114
|
end
|
@@ -2026,6 +2210,31 @@ module Google
|
|
2026
2210
|
end
|
2027
2211
|
end
|
2028
2212
|
|
2213
|
+
# This feature is not generally available.
|
2214
|
+
class OncCertificateProvider
|
2215
|
+
include Google::Apis::Core::Hashable
|
2216
|
+
|
2217
|
+
# This feature is not generally available.
|
2218
|
+
# Corresponds to the JSON property `certificateReferences`
|
2219
|
+
# @return [Array<String>]
|
2220
|
+
attr_accessor :certificate_references
|
2221
|
+
|
2222
|
+
# This feature is not generally available.
|
2223
|
+
# Corresponds to the JSON property `contentProviderEndpoint`
|
2224
|
+
# @return [Google::Apis::AndroidmanagementV1::ContentProviderEndpoint]
|
2225
|
+
attr_accessor :content_provider_endpoint
|
2226
|
+
|
2227
|
+
def initialize(**args)
|
2228
|
+
update!(**args)
|
2229
|
+
end
|
2230
|
+
|
2231
|
+
# Update properties of this object
|
2232
|
+
def update!(**args)
|
2233
|
+
@certificate_references = args[:certificate_references] if args.key?(:certificate_references)
|
2234
|
+
@content_provider_endpoint = args[:content_provider_endpoint] if args.key?(:content_provider_endpoint)
|
2235
|
+
end
|
2236
|
+
end
|
2237
|
+
|
2029
2238
|
# This resource represents a long-running operation that is the result of a
|
2030
2239
|
# network API call.
|
2031
2240
|
class Operation
|
@@ -2323,7 +2532,8 @@ module Google
|
|
2323
2532
|
attr_accessor :camera_disabled
|
2324
2533
|
alias_method :camera_disabled?, :camera_disabled
|
2325
2534
|
|
2326
|
-
# Controls how long the work profile can stay off.
|
2535
|
+
# Controls how long the work profile can stay off. The duration must be at least
|
2536
|
+
# 3 days.
|
2327
2537
|
# Corresponds to the JSON property `maxDaysWithWorkOff`
|
2328
2538
|
# @return [Fixnum]
|
2329
2539
|
attr_accessor :max_days_with_work_off
|
@@ -2376,7 +2586,7 @@ module Google
|
|
2376
2586
|
attr_accessor :add_user_disabled
|
2377
2587
|
alias_method :add_user_disabled?, :add_user_disabled
|
2378
2588
|
|
2379
|
-
# Whether adjusting the master volume is disabled.
|
2589
|
+
# Whether adjusting the master volume is disabled. Also mutes the device.
|
2380
2590
|
# Corresponds to the JSON property `adjustVolumeDisabled`
|
2381
2591
|
# @return [Boolean]
|
2382
2592
|
attr_accessor :adjust_volume_disabled
|
@@ -2401,6 +2611,8 @@ module Google
|
|
2401
2611
|
# @return [Array<String>]
|
2402
2612
|
attr_accessor :android_device_policy_tracks
|
2403
2613
|
|
2614
|
+
# Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to
|
2615
|
+
# AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect.
|
2404
2616
|
# The app auto update policy, which controls when automatic app updates can be
|
2405
2617
|
# applied.
|
2406
2618
|
# Corresponds to the JSON property `appAutoUpdatePolicy`
|
@@ -2466,10 +2678,8 @@ module Google
|
|
2466
2678
|
attr_accessor :cell_broadcasts_config_disabled
|
2467
2679
|
alias_method :cell_broadcasts_config_disabled?, :cell_broadcasts_config_disabled
|
2468
2680
|
|
2469
|
-
# Rules for
|
2470
|
-
#
|
2471
|
-
# an outgoing request matches more than one rule, the last rule defines which
|
2472
|
-
# private key to use.
|
2681
|
+
# Rules for determining apps' access to private keys. See ChoosePrivateKeyRule
|
2682
|
+
# for details.
|
2473
2683
|
# Corresponds to the JSON property `choosePrivateKeyRules`
|
2474
2684
|
# @return [Array<Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule>]
|
2475
2685
|
attr_accessor :choose_private_key_rules
|
@@ -2555,8 +2765,7 @@ module Google
|
|
2555
2765
|
attr_accessor :install_apps_disabled
|
2556
2766
|
alias_method :install_apps_disabled?, :install_apps_disabled
|
2557
2767
|
|
2558
|
-
#
|
2559
|
-
# allows installation of apps from unknown sources.
|
2768
|
+
# This field has no effect.
|
2560
2769
|
# Corresponds to the JSON property `installUnknownSourcesAllowed`
|
2561
2770
|
# @return [Boolean]
|
2562
2771
|
attr_accessor :install_unknown_sources_allowed
|
@@ -2641,7 +2850,9 @@ module Google
|
|
2641
2850
|
# temporary network will be forgotten and the device will continue booting. This
|
2642
2851
|
# prevents being unable to connect to a network if there is no suitable network
|
2643
2852
|
# in the last policy and the device boots into an app in lock task mode, or the
|
2644
|
-
# user is otherwise unable to reach device settings.
|
2853
|
+
# user is otherwise unable to reach device settings.Note: Setting
|
2854
|
+
# wifiConfigDisabled to true will override this setting under specific
|
2855
|
+
# circumstances. Please see wifiConfigDisabled for further details.
|
2645
2856
|
# Corresponds to the JSON property `networkEscapeHatchEnabled`
|
2646
2857
|
# @return [Boolean]
|
2647
2858
|
attr_accessor :network_escape_hatch_enabled
|
@@ -2653,6 +2864,11 @@ module Google
|
|
2653
2864
|
attr_accessor :network_reset_disabled
|
2654
2865
|
alias_method :network_reset_disabled?, :network_reset_disabled
|
2655
2866
|
|
2867
|
+
# This feature is not generally available.
|
2868
|
+
# Corresponds to the JSON property `oncCertificateProviders`
|
2869
|
+
# @return [Array<Google::Apis::AndroidmanagementV1::OncCertificateProvider>]
|
2870
|
+
attr_accessor :onc_certificate_providers
|
2871
|
+
|
2656
2872
|
# Network configuration for the device. See configure networks for more
|
2657
2873
|
# information.
|
2658
2874
|
# Corresponds to the JSON property `openNetworkConfiguration`
|
@@ -2864,7 +3080,10 @@ module Google
|
|
2864
3080
|
attr_accessor :vpn_config_disabled
|
2865
3081
|
alias_method :vpn_config_disabled?, :vpn_config_disabled
|
2866
3082
|
|
2867
|
-
# Whether configuring Wi-Fi access points is disabled.
|
3083
|
+
# Whether configuring Wi-Fi access points is disabled.Note: If a network
|
3084
|
+
# connection can't be made at boot time and configuring Wi-Fi is disabled then
|
3085
|
+
# network escape hatch will be shown in order to refresh the device policy (see
|
3086
|
+
# networkEscapeHatchEnabled).
|
2868
3087
|
# Corresponds to the JSON property `wifiConfigDisabled`
|
2869
3088
|
# @return [Boolean]
|
2870
3089
|
attr_accessor :wifi_config_disabled
|
@@ -2927,6 +3146,7 @@ module Google
|
|
2927
3146
|
@name = args[:name] if args.key?(:name)
|
2928
3147
|
@network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
|
2929
3148
|
@network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
|
3149
|
+
@onc_certificate_providers = args[:onc_certificate_providers] if args.key?(:onc_certificate_providers)
|
2930
3150
|
@open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
|
2931
3151
|
@outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
|
2932
3152
|
@outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
|
@@ -3525,6 +3745,32 @@ module Google
|
|
3525
3745
|
end
|
3526
3746
|
end
|
3527
3747
|
|
3748
|
+
# Telephony information associated with a given SIM card on the device. Only
|
3749
|
+
# supported on fully managed devices starting from Android API level 23.
|
3750
|
+
class TelephonyInfo
|
3751
|
+
include Google::Apis::Core::Hashable
|
3752
|
+
|
3753
|
+
# The carrier name associated with this SIM card.
|
3754
|
+
# Corresponds to the JSON property `carrierName`
|
3755
|
+
# @return [String]
|
3756
|
+
attr_accessor :carrier_name
|
3757
|
+
|
3758
|
+
# The phone number associated with this SIM card.
|
3759
|
+
# Corresponds to the JSON property `phoneNumber`
|
3760
|
+
# @return [String]
|
3761
|
+
attr_accessor :phone_number
|
3762
|
+
|
3763
|
+
def initialize(**args)
|
3764
|
+
update!(**args)
|
3765
|
+
end
|
3766
|
+
|
3767
|
+
# Update properties of this object
|
3768
|
+
def update!(**args)
|
3769
|
+
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
3770
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
3771
|
+
end
|
3772
|
+
end
|
3773
|
+
|
3528
3774
|
# A terms and conditions page to be accepted during provisioning.
|
3529
3775
|
class TermsAndConditions
|
3530
3776
|
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.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210607"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,18 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class ContactInfo
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ContentProviderEndpoint
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class Date
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -178,6 +190,12 @@ module Google
|
|
178
190
|
include Google::Apis::Core::JsonObjectSupport
|
179
191
|
end
|
180
192
|
|
193
|
+
class IssueCommandResponse
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
181
199
|
class KeyedAppState
|
182
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
201
|
|
@@ -202,6 +220,12 @@ module Google
|
|
202
220
|
include Google::Apis::Core::JsonObjectSupport
|
203
221
|
end
|
204
222
|
|
223
|
+
class ListEnterprisesResponse
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
205
229
|
class ListOperationsResponse
|
206
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
231
|
|
@@ -268,6 +292,12 @@ module Google
|
|
268
292
|
include Google::Apis::Core::JsonObjectSupport
|
269
293
|
end
|
270
294
|
|
295
|
+
class OncCertificateProvider
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
271
301
|
class Operation
|
272
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
303
|
|
@@ -394,6 +424,12 @@ module Google
|
|
394
424
|
include Google::Apis::Core::JsonObjectSupport
|
395
425
|
end
|
396
426
|
|
427
|
+
class TelephonyInfo
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
397
433
|
class TermsAndConditions
|
398
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
435
|
|
@@ -440,6 +476,8 @@ module Google
|
|
440
476
|
# @private
|
441
477
|
class Representation < Google::Apis::Core::JsonRepresentation
|
442
478
|
property :common_criteria_mode, as: 'commonCriteriaMode'
|
479
|
+
property :developer_settings, as: 'developerSettings'
|
480
|
+
property :google_play_protect_verify_apps, as: 'googlePlayProtectVerifyApps'
|
443
481
|
property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
|
444
482
|
end
|
445
483
|
end
|
@@ -594,6 +632,28 @@ module Google
|
|
594
632
|
end
|
595
633
|
end
|
596
634
|
|
635
|
+
class ContactInfo
|
636
|
+
# @private
|
637
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
638
|
+
property :contact_email, as: 'contactEmail'
|
639
|
+
property :data_protection_officer_email, as: 'dataProtectionOfficerEmail'
|
640
|
+
property :data_protection_officer_name, as: 'dataProtectionOfficerName'
|
641
|
+
property :data_protection_officer_phone, as: 'dataProtectionOfficerPhone'
|
642
|
+
property :eu_representative_email, as: 'euRepresentativeEmail'
|
643
|
+
property :eu_representative_name, as: 'euRepresentativeName'
|
644
|
+
property :eu_representative_phone, as: 'euRepresentativePhone'
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
class ContentProviderEndpoint
|
649
|
+
# @private
|
650
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
651
|
+
property :package_name, as: 'packageName'
|
652
|
+
collection :signing_certs_sha256, as: 'signingCertsSha256'
|
653
|
+
property :uri, as: 'uri'
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
597
657
|
class Date
|
598
658
|
# @private
|
599
659
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -609,6 +669,8 @@ module Google
|
|
609
669
|
property :api_level, as: 'apiLevel'
|
610
670
|
collection :application_reports, as: 'applicationReports', class: Google::Apis::AndroidmanagementV1::ApplicationReport, decorator: Google::Apis::AndroidmanagementV1::ApplicationReport::Representation
|
611
671
|
|
672
|
+
collection :applied_password_policies, as: 'appliedPasswordPolicies', class: Google::Apis::AndroidmanagementV1::PasswordRequirements, decorator: Google::Apis::AndroidmanagementV1::PasswordRequirements::Representation
|
673
|
+
|
612
674
|
property :applied_policy_name, as: 'appliedPolicyName'
|
613
675
|
property :applied_policy_version, :numeric_string => true, as: 'appliedPolicyVersion'
|
614
676
|
property :applied_state, as: 'appliedState'
|
@@ -711,6 +773,8 @@ module Google
|
|
711
773
|
# @private
|
712
774
|
class Representation < Google::Apis::Core::JsonRepresentation
|
713
775
|
property :app_auto_approval_enabled, as: 'appAutoApprovalEnabled'
|
776
|
+
property :contact_info, as: 'contactInfo', class: Google::Apis::AndroidmanagementV1::ContactInfo, decorator: Google::Apis::AndroidmanagementV1::ContactInfo::Representation
|
777
|
+
|
714
778
|
collection :enabled_notification_types, as: 'enabledNotificationTypes'
|
715
779
|
property :enterprise_display_name, as: 'enterpriseDisplayName'
|
716
780
|
property :logo, as: 'logo', class: Google::Apis::AndroidmanagementV1::ExternalData, decorator: Google::Apis::AndroidmanagementV1::ExternalData::Representation
|
@@ -776,6 +840,12 @@ module Google
|
|
776
840
|
end
|
777
841
|
end
|
778
842
|
|
843
|
+
class IssueCommandResponse
|
844
|
+
# @private
|
845
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
779
849
|
class KeyedAppState
|
780
850
|
# @private
|
781
851
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -815,6 +885,15 @@ module Google
|
|
815
885
|
end
|
816
886
|
end
|
817
887
|
|
888
|
+
class ListEnterprisesResponse
|
889
|
+
# @private
|
890
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
891
|
+
collection :enterprises, as: 'enterprises', class: Google::Apis::AndroidmanagementV1::Enterprise, decorator: Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
892
|
+
|
893
|
+
property :next_page_token, as: 'nextPageToken'
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
818
897
|
class ListOperationsResponse
|
819
898
|
# @private
|
820
899
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -896,6 +975,8 @@ module Google
|
|
896
975
|
property :imei, as: 'imei'
|
897
976
|
property :meid, as: 'meid'
|
898
977
|
property :network_operator_name, as: 'networkOperatorName'
|
978
|
+
collection :telephony_infos, as: 'telephonyInfos', class: Google::Apis::AndroidmanagementV1::TelephonyInfo, decorator: Google::Apis::AndroidmanagementV1::TelephonyInfo::Representation
|
979
|
+
|
899
980
|
property :wifi_mac_address, as: 'wifiMacAddress'
|
900
981
|
end
|
901
982
|
end
|
@@ -921,6 +1002,15 @@ module Google
|
|
921
1002
|
end
|
922
1003
|
end
|
923
1004
|
|
1005
|
+
class OncCertificateProvider
|
1006
|
+
# @private
|
1007
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1008
|
+
collection :certificate_references, as: 'certificateReferences'
|
1009
|
+
property :content_provider_endpoint, as: 'contentProviderEndpoint', class: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint, decorator: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint::Representation
|
1010
|
+
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
924
1014
|
class Operation
|
925
1015
|
# @private
|
926
1016
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1053,6 +1143,8 @@ module Google
|
|
1053
1143
|
property :name, as: 'name'
|
1054
1144
|
property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
|
1055
1145
|
property :network_reset_disabled, as: 'networkResetDisabled'
|
1146
|
+
collection :onc_certificate_providers, as: 'oncCertificateProviders', class: Google::Apis::AndroidmanagementV1::OncCertificateProvider, decorator: Google::Apis::AndroidmanagementV1::OncCertificateProvider::Representation
|
1147
|
+
|
1056
1148
|
hash :open_network_configuration, as: 'openNetworkConfiguration'
|
1057
1149
|
property :outgoing_beam_disabled, as: 'outgoingBeamDisabled'
|
1058
1150
|
property :outgoing_calls_disabled, as: 'outgoingCallsDisabled'
|
@@ -1248,6 +1340,14 @@ module Google
|
|
1248
1340
|
end
|
1249
1341
|
end
|
1250
1342
|
|
1343
|
+
class TelephonyInfo
|
1344
|
+
# @private
|
1345
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1346
|
+
property :carrier_name, as: 'carrierName'
|
1347
|
+
property :phone_number, as: 'phoneNumber'
|
1348
|
+
end
|
1349
|
+
end
|
1350
|
+
|
1251
1351
|
class TermsAndConditions
|
1252
1352
|
# @private
|
1253
1353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
|
53
53
|
# Creates an enterprise. This is the last step in the enterprise signup flow.
|
54
54
|
# @param [Google::Apis::AndroidmanagementV1::Enterprise] enterprise_object
|
55
|
+
# @param [Boolean] agreement_accepted
|
56
|
+
# This feature is not generally available yet. Whether the managed Google Play
|
57
|
+
# Agreement is presented and agreed.
|
55
58
|
# @param [String] enterprise_token
|
56
59
|
# The enterprise token appended to the callback URL.
|
57
60
|
# @param [String] project_id
|
@@ -75,12 +78,13 @@ module Google
|
|
75
78
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
79
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
80
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def create_enterprise(enterprise_object = nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
def create_enterprise(enterprise_object = nil, agreement_accepted: nil, enterprise_token: nil, project_id: nil, signup_url_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
82
|
command = make_simple_command(:post, 'v1/enterprises', options)
|
80
83
|
command.request_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
81
84
|
command.request_object = enterprise_object
|
82
85
|
command.response_representation = Google::Apis::AndroidmanagementV1::Enterprise::Representation
|
83
86
|
command.response_class = Google::Apis::AndroidmanagementV1::Enterprise
|
87
|
+
command.query['agreementAccepted'] = agreement_accepted unless agreement_accepted.nil?
|
84
88
|
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
|
85
89
|
command.query['projectId'] = project_id unless project_id.nil?
|
86
90
|
command.query['signupUrlName'] = signup_url_name unless signup_url_name.nil?
|
@@ -89,6 +93,37 @@ module Google
|
|
89
93
|
execute_or_queue_command(command, &block)
|
90
94
|
end
|
91
95
|
|
96
|
+
# This feature is not generally available yet. Deletes an enterprise.
|
97
|
+
# @param [String] name
|
98
|
+
# This feature is not generally available yet. The name of the enterprise in the
|
99
|
+
# form enterprises/`enterpriseId`.
|
100
|
+
# @param [String] fields
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
106
|
+
# Request-specific options
|
107
|
+
#
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
109
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::Empty] parsed result object
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
111
|
+
#
|
112
|
+
# @return [Google::Apis::AndroidmanagementV1::Empty]
|
113
|
+
#
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
+
def delete_enterprise(name, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
119
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
120
|
+
command.response_class = Google::Apis::AndroidmanagementV1::Empty
|
121
|
+
command.params['name'] = name unless name.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
execute_or_queue_command(command, &block)
|
125
|
+
end
|
126
|
+
|
92
127
|
# Gets an enterprise.
|
93
128
|
# @param [String] name
|
94
129
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
@@ -119,6 +154,50 @@ module Google
|
|
119
154
|
execute_or_queue_command(command, &block)
|
120
155
|
end
|
121
156
|
|
157
|
+
# This feature is not generally available yet. Lists enterprises that are
|
158
|
+
# managed by an EMM. Only partial views are returned.
|
159
|
+
# @param [Fixnum] page_size
|
160
|
+
# This feature is not generally available yet. The requested page size. The
|
161
|
+
# actual page size may be fixed to a min or max value.
|
162
|
+
# @param [String] page_token
|
163
|
+
# This feature is not generally available yet. A token identifying a page of
|
164
|
+
# results returned by the server.
|
165
|
+
# @param [String] project_id
|
166
|
+
# Required. This feature is not generally available yet. The ID of the Cloud
|
167
|
+
# project of the EMM the enterprises belongs to.
|
168
|
+
# @param [String] view
|
169
|
+
# This feature is not generally available yet. View that specify that partial
|
170
|
+
# response should be returned.
|
171
|
+
# @param [String] fields
|
172
|
+
# Selector specifying which fields to include in a partial response.
|
173
|
+
# @param [String] quota_user
|
174
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
175
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
176
|
+
# @param [Google::Apis::RequestOptions] options
|
177
|
+
# Request-specific options
|
178
|
+
#
|
179
|
+
# @yield [result, err] Result & error if block supplied
|
180
|
+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ListEnterprisesResponse] parsed result object
|
181
|
+
# @yieldparam err [StandardError] error object if request failed
|
182
|
+
#
|
183
|
+
# @return [Google::Apis::AndroidmanagementV1::ListEnterprisesResponse]
|
184
|
+
#
|
185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
+
def list_enterprises(page_size: nil, page_token: nil, project_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
189
|
+
command = make_simple_command(:get, 'v1/enterprises', options)
|
190
|
+
command.response_representation = Google::Apis::AndroidmanagementV1::ListEnterprisesResponse::Representation
|
191
|
+
command.response_class = Google::Apis::AndroidmanagementV1::ListEnterprisesResponse
|
192
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
193
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
194
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
195
|
+
command.query['view'] = view unless view.nil?
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
+
execute_or_queue_command(command, &block)
|
199
|
+
end
|
200
|
+
|
122
201
|
# Updates an enterprise.
|
123
202
|
# @param [String] name
|
124
203
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Android Management API V1. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.12.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
71
|
+
version: '2.5'
|
66
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - ">="
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Android Management API V1
|