You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.</p>
<pclass="firstline">Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.</p>
<pre>Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.
178
178
179
179
Args:
180
-
enterpriseId: string, The ID of the enterprise. (required)
181
-
deviceType: string, Whether it’s a dedicated device or a knowledge worker device.
180
+
enterpriseId: string, Required. The ID of the enterprise. (required)
181
+
deviceType: string, Deprecated: Use enrollment_token instead. this field will be removed in the future.
182
182
Allowed values
183
183
unknown - This value is unused
184
184
dedicatedDevice - This device is a dedicated device.
185
185
knowledgeWorker - This device is required to have an authenticated user.
186
+
enrollmentToken_duration: string, [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
187
+
enrollmentToken_enrollmentTokenType: string, [Required] The type of the enrollment token.
188
+
Allowed values
189
+
enrollmentTokenTypeUnspecified - The value is unused.
190
+
userlessDevice - The enrollment token is for a userless device.
191
+
userDevice - The enrollment token is for a user device.
192
+
enrollmentToken_token: string, The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
"enrollmentToken": "A String", # Deprecated: Use token instead. This field will be removed in the future.
203
+
"token": { # A token used to enroll a device. # [Required] The created enrollment token.
204
+
"duration": "A String", # [Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.
205
+
"enrollmentTokenType": "A String", # [Required] The type of the enrollment token.
206
+
"token": "A String", # The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
Copy file name to clipboardExpand all lines: googleapiclient/discovery_cache/documents/androidenterprise.v1.json
+66-4Lines changed: 66 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -393,7 +393,8 @@
393
393
],
394
394
"parameters": {
395
395
"deviceType": {
396
-
"description": "Whether it\u2019s a dedicated device or a knowledge worker device.",
396
+
"deprecated": true,
397
+
"description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.",
397
398
"enum": [
398
399
"unknown",
399
400
"dedicatedDevice",
@@ -407,8 +408,34 @@
407
408
"location": "query",
408
409
"type": "string"
409
410
},
411
+
"enrollmentToken.duration": {
412
+
"description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.",
413
+
"format": "google-duration",
414
+
"location": "query",
415
+
"type": "string"
416
+
},
417
+
"enrollmentToken.enrollmentTokenType": {
418
+
"description": "[Required] The type of the enrollment token.",
419
+
"enum": [
420
+
"enrollmentTokenTypeUnspecified",
421
+
"userlessDevice",
422
+
"userDevice"
423
+
],
424
+
"enumDescriptions": [
425
+
"The value is unused.",
426
+
"The enrollment token is for a userless device.",
427
+
"The enrollment token is for a user device."
428
+
],
429
+
"location": "query",
430
+
"type": "string"
431
+
},
432
+
"enrollmentToken.token": {
433
+
"description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.",
434
+
"location": "query",
435
+
"type": "string"
436
+
},
410
437
"enterpriseId": {
411
-
"description": "The ID of the enterprise.",
438
+
"description": "Required. The ID of the enterprise.",
"description": "Deprecated: Use token instead. This field will be removed in the future.",
3157
3185
"type": "string"
3186
+
},
3187
+
"token": {
3188
+
"$ref": "EnrollmentToken",
3189
+
"description": "[Required] The created enrollment token."
3158
3190
}
3159
3191
},
3160
3192
"type": "object"
@@ -3293,6 +3325,36 @@
3293
3325
},
3294
3326
"type": "object"
3295
3327
},
3328
+
"EnrollmentToken": {
3329
+
"description": "A token used to enroll a device.",
3330
+
"id": "EnrollmentToken",
3331
+
"properties": {
3332
+
"duration": {
3333
+
"description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.",
3334
+
"format": "google-duration",
3335
+
"type": "string"
3336
+
},
3337
+
"enrollmentTokenType": {
3338
+
"description": "[Required] The type of the enrollment token.",
3339
+
"enum": [
3340
+
"enrollmentTokenTypeUnspecified",
3341
+
"userlessDevice",
3342
+
"userDevice"
3343
+
],
3344
+
"enumDescriptions": [
3345
+
"The value is unused.",
3346
+
"The enrollment token is for a userless device.",
3347
+
"The enrollment token is for a user device."
3348
+
],
3349
+
"type": "string"
3350
+
},
3351
+
"token": {
3352
+
"description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.",
3353
+
"type": "string"
3354
+
}
3355
+
},
3356
+
"type": "object"
3357
+
},
3296
3358
"Enterprise": {
3297
3359
"description": "An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.",
0 commit comments