google-apis-androidenterprise_v1 0.39.0 → 0.45.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 +26 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/androidenterprise_v1/classes.rb +94 -0
- data/lib/google/apis/androidenterprise_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidenterprise_v1/representations.rb +46 -0
- data/lib/google/apis/androidenterprise_v1/service.rb +103 -39
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b5bd82749d3e56b5d30e3792b9c6efb8538981e59cfd8432252d0e1a6322438
|
|
4
|
+
data.tar.gz: c8b9921e6f1946ca0e81c07b8ee49e65a1338fe699ff895d8ac6527152aa2403
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e5c2af72b5f72f227bfa7c7097abc8b3c021be1df36d9d9bca26fa42405223e729f55e52625518c83e53f509d1a40231cd88ddd382823958eeaa3a69ecc37fa
|
|
7
|
+
data.tar.gz: 71823a30343dbeca32f75695b2770e7af68319348006a819e0477809c1c879970ae501b64bc29929248d7ba7f819673c506759e848d82cce1aa57135b1e8f1f8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Release history for google-apis-androidenterprise_v1
|
|
2
2
|
|
|
3
|
+
### v0.45.0 (2025-07-27)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20250720
|
|
6
|
+
|
|
7
|
+
### v0.44.0 (2025-06-15)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20250610
|
|
10
|
+
* Regenerated using generator version 0.18.0
|
|
11
|
+
|
|
12
|
+
### v0.43.0 (2025-05-04)
|
|
13
|
+
|
|
14
|
+
* Regenerated using generator version 0.17.0
|
|
15
|
+
|
|
16
|
+
### v0.42.0 (2025-04-06)
|
|
17
|
+
|
|
18
|
+
* Regenerated from discovery document revision 20250330
|
|
19
|
+
|
|
20
|
+
### v0.41.0 (2025-03-09)
|
|
21
|
+
|
|
22
|
+
* Regenerated from discovery document revision 20250302
|
|
23
|
+
|
|
24
|
+
### v0.40.0 (2025-02-26)
|
|
25
|
+
|
|
26
|
+
* Regenerated from discovery document revision 20250213
|
|
27
|
+
* Regenerated using generator version 0.16.0
|
|
28
|
+
|
|
3
29
|
### v0.39.0 (2025-01-05)
|
|
4
30
|
|
|
5
31
|
* Regenerated from discovery document revision 20250102
|
data/OVERVIEW.md
CHANGED
|
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/android/work/play/emm-
|
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby
|
|
86
|
+
This library is supported on Ruby 3.1+.
|
|
87
87
|
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
@@ -873,6 +873,11 @@ module Google
|
|
|
873
873
|
# @return [String]
|
|
874
874
|
attr_accessor :enrollment_token_type
|
|
875
875
|
|
|
876
|
+
# Options for Google authentication during the enrollment.
|
|
877
|
+
# Corresponds to the JSON property `googleAuthenticationOptions`
|
|
878
|
+
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentTokenGoogleAuthenticationOptions]
|
|
879
|
+
attr_accessor :google_authentication_options
|
|
880
|
+
|
|
876
881
|
# The token value that's passed to the device and authorizes the device to
|
|
877
882
|
# enroll. This is a read-only field generated by the server.
|
|
878
883
|
# Corresponds to the JSON property `token`
|
|
@@ -887,10 +892,41 @@ module Google
|
|
|
887
892
|
def update!(**args)
|
|
888
893
|
@duration = args[:duration] if args.key?(:duration)
|
|
889
894
|
@enrollment_token_type = args[:enrollment_token_type] if args.key?(:enrollment_token_type)
|
|
895
|
+
@google_authentication_options = args[:google_authentication_options] if args.key?(:google_authentication_options)
|
|
890
896
|
@token = args[:token] if args.key?(:token)
|
|
891
897
|
end
|
|
892
898
|
end
|
|
893
899
|
|
|
900
|
+
# Options for Google authentication during the enrollment.
|
|
901
|
+
class EnrollmentTokenGoogleAuthenticationOptions
|
|
902
|
+
include Google::Apis::Core::Hashable
|
|
903
|
+
|
|
904
|
+
# [Optional] Specifies whether user should authenticate with Google during
|
|
905
|
+
# enrollment. This setting, if specified,`GoogleAuthenticationSettings`
|
|
906
|
+
# specified for the enterprise resource is ignored for devices enrolled with
|
|
907
|
+
# this token.
|
|
908
|
+
# Corresponds to the JSON property `authenticationRequirement`
|
|
909
|
+
# @return [String]
|
|
910
|
+
attr_accessor :authentication_requirement
|
|
911
|
+
|
|
912
|
+
# [Optional] Specifies the managed Google account that the user must use during
|
|
913
|
+
# enrollment.`AuthenticationRequirement` must be set to`REQUIRED` if this field
|
|
914
|
+
# is set.
|
|
915
|
+
# Corresponds to the JSON property `requiredAccountEmail`
|
|
916
|
+
# @return [String]
|
|
917
|
+
attr_accessor :required_account_email
|
|
918
|
+
|
|
919
|
+
def initialize(**args)
|
|
920
|
+
update!(**args)
|
|
921
|
+
end
|
|
922
|
+
|
|
923
|
+
# Update properties of this object
|
|
924
|
+
def update!(**args)
|
|
925
|
+
@authentication_requirement = args[:authentication_requirement] if args.key?(:authentication_requirement)
|
|
926
|
+
@required_account_email = args[:required_account_email] if args.key?(:required_account_email)
|
|
927
|
+
end
|
|
928
|
+
end
|
|
929
|
+
|
|
894
930
|
# An Enterprises resource represents the binding between an EMM and a specific
|
|
895
931
|
# organization. That binding can be instantiated in one of two different ways
|
|
896
932
|
# using this API as follows: - For Google managed domain customers, the process
|
|
@@ -911,6 +947,11 @@ module Google
|
|
|
911
947
|
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
|
|
912
948
|
attr_accessor :administrator
|
|
913
949
|
|
|
950
|
+
# The type of the enterprise.
|
|
951
|
+
# Corresponds to the JSON property `enterpriseType`
|
|
952
|
+
# @return [String]
|
|
953
|
+
attr_accessor :enterprise_type
|
|
954
|
+
|
|
914
955
|
# Contains settings for Google-provided user authentication.
|
|
915
956
|
# Corresponds to the JSON property `googleAuthenticationSettings`
|
|
916
957
|
# @return [Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings]
|
|
@@ -921,6 +962,11 @@ module Google
|
|
|
921
962
|
# @return [String]
|
|
922
963
|
attr_accessor :id
|
|
923
964
|
|
|
965
|
+
# The type of managed Google domain
|
|
966
|
+
# Corresponds to the JSON property `managedGoogleDomainType`
|
|
967
|
+
# @return [String]
|
|
968
|
+
attr_accessor :managed_google_domain_type
|
|
969
|
+
|
|
924
970
|
# The name of the enterprise, for example, "Example, Inc".
|
|
925
971
|
# Corresponds to the JSON property `name`
|
|
926
972
|
# @return [String]
|
|
@@ -938,8 +984,10 @@ module Google
|
|
|
938
984
|
# Update properties of this object
|
|
939
985
|
def update!(**args)
|
|
940
986
|
@administrator = args[:administrator] if args.key?(:administrator)
|
|
987
|
+
@enterprise_type = args[:enterprise_type] if args.key?(:enterprise_type)
|
|
941
988
|
@google_authentication_settings = args[:google_authentication_settings] if args.key?(:google_authentication_settings)
|
|
942
989
|
@id = args[:id] if args.key?(:id)
|
|
990
|
+
@managed_google_domain_type = args[:managed_google_domain_type] if args.key?(:managed_google_domain_type)
|
|
943
991
|
@name = args[:name] if args.key?(:name)
|
|
944
992
|
@primary_domain = args[:primary_domain] if args.key?(:primary_domain)
|
|
945
993
|
end
|
|
@@ -985,6 +1033,25 @@ module Google
|
|
|
985
1033
|
end
|
|
986
1034
|
end
|
|
987
1035
|
|
|
1036
|
+
# An event generated when an enterprise is upgraded.
|
|
1037
|
+
class EnterpriseUpgradeEvent
|
|
1038
|
+
include Google::Apis::Core::Hashable
|
|
1039
|
+
|
|
1040
|
+
# The upgrade state.
|
|
1041
|
+
# Corresponds to the JSON property `upgradeState`
|
|
1042
|
+
# @return [String]
|
|
1043
|
+
attr_accessor :upgrade_state
|
|
1044
|
+
|
|
1045
|
+
def initialize(**args)
|
|
1046
|
+
update!(**args)
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# Update properties of this object
|
|
1050
|
+
def update!(**args)
|
|
1051
|
+
@upgrade_state = args[:upgrade_state] if args.key?(:upgrade_state)
|
|
1052
|
+
end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
988
1055
|
#
|
|
989
1056
|
class ListEnterprisesResponse
|
|
990
1057
|
include Google::Apis::Core::Hashable
|
|
@@ -1080,6 +1147,27 @@ module Google
|
|
|
1080
1147
|
end
|
|
1081
1148
|
end
|
|
1082
1149
|
|
|
1150
|
+
# Response message for generating a URL to upgrade an existing managed Google
|
|
1151
|
+
# Play Accounts enterprise to a managed Google domain.
|
|
1152
|
+
class GenerateEnterpriseUpgradeUrlResponse
|
|
1153
|
+
include Google::Apis::Core::Hashable
|
|
1154
|
+
|
|
1155
|
+
# A URL for an enterprise admin to upgrade their enterprise. The page can't be
|
|
1156
|
+
# rendered in an iframe.
|
|
1157
|
+
# Corresponds to the JSON property `url`
|
|
1158
|
+
# @return [String]
|
|
1159
|
+
attr_accessor :url
|
|
1160
|
+
|
|
1161
|
+
def initialize(**args)
|
|
1162
|
+
update!(**args)
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
# Update properties of this object
|
|
1166
|
+
def update!(**args)
|
|
1167
|
+
@url = args[:url] if args.key?(:url)
|
|
1168
|
+
end
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1083
1171
|
# Contains settings for Google-provided user authentication.
|
|
1084
1172
|
class GoogleAuthenticationSettings
|
|
1085
1173
|
include Google::Apis::Core::Hashable
|
|
@@ -1753,6 +1841,11 @@ module Google
|
|
|
1753
1841
|
# @return [String]
|
|
1754
1842
|
attr_accessor :enterprise_id
|
|
1755
1843
|
|
|
1844
|
+
# An event generated when an enterprise is upgraded.
|
|
1845
|
+
# Corresponds to the JSON property `enterpriseUpgradeEvent`
|
|
1846
|
+
# @return [Google::Apis::AndroidenterpriseV1::EnterpriseUpgradeEvent]
|
|
1847
|
+
attr_accessor :enterprise_upgrade_event
|
|
1848
|
+
|
|
1756
1849
|
# An event generated when an app installation failed on a device
|
|
1757
1850
|
# Corresponds to the JSON property `installFailureEvent`
|
|
1758
1851
|
# @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
|
|
@@ -1799,6 +1892,7 @@ module Google
|
|
|
1799
1892
|
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
|
|
1800
1893
|
@device_report_update_event = args[:device_report_update_event] if args.key?(:device_report_update_event)
|
|
1801
1894
|
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
|
|
1895
|
+
@enterprise_upgrade_event = args[:enterprise_upgrade_event] if args.key?(:enterprise_upgrade_event)
|
|
1802
1896
|
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
|
|
1803
1897
|
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
|
|
1804
1898
|
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module AndroidenterpriseV1
|
|
18
18
|
# Version of the google-apis-androidenterprise_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.45.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20250720"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -184,6 +184,12 @@ module Google
|
|
|
184
184
|
include Google::Apis::Core::JsonObjectSupport
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
+
class EnrollmentTokenGoogleAuthenticationOptions
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
187
193
|
class Enterprise
|
|
188
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
195
|
|
|
@@ -202,6 +208,12 @@ module Google
|
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
|
203
209
|
end
|
|
204
210
|
|
|
211
|
+
class EnterpriseUpgradeEvent
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
205
217
|
class ListEnterprisesResponse
|
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
219
|
|
|
@@ -226,6 +238,12 @@ module Google
|
|
|
226
238
|
include Google::Apis::Core::JsonObjectSupport
|
|
227
239
|
end
|
|
228
240
|
|
|
241
|
+
class GenerateEnterpriseUpgradeUrlResponse
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
229
247
|
class GoogleAuthenticationSettings
|
|
230
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
231
249
|
|
|
@@ -793,18 +811,30 @@ module Google
|
|
|
793
811
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
794
812
|
property :duration, as: 'duration'
|
|
795
813
|
property :enrollment_token_type, as: 'enrollmentTokenType'
|
|
814
|
+
property :google_authentication_options, as: 'googleAuthenticationOptions', class: Google::Apis::AndroidenterpriseV1::EnrollmentTokenGoogleAuthenticationOptions, decorator: Google::Apis::AndroidenterpriseV1::EnrollmentTokenGoogleAuthenticationOptions::Representation
|
|
815
|
+
|
|
796
816
|
property :token, as: 'token'
|
|
797
817
|
end
|
|
798
818
|
end
|
|
799
819
|
|
|
820
|
+
class EnrollmentTokenGoogleAuthenticationOptions
|
|
821
|
+
# @private
|
|
822
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
823
|
+
property :authentication_requirement, as: 'authenticationRequirement'
|
|
824
|
+
property :required_account_email, as: 'requiredAccountEmail'
|
|
825
|
+
end
|
|
826
|
+
end
|
|
827
|
+
|
|
800
828
|
class Enterprise
|
|
801
829
|
# @private
|
|
802
830
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
803
831
|
collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
|
|
804
832
|
|
|
833
|
+
property :enterprise_type, as: 'enterpriseType'
|
|
805
834
|
property :google_authentication_settings, as: 'googleAuthenticationSettings', class: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings, decorator: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings::Representation
|
|
806
835
|
|
|
807
836
|
property :id, as: 'id'
|
|
837
|
+
property :managed_google_domain_type, as: 'managedGoogleDomainType'
|
|
808
838
|
property :name, as: 'name'
|
|
809
839
|
property :primary_domain, as: 'primaryDomain'
|
|
810
840
|
end
|
|
@@ -824,6 +854,13 @@ module Google
|
|
|
824
854
|
end
|
|
825
855
|
end
|
|
826
856
|
|
|
857
|
+
class EnterpriseUpgradeEvent
|
|
858
|
+
# @private
|
|
859
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
860
|
+
property :upgrade_state, as: 'upgradeState'
|
|
861
|
+
end
|
|
862
|
+
end
|
|
863
|
+
|
|
827
864
|
class ListEnterprisesResponse
|
|
828
865
|
# @private
|
|
829
866
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -856,6 +893,13 @@ module Google
|
|
|
856
893
|
end
|
|
857
894
|
end
|
|
858
895
|
|
|
896
|
+
class GenerateEnterpriseUpgradeUrlResponse
|
|
897
|
+
# @private
|
|
898
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
899
|
+
property :url, as: 'url'
|
|
900
|
+
end
|
|
901
|
+
end
|
|
902
|
+
|
|
859
903
|
class GoogleAuthenticationSettings
|
|
860
904
|
# @private
|
|
861
905
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1044,6 +1088,8 @@ module Google
|
|
|
1044
1088
|
property :device_report_update_event, as: 'deviceReportUpdateEvent', class: Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::DeviceReportUpdateEvent::Representation
|
|
1045
1089
|
|
|
1046
1090
|
property :enterprise_id, as: 'enterpriseId'
|
|
1091
|
+
property :enterprise_upgrade_event, as: 'enterpriseUpgradeEvent', class: Google::Apis::AndroidenterpriseV1::EnterpriseUpgradeEvent, decorator: Google::Apis::AndroidenterpriseV1::EnterpriseUpgradeEvent::Representation
|
|
1092
|
+
|
|
1047
1093
|
property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
|
|
1048
1094
|
|
|
1049
1095
|
property :new_device_event, as: 'newDeviceEvent', class: Google::Apis::AndroidenterpriseV1::NewDeviceEvent, decorator: Google::Apis::AndroidenterpriseV1::NewDeviceEvent::Representation
|
|
@@ -290,6 +290,42 @@ module Google
|
|
|
290
290
|
execute_or_queue_command(command, &block)
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
+
# Returns a token for device enrollment. The DPC can encode this token within
|
|
294
|
+
# the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
|
|
295
|
+
# device API to authenticate the user. The token can be generated for each
|
|
296
|
+
# device or reused across multiple devices.
|
|
297
|
+
# @param [String] enterprise_id
|
|
298
|
+
# Required. The ID of the enterprise.
|
|
299
|
+
# @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
|
|
300
|
+
# @param [String] fields
|
|
301
|
+
# Selector specifying which fields to include in a partial response.
|
|
302
|
+
# @param [String] quota_user
|
|
303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
305
|
+
# @param [Google::Apis::RequestOptions] options
|
|
306
|
+
# Request-specific options
|
|
307
|
+
#
|
|
308
|
+
# @yield [result, err] Result & error if block supplied
|
|
309
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
|
|
310
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
311
|
+
#
|
|
312
|
+
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
|
|
313
|
+
#
|
|
314
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
315
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
316
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
317
|
+
def create_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
318
|
+
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/enrollmentTokens', options)
|
|
319
|
+
command.request_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
|
|
320
|
+
command.request_object = enrollment_token_object
|
|
321
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
|
|
322
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::EnrollmentToken
|
|
323
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
324
|
+
command.query['fields'] = fields unless fields.nil?
|
|
325
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
326
|
+
execute_or_queue_command(command, &block)
|
|
327
|
+
end
|
|
328
|
+
|
|
293
329
|
# Acknowledges notifications that were received from Enterprises.
|
|
294
330
|
# PullNotificationSet to prevent subsequent calls from returning the same
|
|
295
331
|
# notifications.
|
|
@@ -356,42 +392,6 @@ module Google
|
|
|
356
392
|
execute_or_queue_command(command, &block)
|
|
357
393
|
end
|
|
358
394
|
|
|
359
|
-
# Returns a token for device enrollment. The DPC can encode this token within
|
|
360
|
-
# the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
|
|
361
|
-
# device API to authenticate the user. The token can be generated for each
|
|
362
|
-
# device or reused across multiple devices.
|
|
363
|
-
# @param [String] enterprise_id
|
|
364
|
-
# Required. The ID of the enterprise.
|
|
365
|
-
# @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
|
|
366
|
-
# @param [String] fields
|
|
367
|
-
# Selector specifying which fields to include in a partial response.
|
|
368
|
-
# @param [String] quota_user
|
|
369
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
370
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
371
|
-
# @param [Google::Apis::RequestOptions] options
|
|
372
|
-
# Request-specific options
|
|
373
|
-
#
|
|
374
|
-
# @yield [result, err] Result & error if block supplied
|
|
375
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
|
|
376
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
377
|
-
#
|
|
378
|
-
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
|
|
379
|
-
#
|
|
380
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
381
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
382
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
383
|
-
def create_enterprise_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
384
|
-
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
|
|
385
|
-
command.request_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
|
|
386
|
-
command.request_object = enrollment_token_object
|
|
387
|
-
command.response_representation = Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
|
|
388
|
-
command.response_class = Google::Apis::AndroidenterpriseV1::EnrollmentToken
|
|
389
|
-
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
390
|
-
command.query['fields'] = fields unless fields.nil?
|
|
391
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
392
|
-
execute_or_queue_command(command, &block)
|
|
393
|
-
end
|
|
394
|
-
|
|
395
395
|
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
|
|
396
396
|
# the generated token into the managed Google Play javascript API. Each token
|
|
397
397
|
# may only be used to start one UI session. See the JavaScript API documentation
|
|
@@ -461,10 +461,69 @@ module Google
|
|
|
461
461
|
execute_or_queue_command(command, &block)
|
|
462
462
|
end
|
|
463
463
|
|
|
464
|
+
# Generates an enterprise upgrade URL to upgrade an existing managed Google Play
|
|
465
|
+
# Accounts enterprise to a managed Google domain. See the guide to upgrading an
|
|
466
|
+
# enterprise for more details.
|
|
467
|
+
# @param [String] enterprise_id
|
|
468
|
+
# Required. The ID of the enterprise.
|
|
469
|
+
# @param [String] admin_email
|
|
470
|
+
# Optional. Email address used to prefill the admin field of the enterprise
|
|
471
|
+
# signup form as part of the upgrade process. This value is a hint only and can
|
|
472
|
+
# be altered by the user. Personal email addresses are not allowed. If `
|
|
473
|
+
# allowedDomains` is non-empty then this must belong to one of the `
|
|
474
|
+
# allowedDomains`.
|
|
475
|
+
# @param [Array<String>, String] allowed_domains
|
|
476
|
+
# Optional. A list of domains that are permitted for the admin email. The IT
|
|
477
|
+
# admin cannot enter an email address with a domain name that is not in this
|
|
478
|
+
# list. Subdomains of domains in this list are not allowed but can be allowed by
|
|
479
|
+
# adding a second entry which has `*.` prefixed to the domain name (e.g. *.
|
|
480
|
+
# example.com). If the field is not present or is an empty list then the IT
|
|
481
|
+
# admin is free to use any valid domain name. Personal email domains are not
|
|
482
|
+
# allowed.
|
|
483
|
+
# @param [String] fields
|
|
484
|
+
# Selector specifying which fields to include in a partial response.
|
|
485
|
+
# @param [String] quota_user
|
|
486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
488
|
+
# @param [Google::Apis::RequestOptions] options
|
|
489
|
+
# Request-specific options
|
|
490
|
+
#
|
|
491
|
+
# @yield [result, err] Result & error if block supplied
|
|
492
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateEnterpriseUpgradeUrlResponse] parsed result object
|
|
493
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
494
|
+
#
|
|
495
|
+
# @return [Google::Apis::AndroidenterpriseV1::GenerateEnterpriseUpgradeUrlResponse]
|
|
496
|
+
#
|
|
497
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
498
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
499
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
500
|
+
def generate_enterprise_enterprise_upgrade_url(enterprise_id, admin_email: nil, allowed_domains: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
501
|
+
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/generateEnterpriseUpgradeUrl', options)
|
|
502
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateEnterpriseUpgradeUrlResponse::Representation
|
|
503
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::GenerateEnterpriseUpgradeUrlResponse
|
|
504
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
505
|
+
command.query['adminEmail'] = admin_email unless admin_email.nil?
|
|
506
|
+
command.query['allowedDomains'] = allowed_domains unless allowed_domains.nil?
|
|
507
|
+
command.query['fields'] = fields unless fields.nil?
|
|
508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
509
|
+
execute_or_queue_command(command, &block)
|
|
510
|
+
end
|
|
511
|
+
|
|
464
512
|
# Generates a sign-up URL.
|
|
465
513
|
# @param [String] admin_email
|
|
466
514
|
# Optional. Email address used to prefill the admin field of the enterprise
|
|
467
|
-
# signup form. This value is a hint only and can be altered by the user.
|
|
515
|
+
# signup form. This value is a hint only and can be altered by the user. If `
|
|
516
|
+
# allowedDomains` is non-empty then this must belong to one of the `
|
|
517
|
+
# allowedDomains`.
|
|
518
|
+
# @param [Array<String>, String] allowed_domains
|
|
519
|
+
# Optional. A list of domains that are permitted for the admin email. The IT
|
|
520
|
+
# admin cannot enter an email address with a domain name that is not in this
|
|
521
|
+
# list. Subdomains of domains in this list are not allowed but can be allowed by
|
|
522
|
+
# adding a second entry which has `*.` prefixed to the domain name (e.g. *.
|
|
523
|
+
# example.com). If the field is not present or is an empty list then the IT
|
|
524
|
+
# admin is free to use any valid domain name. Personal email domains are always
|
|
525
|
+
# allowed, but will result in the creation of a managed Google Play Accounts
|
|
526
|
+
# enterprise.
|
|
468
527
|
# @param [String] callback_url
|
|
469
528
|
# The callback URL to which the Admin will be redirected after successfully
|
|
470
529
|
# creating an enterprise. Before redirecting there the system will add a single
|
|
@@ -490,11 +549,12 @@ module Google
|
|
|
490
549
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
491
550
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
492
551
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
493
|
-
def generate_enterprise_signup_url(admin_email: nil, callback_url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
552
|
+
def generate_enterprise_signup_url(admin_email: nil, allowed_domains: nil, callback_url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
494
553
|
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/signupUrl', options)
|
|
495
554
|
command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
|
|
496
555
|
command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
|
|
497
556
|
command.query['adminEmail'] = admin_email unless admin_email.nil?
|
|
557
|
+
command.query['allowedDomains'] = allowed_domains unless allowed_domains.nil?
|
|
498
558
|
command.query['callbackUrl'] = callback_url unless callback_url.nil?
|
|
499
559
|
command.query['fields'] = fields unless fields.nil?
|
|
500
560
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -540,7 +600,11 @@ module Google
|
|
|
540
600
|
# return an error. Subsequent calls after the first will generate a new, unique
|
|
541
601
|
# set of credentials, and invalidate the previously generated credentials. Once
|
|
542
602
|
# the service account is bound to the enterprise, it can be managed using the
|
|
543
|
-
# serviceAccountKeys resource.
|
|
603
|
+
# serviceAccountKeys resource. *Note:* After you create a key, you might need to
|
|
604
|
+
# wait for 60 seconds or more before you perform another operation with the key.
|
|
605
|
+
# If you try to perform an operation with the key immediately after you create
|
|
606
|
+
# the key, and you receive an error, you can retry the request with exponential
|
|
607
|
+
# backoff .
|
|
544
608
|
# @param [String] enterprise_id
|
|
545
609
|
# The ID of the enterprise.
|
|
546
610
|
# @param [String] key_type
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-androidenterprise_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.45.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: google-apis-core
|
|
@@ -58,9 +57,8 @@ licenses:
|
|
|
58
57
|
metadata:
|
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.45.0
|
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1
|
|
63
|
-
post_install_message:
|
|
64
62
|
rdoc_options: []
|
|
65
63
|
require_paths:
|
|
66
64
|
- lib
|
|
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
68
66
|
requirements:
|
|
69
67
|
- - ">="
|
|
70
68
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
69
|
+
version: '3.1'
|
|
72
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements:
|
|
74
72
|
- - ">="
|
|
75
73
|
- !ruby/object:Gem::Version
|
|
76
74
|
version: '0'
|
|
77
75
|
requirements: []
|
|
78
|
-
rubygems_version: 3.
|
|
79
|
-
signing_key:
|
|
76
|
+
rubygems_version: 3.6.9
|
|
80
77
|
specification_version: 4
|
|
81
78
|
summary: Simple REST client for Google Play EMM API V1
|
|
82
79
|
test_files: []
|