google-apis-androidenterprise_v1 0.17.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: 434c5de5dcb9d2b47533f34e91ec6ecb5c3e34fe2dbbc0357d7a1c9095470ce8
4
- data.tar.gz: 25b8010fd6275efb744372fe9328c694aa11df182d5b477a3e20291268fec7a4
3
+ metadata.gz: 1b6d94403f351b80cab1e495b6e046300d286c913f23ff0c6b7a215fb3a3f3c6
4
+ data.tar.gz: 06f847bc73bd275e7f3fde4c593e5588a030a72aebc68fd7756b942865e80190
5
5
  SHA512:
6
- metadata.gz: 5b80d10aedced559c522e78c58a3c9f0de5ed1e264a64fb0c6e0c8c286df044c23a7582482b4d93db0f7a10f7604b9acc2584a590172268bacd73cc28dd179ff
7
- data.tar.gz: 614cd3c1bc3f7a012994e3ae945ce338e81413ceefde77ea42c9cdf5100b119e50263ec71ed800f92bbeba4a09dd2a8810c645451f42df3c1ce9fa0f8b0dc67f
6
+ metadata.gz: c7e1992c9a7b5ddbd4b53cafdadf3b7616c35e3d9e3ced3d9a29effde63210bf5be2730214bc3a9667cbb716cc790b5d6a51a0f57c94efe241cc9d4e904ea406
7
+ data.tar.gz: 0b308fbecc27d55ac7fd2764713a3823e1aed3120b0cec4af7cad4088b062a502c1aad764750bc306992feefa42a07132fa2d2cbe0f84290088f44d70e6f0e99
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.17.0 (2022-10-27)
4
8
 
5
9
  * 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
@@ -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.17.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221019"
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.17.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-10-31 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
@@ -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.17.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: []