|
393 | 393 | ],
|
394 | 394 | "parameters": {
|
395 | 395 | "deviceType": {
|
396 |
| - "description": "Whether it’s 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 | 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.", |
412 | 439 | "location": "path",
|
413 | 440 | "required": true,
|
414 | 441 | "type": "string"
|
|
2654 | 2681 | }
|
2655 | 2682 | }
|
2656 | 2683 | },
|
2657 |
| - "revision": "20241028", |
| 2684 | + "revision": "20241113", |
2658 | 2685 | "rootUrl": "https://androidenterprise.googleapis.com/",
|
2659 | 2686 | "schemas": {
|
2660 | 2687 | "Administrator": {
|
|
3153 | 3180 | "id": "CreateEnrollmentTokenResponse",
|
3154 | 3181 | "properties": {
|
3155 | 3182 | "enrollmentToken": {
|
3156 |
| - "description": "Enrollment token.", |
| 3183 | + "deprecated": true, |
| 3184 | + "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 | 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.",
|
3298 | 3360 | "id": "Enterprise",
|
|
0 commit comments