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
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
-
Allowed values
183
-
unknown - This value is unused
184
-
dedicatedDevice - This device is a dedicated device.
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.
181
+
body: object, The request body.
182
+
The object takes the form of:
183
+
184
+
{ # A token used to enroll a device.
185
+
"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.
186
+
"enrollmentTokenType": "A String", # [Required] The type of the enrollment token.
187
+
"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.
188
+
}
189
+
193
190
x__xgafv: string, V1 error format.
194
191
Allowed values
195
192
1 - v1 error format
@@ -198,13 +195,10 @@ <h3>Method Details</h3>
198
195
Returns:
199
196
An object of the form:
200
197
201
-
{ # Response message for create enrollment token.
202
-
"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.
207
-
},
198
+
{ # A token used to enroll a device.
199
+
"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.
200
+
"enrollmentTokenType": "A String", # [Required] The type of the enrollment token.
201
+
"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
+5-60Lines changed: 5 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -392,48 +392,6 @@
392
392
"enterpriseId"
393
393
],
394
394
"parameters": {
395
-
"deviceType": {
396
-
"deprecated": true,
397
-
"description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.",
398
-
"enum": [
399
-
"unknown",
400
-
"dedicatedDevice",
401
-
"knowledgeWorker"
402
-
],
403
-
"enumDescriptions": [
404
-
"This value is unused",
405
-
"This device is a dedicated device.",
406
-
"This device is required to have an authenticated user."
407
-
],
408
-
"location": "query",
409
-
"type": "string"
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
-
},
437
395
"enterpriseId": {
438
396
"description": "Required. The ID of the enterprise.",
0 commit comments