google-apis-androidenterprise_v1 0.17.0 → 0.19.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 +9 -0
- data/lib/google/apis/androidenterprise_v1/classes.rb +50 -0
- data/lib/google/apis/androidenterprise_v1/gem_version.rb +3 -3
- data/lib/google/apis/androidenterprise_v1/representations.rb +29 -0
- data/lib/google/apis/androidenterprise_v1/service.rb +37 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b139c42c20d9051d70c692ee33c7cb456e13e4a002562c93665bb896683b8b5
|
4
|
+
data.tar.gz: 7d4442b53f041f089a98a62e0f2288d005d6276f2ed76985aff4dc9ff78187bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb52513b19199675d270794821d9d93e2365c5974c2340034c4e80360a7ff0e253060ff837d4cb9dc97842b3903851aefae47d274ab80afe2eed1c4dca65653
|
7
|
+
data.tar.gz: 6d4879d189ce1f79ac2f20790120aee0420b643acea08685f00ed5dce61ba7df8b2aed08d257d21be25569adcac54ddeef96324be22f79930be1dbc6834ed055
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-androidenterprise_v1
|
2
2
|
|
3
|
+
### v0.19.0 (2023-01-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230111
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
8
|
+
### v0.18.0 (2022-12-22)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20221214
|
11
|
+
|
3
12
|
### v0.17.0 (2022-10-27)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20221019
|
@@ -655,6 +655,25 @@ module Google
|
|
655
655
|
end
|
656
656
|
end
|
657
657
|
|
658
|
+
# Response message for create enrollment token.
|
659
|
+
class CreateEnrollmentTokenResponse
|
660
|
+
include Google::Apis::Core::Hashable
|
661
|
+
|
662
|
+
# Enrollment token.
|
663
|
+
# Corresponds to the JSON property `enrollmentToken`
|
664
|
+
# @return [String]
|
665
|
+
attr_accessor :enrollment_token
|
666
|
+
|
667
|
+
def initialize(**args)
|
668
|
+
update!(**args)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Update properties of this object
|
672
|
+
def update!(**args)
|
673
|
+
@enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
658
677
|
# A Devices resource represents a mobile device managed by the EMM and belonging
|
659
678
|
# to a specific enterprise user.
|
660
679
|
class Device
|
@@ -825,6 +844,11 @@ module Google
|
|
825
844
|
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
|
826
845
|
attr_accessor :administrator
|
827
846
|
|
847
|
+
# Contains settings for Google-provided user authentication.
|
848
|
+
# Corresponds to the JSON property `googleAuthenticationSettings`
|
849
|
+
# @return [Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings]
|
850
|
+
attr_accessor :google_authentication_settings
|
851
|
+
|
828
852
|
# The unique ID for the enterprise.
|
829
853
|
# Corresponds to the JSON property `id`
|
830
854
|
# @return [String]
|
@@ -847,6 +871,7 @@ module Google
|
|
847
871
|
# Update properties of this object
|
848
872
|
def update!(**args)
|
849
873
|
@administrator = args[:administrator] if args.key?(:administrator)
|
874
|
+
@google_authentication_settings = args[:google_authentication_settings] if args.key?(:google_authentication_settings)
|
850
875
|
@id = args[:id] if args.key?(:id)
|
851
876
|
@name = args[:name] if args.key?(:name)
|
852
877
|
@primary_domain = args[:primary_domain] if args.key?(:primary_domain)
|
@@ -1004,6 +1029,31 @@ module Google
|
|
1004
1029
|
end
|
1005
1030
|
end
|
1006
1031
|
|
1032
|
+
# Contains settings for Google-provided user authentication.
|
1033
|
+
class GoogleAuthenticationSettings
|
1034
|
+
include Google::Apis::Core::Hashable
|
1035
|
+
|
1036
|
+
# Whether dedicated devices are allowed.
|
1037
|
+
# Corresponds to the JSON property `dedicatedDevicesAllowed`
|
1038
|
+
# @return [String]
|
1039
|
+
attr_accessor :dedicated_devices_allowed
|
1040
|
+
|
1041
|
+
# Whether Google authentication is required.
|
1042
|
+
# Corresponds to the JSON property `googleAuthenticationRequired`
|
1043
|
+
# @return [String]
|
1044
|
+
attr_accessor :google_authentication_required
|
1045
|
+
|
1046
|
+
def initialize(**args)
|
1047
|
+
update!(**args)
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# Update properties of this object
|
1051
|
+
def update!(**args)
|
1052
|
+
@dedicated_devices_allowed = args[:dedicated_devices_allowed] if args.key?(:dedicated_devices_allowed)
|
1053
|
+
@google_authentication_required = args[:google_authentication_required] if args.key?(:google_authentication_required)
|
1054
|
+
end
|
1055
|
+
end
|
1056
|
+
|
1007
1057
|
# Group license objects allow you to keep track of licenses (called entitlements)
|
1008
1058
|
# for both free and paid apps. For a free app, a group license is created when
|
1009
1059
|
# an enterprise admin first approves the product in Google Play or when the
|
@@ -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.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230111"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class CreateEnrollmentTokenResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
151
157
|
class Device
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
@@ -220,6 +226,12 @@ module Google
|
|
220
226
|
include Google::Apis::Core::JsonObjectSupport
|
221
227
|
end
|
222
228
|
|
229
|
+
class GoogleAuthenticationSettings
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
223
235
|
class GroupLicense
|
224
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
237
|
|
@@ -722,6 +734,13 @@ module Google
|
|
722
734
|
end
|
723
735
|
end
|
724
736
|
|
737
|
+
class CreateEnrollmentTokenResponse
|
738
|
+
# @private
|
739
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
740
|
+
property :enrollment_token, as: 'enrollmentToken'
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
725
744
|
class Device
|
726
745
|
# @private
|
727
746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -773,6 +792,8 @@ module Google
|
|
773
792
|
class Representation < Google::Apis::Core::JsonRepresentation
|
774
793
|
collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
|
775
794
|
|
795
|
+
property :google_authentication_settings, as: 'googleAuthenticationSettings', class: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings, decorator: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings::Representation
|
796
|
+
|
776
797
|
property :id, as: 'id'
|
777
798
|
property :name, as: 'name'
|
778
799
|
property :primary_domain, as: 'primaryDomain'
|
@@ -825,6 +846,14 @@ module Google
|
|
825
846
|
end
|
826
847
|
end
|
827
848
|
|
849
|
+
class GoogleAuthenticationSettings
|
850
|
+
# @private
|
851
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
852
|
+
property :dedicated_devices_allowed, as: 'dedicatedDevicesAllowed'
|
853
|
+
property :google_authentication_required, as: 'googleAuthenticationRequired'
|
854
|
+
end
|
855
|
+
end
|
856
|
+
|
828
857
|
class GroupLicense
|
829
858
|
# @private
|
830
859
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -354,6 +354,42 @@ module Google
|
|
354
354
|
execute_or_queue_command(command, &block)
|
355
355
|
end
|
356
356
|
|
357
|
+
# Returns a token for device enrollment. The DPC can encode this token within
|
358
|
+
# the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
|
359
|
+
# device API to authenticate the user. The token can be generated for each
|
360
|
+
# device or reused across multiple devices.
|
361
|
+
# @param [String] enterprise_id
|
362
|
+
# The ID of the enterprise.
|
363
|
+
# @param [String] device_type
|
364
|
+
# Whether it’s a dedicated device or a knowledge worker device.
|
365
|
+
# @param [String] fields
|
366
|
+
# Selector specifying which fields to include in a partial response.
|
367
|
+
# @param [String] quota_user
|
368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [Google::Apis::RequestOptions] options
|
371
|
+
# Request-specific options
|
372
|
+
#
|
373
|
+
# @yield [result, err] Result & error if block supplied
|
374
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse] parsed result object
|
375
|
+
# @yieldparam err [StandardError] error object if request failed
|
376
|
+
#
|
377
|
+
# @return [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse]
|
378
|
+
#
|
379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
+
def create_enterprise_enrollment_token(enterprise_id, device_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
|
384
|
+
command.response_representation = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse::Representation
|
385
|
+
command.response_class = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse
|
386
|
+
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
387
|
+
command.query['deviceType'] = device_type unless device_type.nil?
|
388
|
+
command.query['fields'] = fields unless fields.nil?
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
+
execute_or_queue_command(command, &block)
|
391
|
+
end
|
392
|
+
|
357
393
|
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
|
358
394
|
# the generated token into the managed Google Play javascript API. Each token
|
359
395
|
# may only be used to start one UI session. See the javascript API documentation
|
@@ -613,7 +649,7 @@ module Google
|
|
613
649
|
# The request mode for pulling notifications. Specifying waitForNotifications
|
614
650
|
# will cause the request to block and wait until one or more notifications are
|
615
651
|
# present, or return an empty notification list if no notifications are present
|
616
|
-
# after some time.
|
652
|
+
# after some time. Specifying returnImmediately will cause the request to
|
617
653
|
# immediately return the pending notifications, or an empty list if no
|
618
654
|
# notifications are present. If omitted, defaults to waitForNotifications.
|
619
655
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.19.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:
|
11
|
+
date: 2023-01-15 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-androidenterprise_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Play EMM API V1
|