google-apis-androidenterprise_v1 0.16.0 → 0.18.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: 53ba01fe4efcd0148364f438255e326d00d191134bb155794a6dbb17ec535b4f
4
- data.tar.gz: 39fb5a1300e70fbf6e309af14014901a357f2a0388ce021fe20e8775f6400fef
3
+ metadata.gz: 1b6d94403f351b80cab1e495b6e046300d286c913f23ff0c6b7a215fb3a3f3c6
4
+ data.tar.gz: 06f847bc73bd275e7f3fde4c593e5588a030a72aebc68fd7756b942865e80190
5
5
  SHA512:
6
- metadata.gz: 3a53689b9f4f2fe0a4cb39f9af56994164285ffe6ef67d18983548d960d449978a5546bc2f2cd8c018e5c56a9de9f34b21ab14a5c0fd41bd250958e71ed79eb0
7
- data.tar.gz: 92d4d2c6eba0937ade0a0cf12f8a46e254ff6f7aaf73587621bdcaf17333cfa2a8ec6bb2e319ad2037e91a3d9f5199675ae3c7240687e7846098b10d0cc0949e
6
+ metadata.gz: c7e1992c9a7b5ddbd4b53cafdadf3b7616c35e3d9e3ced3d9a29effde63210bf5be2730214bc3a9667cbb716cc790b5d6a51a0f57c94efe241cc9d4e904ea406
7
+ data.tar.gz: 0b308fbecc27d55ac7fd2764713a3823e1aed3120b0cec4af7cad4088b062a502c1aad764750bc306992feefa42a07132fa2d2cbe0f84290088f44d70e6f0e99
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-androidenterprise_v1
2
2
 
3
+ ### v0.18.0 (2022-12-22)
4
+
5
+ * Regenerated from discovery document revision 20221214
6
+
7
+ ### v0.17.0 (2022-10-27)
8
+
9
+ * Regenerated from discovery document revision 20221019
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.16.0 (2022-09-20)
4
13
 
5
14
  * Regenerated using generator version 0.10.0
@@ -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
@@ -1825,7 +1844,8 @@ module Google
1825
1844
  class Policy
1826
1845
  include Google::Apis::Core::Hashable
1827
1846
 
1828
- # Deprecated. Use autoUpdateMode instead. When autoUpdateMode is set to
1847
+ # Recommended alternative: autoUpdateMode which is set per app, provides greater
1848
+ # flexibility around update frequency. When autoUpdateMode is set to
1829
1849
  # AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect. "
1830
1850
  # choiceToTheUser" allows the device's user to configure the app update policy. "
1831
1851
  # always" enables auto updates. "never" disables auto updates. "wifiOnly"
@@ -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.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220910"
25
+ REVISION = "20221214"
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
 
@@ -722,6 +728,13 @@ module Google
722
728
  end
723
729
  end
724
730
 
731
+ class CreateEnrollmentTokenResponse
732
+ # @private
733
+ class Representation < Google::Apis::Core::JsonRepresentation
734
+ property :enrollment_token, as: 'enrollmentToken'
735
+ end
736
+ end
737
+
725
738
  class Device
726
739
  # @private
727
740
  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. Speciying returnImmediately will cause the request to
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.16.0
4
+ version: 0.18.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: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.18.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: []