google-apis-androidenterprise_v1 0.38.0 → 0.39.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 +4 -0
- data/lib/google/apis/androidenterprise_v1/classes.rb +0 -25
- data/lib/google/apis/androidenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/androidenterprise_v1/representations.rb +0 -15
- data/lib/google/apis/androidenterprise_v1/service.rb +8 -22
- 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: 053cf72361efca2235f4d38b7c50f3333b6203fab1c5a82a077e10203e451466
|
4
|
+
data.tar.gz: af039080a88910c0f47579b68c85f9ebfb31dc801e9044a8db32d12691e916c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e17491c72fe4513b2b53a769e001d20c791802cee1544199218a562c59e438042d70c89e69f027ff3b17303193fd81ef8f5555930df2f88f382e9c7d97e17b
|
7
|
+
data.tar.gz: 227de2a8364c8be2f682468abddeca96cabccfe4f10497fcfc0dfa20e547f4e89c022929f9c5651021aeffb7037bffd987a87e0e63336b3505dfb44b97b1c186
|
data/CHANGELOG.md
CHANGED
@@ -663,31 +663,6 @@ module Google
|
|
663
663
|
end
|
664
664
|
end
|
665
665
|
|
666
|
-
# Response message for create enrollment token.
|
667
|
-
class CreateEnrollmentTokenResponse
|
668
|
-
include Google::Apis::Core::Hashable
|
669
|
-
|
670
|
-
# Deprecated: Use token instead. This field will be removed in the future.
|
671
|
-
# Corresponds to the JSON property `enrollmentToken`
|
672
|
-
# @return [String]
|
673
|
-
attr_accessor :enrollment_token
|
674
|
-
|
675
|
-
# A token used to enroll a device.
|
676
|
-
# Corresponds to the JSON property `token`
|
677
|
-
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
|
678
|
-
attr_accessor :token
|
679
|
-
|
680
|
-
def initialize(**args)
|
681
|
-
update!(**args)
|
682
|
-
end
|
683
|
-
|
684
|
-
# Update properties of this object
|
685
|
-
def update!(**args)
|
686
|
-
@enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
|
687
|
-
@token = args[:token] if args.key?(:token)
|
688
|
-
end
|
689
|
-
end
|
690
|
-
|
691
666
|
# A Devices resource represents a mobile device managed by the EMM and belonging
|
692
667
|
# to a specific enterprise user.
|
693
668
|
class Device
|
@@ -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.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250102"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,12 +148,6 @@ 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
|
-
|
157
151
|
class Device
|
158
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
153
|
|
@@ -741,15 +735,6 @@ module Google
|
|
741
735
|
end
|
742
736
|
end
|
743
737
|
|
744
|
-
class CreateEnrollmentTokenResponse
|
745
|
-
# @private
|
746
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
747
|
-
property :enrollment_token, as: 'enrollmentToken'
|
748
|
-
property :token, as: 'token', class: Google::Apis::AndroidenterpriseV1::EnrollmentToken, decorator: Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
|
749
|
-
|
750
|
-
end
|
751
|
-
end
|
752
|
-
|
753
738
|
class Device
|
754
739
|
# @private
|
755
740
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -362,19 +362,7 @@ module Google
|
|
362
362
|
# device or reused across multiple devices.
|
363
363
|
# @param [String] enterprise_id
|
364
364
|
# Required. The ID of the enterprise.
|
365
|
-
# @param [
|
366
|
-
# Deprecated: Use enrollment_token instead. this field will be removed in the
|
367
|
-
# future.
|
368
|
-
# @param [String] enrollment_token_duration
|
369
|
-
# [Optional] The length of time the enrollment token is valid, ranging from 1
|
370
|
-
# minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
|
371
|
-
# buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
|
372
|
-
# approximately 10,000 years. If not specified, the default duration is 1 hour.
|
373
|
-
# @param [String] enrollment_token_enrollment_token_type
|
374
|
-
# [Required] The type of the enrollment token.
|
375
|
-
# @param [String] enrollment_token_token
|
376
|
-
# The token value that's passed to the device and authorizes the device to
|
377
|
-
# enroll. This is a read-only field generated by the server.
|
365
|
+
# @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
|
378
366
|
# @param [String] fields
|
379
367
|
# Selector specifying which fields to include in a partial response.
|
380
368
|
# @param [String] quota_user
|
@@ -384,23 +372,21 @@ module Google
|
|
384
372
|
# Request-specific options
|
385
373
|
#
|
386
374
|
# @yield [result, err] Result & error if block supplied
|
387
|
-
# @yieldparam result [Google::Apis::AndroidenterpriseV1::
|
375
|
+
# @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
|
388
376
|
# @yieldparam err [StandardError] error object if request failed
|
389
377
|
#
|
390
|
-
# @return [Google::Apis::AndroidenterpriseV1::
|
378
|
+
# @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
|
391
379
|
#
|
392
380
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
393
381
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
394
382
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
395
|
-
def create_enterprise_enrollment_token(enterprise_id,
|
383
|
+
def create_enterprise_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
396
384
|
command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
|
397
|
-
command.
|
398
|
-
command.
|
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
|
399
389
|
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
400
|
-
command.query['deviceType'] = device_type unless device_type.nil?
|
401
|
-
command.query['enrollmentToken.duration'] = enrollment_token_duration unless enrollment_token_duration.nil?
|
402
|
-
command.query['enrollmentToken.enrollmentTokenType'] = enrollment_token_enrollment_token_type unless enrollment_token_enrollment_token_type.nil?
|
403
|
-
command.query['enrollmentToken.token'] = enrollment_token_token unless enrollment_token_token.nil?
|
404
390
|
command.query['fields'] = fields unless fields.nil?
|
405
391
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
392
|
execute_or_queue_command(command, &block)
|
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.39.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: 2025-01-05 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.39.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.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Play EMM API V1
|