google-apis-androidenterprise_v1 0.37.0 → 0.38.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: b5d380f4e55c662f8d65540349f4778ff77a668ed0b1fc1a1aed982f62d25037
4
+ data.tar.gz: 365facfd13fd33c87d5c32138a137c967ad2b41638f59dbf4f49641100aa97ab
5
5
  SHA512:
6
- metadata.gz: c6f7dd98b0b7b02fb37ced4353627b822c5185ffffd982e7d4899e5816688723dbe2372218138b813db42ce002e050321669ee1fc4f7ec628919cbcb2ddb0e23
7
- data.tar.gz: 785cb94987492f68e7d25c90c54c916744f0b2b17a2a23d97a3230e08c76edc83c9c6fba99d74bc5ab74c92f96bac330ae38df714f53aa35d37027fdeb91a4f2
6
+ metadata.gz: a92195012197080b40e3c356e0042ced85b9de6afa1a3a673ea9f492a3a551c08186f7e635ba6ba1280d165557509896a49634205447483e4ea03bbed0e69ca3
7
+ data.tar.gz: 287e12bf295f94a22e3b8afaef1401a0a5dbc142ca97a1a9d8ba038aeee4c3f0b1e125eb36bfcf05341441ef8c9e5a57abe3bef8df47926bfcde7075328c97f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-androidenterprise_v1
2
2
 
3
+ ### v0.38.0 (2024-11-17)
4
+
5
+ * Regenerated from discovery document revision 20241113
6
+
3
7
  ### v0.37.0 (2024-11-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20241028
@@ -667,11 +667,16 @@ module Google
667
667
  class CreateEnrollmentTokenResponse
668
668
  include Google::Apis::Core::Hashable
669
669
 
670
- # Enrollment token.
670
+ # Deprecated: Use token instead. This field will be removed in the future.
671
671
  # Corresponds to the JSON property `enrollmentToken`
672
672
  # @return [String]
673
673
  attr_accessor :enrollment_token
674
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
+
675
680
  def initialize(**args)
676
681
  update!(**args)
677
682
  end
@@ -679,6 +684,7 @@ module Google
679
684
  # Update properties of this object
680
685
  def update!(**args)
681
686
  @enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
687
+ @token = args[:token] if args.key?(:token)
682
688
  end
683
689
  end
684
690
 
@@ -875,6 +881,41 @@ module Google
875
881
  end
876
882
  end
877
883
 
884
+ # A token used to enroll a device.
885
+ class EnrollmentToken
886
+ include Google::Apis::Core::Hashable
887
+
888
+ # [Optional] The length of time the enrollment token is valid, ranging from 1
889
+ # minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-
890
+ # buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),
891
+ # approximately 10,000 years. If not specified, the default duration is 1 hour.
892
+ # Corresponds to the JSON property `duration`
893
+ # @return [String]
894
+ attr_accessor :duration
895
+
896
+ # [Required] The type of the enrollment token.
897
+ # Corresponds to the JSON property `enrollmentTokenType`
898
+ # @return [String]
899
+ attr_accessor :enrollment_token_type
900
+
901
+ # The token value that's passed to the device and authorizes the device to
902
+ # enroll. This is a read-only field generated by the server.
903
+ # Corresponds to the JSON property `token`
904
+ # @return [String]
905
+ attr_accessor :token
906
+
907
+ def initialize(**args)
908
+ update!(**args)
909
+ end
910
+
911
+ # Update properties of this object
912
+ def update!(**args)
913
+ @duration = args[:duration] if args.key?(:duration)
914
+ @enrollment_token_type = args[:enrollment_token_type] if args.key?(:enrollment_token_type)
915
+ @token = args[:token] if args.key?(:token)
916
+ end
917
+ end
918
+
878
919
  # An Enterprises resource represents the binding between an EMM and a specific
879
920
  # organization. That binding can be instantiated in one of two different ways
880
921
  # 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.38.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 = "20241113"
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 EnrollmentToken
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
 
@@ -739,6 +745,8 @@ module Google
739
745
  # @private
740
746
  class Representation < Google::Apis::Core::JsonRepresentation
741
747
  property :enrollment_token, as: 'enrollmentToken'
748
+ property :token, as: 'token', class: Google::Apis::AndroidenterpriseV1::EnrollmentToken, decorator: Google::Apis::AndroidenterpriseV1::EnrollmentToken::Representation
749
+
742
750
  end
743
751
  end
744
752
 
@@ -795,6 +803,15 @@ module Google
795
803
  end
796
804
  end
797
805
 
806
+ class EnrollmentToken
807
+ # @private
808
+ class Representation < Google::Apis::Core::JsonRepresentation
809
+ property :duration, as: 'duration'
810
+ property :enrollment_token_type, as: 'enrollmentTokenType'
811
+ property :token, as: 'token'
812
+ end
813
+ end
814
+
798
815
  class Enterprise
799
816
  # @private
800
817
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -361,9 +361,20 @@ 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.
364
+ # Required. The ID of the enterprise.
365
365
  # @param [String] device_type
366
- # Whether it’s a dedicated device or a knowledge worker device.
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.
367
378
  # @param [String] fields
368
379
  # Selector specifying which fields to include in a partial response.
369
380
  # @param [String] quota_user
@@ -381,12 +392,15 @@ module Google
381
392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
394
  # @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)
395
+ def create_enterprise_enrollment_token(enterprise_id, device_type: nil, enrollment_token_duration: nil, enrollment_token_enrollment_token_type: nil, enrollment_token_token: nil, fields: nil, quota_user: nil, options: nil, &block)
385
396
  command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
386
397
  command.response_representation = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse::Representation
387
398
  command.response_class = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse
388
399
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
389
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?
390
404
  command.query['fields'] = fields unless fields.nil?
391
405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
392
406
  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.38.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: 2024-12-04 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.38.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.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Play EMM API V1