google-apis-androidenterprise_v1 0.37.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fbeb3aeda60f96807f134b9c7d9bd566b43f2496fe05006ebf489a029f1ce84
4
- data.tar.gz: e448309675a78352540165e843b105075c20696a4cfd29339080e9fe30056f3c
3
+ metadata.gz: 053cf72361efca2235f4d38b7c50f3333b6203fab1c5a82a077e10203e451466
4
+ data.tar.gz: af039080a88910c0f47579b68c85f9ebfb31dc801e9044a8db32d12691e916c9
5
5
  SHA512:
6
- metadata.gz: c6f7dd98b0b7b02fb37ced4353627b822c5185ffffd982e7d4899e5816688723dbe2372218138b813db42ce002e050321669ee1fc4f7ec628919cbcb2ddb0e23
7
- data.tar.gz: 785cb94987492f68e7d25c90c54c916744f0b2b17a2a23d97a3230e08c76edc83c9c6fba99d74bc5ab74c92f96bac330ae38df714f53aa35d37027fdeb91a4f2
6
+ metadata.gz: 56e17491c72fe4513b2b53a769e001d20c791802cee1544199218a562c59e438042d70c89e69f027ff3b17303193fd81ef8f5555930df2f88f382e9c7d97e17b
7
+ data.tar.gz: 227de2a8364c8be2f682468abddeca96cabccfe4f10497fcfc0dfa20e547f4e89c022929f9c5651021aeffb7037bffd987a87e0e63336b3505dfb44b97b1c186
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-androidenterprise_v1
2
2
 
3
+ ### v0.39.0 (2025-01-05)
4
+
5
+ * Regenerated from discovery document revision 20250102
6
+
7
+ ### v0.38.0 (2024-11-17)
8
+
9
+ * Regenerated from discovery document revision 20241113
10
+
3
11
  ### v0.37.0 (2024-11-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20241028
@@ -663,25 +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
- # Enrollment token.
671
- # Corresponds to the JSON property `enrollmentToken`
672
- # @return [String]
673
- attr_accessor :enrollment_token
674
-
675
- def initialize(**args)
676
- update!(**args)
677
- end
678
-
679
- # Update properties of this object
680
- def update!(**args)
681
- @enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
682
- end
683
- end
684
-
685
666
  # A Devices resource represents a mobile device managed by the EMM and belonging
686
667
  # to a specific enterprise user.
687
668
  class Device
@@ -875,6 +856,41 @@ module Google
875
856
  end
876
857
  end
877
858
 
859
+ # A token used to enroll a device.
860
+ class EnrollmentToken
861
+ include Google::Apis::Core::Hashable
862
+
863
+ # [Optional] The length of time the enrollment token is valid, ranging from 1
864
+ # minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
865
+ # buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
866
+ # approximately 10,000 years. If not specified, the default duration is 1 hour.
867
+ # Corresponds to the JSON property `duration`
868
+ # @return [String]
869
+ attr_accessor :duration
870
+
871
+ # [Required] The type of the enrollment token.
872
+ # Corresponds to the JSON property `enrollmentTokenType`
873
+ # @return [String]
874
+ attr_accessor :enrollment_token_type
875
+
876
+ # The token value that's passed to the device and authorizes the device to
877
+ # enroll. This is a read-only field generated by the server.
878
+ # Corresponds to the JSON property `token`
879
+ # @return [String]
880
+ attr_accessor :token
881
+
882
+ def initialize(**args)
883
+ update!(**args)
884
+ end
885
+
886
+ # Update properties of this object
887
+ def update!(**args)
888
+ @duration = args[:duration] if args.key?(:duration)
889
+ @enrollment_token_type = args[:enrollment_token_type] if args.key?(:enrollment_token_type)
890
+ @token = args[:token] if args.key?(:token)
891
+ end
892
+ end
893
+
878
894
  # An Enterprises resource represents the binding between an EMM and a specific
879
895
  # organization. That binding can be instantiated in one of two different ways
880
896
  # using this API as follows: - For Google managed domain customers, the process
@@ -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.37.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 = "20241028"
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
 
@@ -184,6 +178,12 @@ module Google
184
178
  include Google::Apis::Core::JsonObjectSupport
185
179
  end
186
180
 
181
+ class EnrollmentToken
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
187
  class Enterprise
188
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
189
 
@@ -735,13 +735,6 @@ module Google
735
735
  end
736
736
  end
737
737
 
738
- class CreateEnrollmentTokenResponse
739
- # @private
740
- class Representation < Google::Apis::Core::JsonRepresentation
741
- property :enrollment_token, as: 'enrollmentToken'
742
- end
743
- end
744
-
745
738
  class Device
746
739
  # @private
747
740
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -795,6 +788,15 @@ module Google
795
788
  end
796
789
  end
797
790
 
791
+ class EnrollmentToken
792
+ # @private
793
+ class Representation < Google::Apis::Core::JsonRepresentation
794
+ property :duration, as: 'duration'
795
+ property :enrollment_token_type, as: 'enrollmentTokenType'
796
+ property :token, as: 'token'
797
+ end
798
+ end
799
+
798
800
  class Enterprise
799
801
  # @private
800
802
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -361,9 +361,8 @@ module Google
361
361
  # device API to authenticate the user. The token can be generated for each
362
362
  # device or reused across multiple devices.
363
363
  # @param [String] enterprise_id
364
- # The ID of the enterprise.
365
- # @param [String] device_type
366
- # Whether it’s a dedicated device or a knowledge worker device.
364
+ # Required. The ID of the enterprise.
365
+ # @param [Google::Apis::AndroidenterpriseV1::EnrollmentToken] enrollment_token_object
367
366
  # @param [String] fields
368
367
  # Selector specifying which fields to include in a partial response.
369
368
  # @param [String] quota_user
@@ -373,20 +372,21 @@ module Google
373
372
  # Request-specific options
374
373
  #
375
374
  # @yield [result, err] Result & error if block supplied
376
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse] parsed result object
375
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::EnrollmentToken] parsed result object
377
376
  # @yieldparam err [StandardError] error object if request failed
378
377
  #
379
- # @return [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse]
378
+ # @return [Google::Apis::AndroidenterpriseV1::EnrollmentToken]
380
379
  #
381
380
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
381
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
382
  # @raise [Google::Apis::AuthorizationError] Authorization is required
384
- def create_enterprise_enrollment_token(enterprise_id, device_type: nil, fields: nil, quota_user: nil, options: nil, &block)
383
+ def create_enterprise_enrollment_token(enterprise_id, enrollment_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
385
384
  command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
386
- command.response_representation = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse::Representation
387
- command.response_class = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse
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
388
389
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
389
- command.query['deviceType'] = device_type unless device_type.nil?
390
390
  command.query['fields'] = fields unless fields.nil?
391
391
  command.query['quotaUser'] = quota_user unless quota_user.nil?
392
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.37.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: 2024-11-03 00:00:00.000000000 Z
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.37.0
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.21
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