OLD | NEW |
1 { | 1 { |
2 "basePath": "", | 2 "basePath": "", |
3 "baseUrl": "https://androiddeviceprovisioning.googleapis.com/", | 3 "baseUrl": "https://androiddeviceprovisioning.googleapis.com/", |
4 "batchPath": "batch", | 4 "batchPath": "batch", |
5 "canonicalName": "Android Provisioning Partner", | 5 "canonicalName": "Android Provisioning Partner", |
6 "description": "Android Device Provisioning Partner API", | 6 "description": "Automates reseller integration into Zero Touch Provisioning
by assigning devices to customers and creating device reports.", |
7 "discoveryVersion": "v1", | 7 "discoveryVersion": "v1", |
8 "documentationLink": "https://developers.google.com/zero-touch/", | 8 "documentationLink": "https://developers.google.com/zero-touch/", |
9 "icons": { | 9 "icons": { |
10 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 10 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
11 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 11 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
12 }, | 12 }, |
13 "id": "androiddeviceprovisioning:v1", | 13 "id": "androiddeviceprovisioning:v1", |
14 "kind": "discovery#restDescription", | 14 "kind": "discovery#restDescription", |
15 "name": "androiddeviceprovisioning", | 15 "name": "androiddeviceprovisioning", |
16 "ownerDomain": "google.com", | 16 "ownerDomain": "google.com", |
17 "ownerName": "Google", | 17 "ownerName": "Google", |
18 "parameters": { | 18 "parameters": { |
| 19 "alt": { |
| 20 "default": "json", |
| 21 "description": "Data format for response.", |
| 22 "enum": [ |
| 23 "json", |
| 24 "media", |
| 25 "proto" |
| 26 ], |
| 27 "enumDescriptions": [ |
| 28 "Responses with Content-Type of application/json", |
| 29 "Media download with context-dependent Content-Type", |
| 30 "Responses with Content-Type of application/x-protobuf" |
| 31 ], |
| 32 "location": "query", |
| 33 "type": "string" |
| 34 }, |
| 35 "access_token": { |
| 36 "description": "OAuth access token.", |
| 37 "location": "query", |
| 38 "type": "string" |
| 39 }, |
| 40 "key": { |
| 41 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 42 "location": "query", |
| 43 "type": "string" |
| 44 }, |
19 "quotaUser": { | 45 "quotaUser": { |
20 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 46 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
21 "location": "query", | 47 "location": "query", |
22 "type": "string" | 48 "type": "string" |
23 }, | 49 }, |
24 "pp": { | 50 "pp": { |
25 "default": "true", | 51 "default": "true", |
26 "description": "Pretty-print response.", | 52 "description": "Pretty-print response.", |
27 "location": "query", | 53 "location": "query", |
28 "type": "boolean" | 54 "type": "boolean" |
29 }, | 55 }, |
| 56 "bearer_token": { |
| 57 "description": "OAuth bearer token.", |
| 58 "location": "query", |
| 59 "type": "string" |
| 60 }, |
30 "oauth_token": { | 61 "oauth_token": { |
31 "description": "OAuth 2.0 token for the current user.", | 62 "description": "OAuth 2.0 token for the current user.", |
32 "location": "query", | 63 "location": "query", |
33 "type": "string" | 64 "type": "string" |
34 }, | 65 }, |
35 "bearer_token": { | |
36 "description": "OAuth bearer token.", | |
37 "location": "query", | |
38 "type": "string" | |
39 }, | |
40 "upload_protocol": { | 66 "upload_protocol": { |
41 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 67 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
42 "location": "query", | 68 "location": "query", |
43 "type": "string" | 69 "type": "string" |
44 }, | 70 }, |
45 "prettyPrint": { | 71 "prettyPrint": { |
46 "default": "true", | 72 "default": "true", |
47 "description": "Returns response with indentations and line breaks."
, | 73 "description": "Returns response with indentations and line breaks."
, |
48 "location": "query", | 74 "location": "query", |
49 "type": "boolean" | 75 "type": "boolean" |
(...skipping 18 matching lines...) Expand all Loading... |
68 "v1 error format", | 94 "v1 error format", |
69 "v2 error format" | 95 "v2 error format" |
70 ], | 96 ], |
71 "location": "query", | 97 "location": "query", |
72 "type": "string" | 98 "type": "string" |
73 }, | 99 }, |
74 "callback": { | 100 "callback": { |
75 "description": "JSONP", | 101 "description": "JSONP", |
76 "location": "query", | 102 "location": "query", |
77 "type": "string" | 103 "type": "string" |
78 }, | |
79 "alt": { | |
80 "default": "json", | |
81 "description": "Data format for response.", | |
82 "enum": [ | |
83 "json", | |
84 "media", | |
85 "proto" | |
86 ], | |
87 "enumDescriptions": [ | |
88 "Responses with Content-Type of application/json", | |
89 "Media download with context-dependent Content-Type", | |
90 "Responses with Content-Type of application/x-protobuf" | |
91 ], | |
92 "location": "query", | |
93 "type": "string" | |
94 }, | |
95 "access_token": { | |
96 "description": "OAuth access token.", | |
97 "location": "query", | |
98 "type": "string" | |
99 }, | |
100 "key": { | |
101 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
102 "location": "query", | |
103 "type": "string" | |
104 } | 104 } |
105 }, | 105 }, |
106 "protocol": "rest", | 106 "protocol": "rest", |
107 "resources": { | 107 "resources": { |
108 "partners": { | 108 "partners": { |
109 "resources": { | 109 "resources": { |
110 "devices": { | 110 "devices": { |
111 "methods": { | 111 "methods": { |
| 112 "get": { |
| 113 "description": "Get a device", |
| 114 "httpMethod": "GET", |
| 115 "id": "androiddeviceprovisioning.partners.devices.ge
t", |
| 116 "parameterOrder": [ |
| 117 "name" |
| 118 ], |
| 119 "parameters": { |
| 120 "name": { |
| 121 "description": "resource name in 'partners/[
PARTNER_ID]/devices/[DEVICE_ID]'.", |
| 122 "location": "path", |
| 123 "pattern": "^partners/[^/]+/devices/[^/]+$", |
| 124 "required": true, |
| 125 "type": "string" |
| 126 } |
| 127 }, |
| 128 "path": "v1/{+name}", |
| 129 "response": { |
| 130 "$ref": "Device" |
| 131 } |
| 132 }, |
112 "unclaim": { | 133 "unclaim": { |
113 "description": "Unclaim the device identified by dev
ice_id or identifier.", | 134 "description": "Unclaim the device identified by dev
ice_id or identifier.", |
114 "httpMethod": "POST", | 135 "httpMethod": "POST", |
115 "id": "androiddeviceprovisioning.partners.devices.un
claim", | 136 "id": "androiddeviceprovisioning.partners.devices.un
claim", |
116 "parameterOrder": [ | 137 "parameterOrder": [ |
117 "partnerId" | 138 "partnerId" |
118 ], | 139 ], |
119 "parameters": { | 140 "parameters": { |
120 "partnerId": { | 141 "partnerId": { |
121 "description": "Id of the partner.", | 142 "description": "Id of the partner.", |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 "type": "string" | 331 "type": "string" |
311 } | 332 } |
312 }, | 333 }, |
313 "path": "v1/partners/{+partnerId}/devices:updateMeta
dataAsync", | 334 "path": "v1/partners/{+partnerId}/devices:updateMeta
dataAsync", |
314 "request": { | 335 "request": { |
315 "$ref": "UpdateDeviceMetadataInBatchRequest" | 336 "$ref": "UpdateDeviceMetadataInBatchRequest" |
316 }, | 337 }, |
317 "response": { | 338 "response": { |
318 "$ref": "Operation" | 339 "$ref": "Operation" |
319 } | 340 } |
320 }, | |
321 "get": { | |
322 "description": "Get a device", | |
323 "httpMethod": "GET", | |
324 "id": "androiddeviceprovisioning.partners.devices.ge
t", | |
325 "parameterOrder": [ | |
326 "name" | |
327 ], | |
328 "parameters": { | |
329 "name": { | |
330 "description": "resource name in 'partners/[
PARTNER_ID]/devices/[DEVICE_ID]'.", | |
331 "location": "path", | |
332 "pattern": "^partners/[^/]+/devices/[^/]+$", | |
333 "required": true, | |
334 "type": "string" | |
335 } | |
336 }, | |
337 "path": "v1/{+name}", | |
338 "response": { | |
339 "$ref": "Device" | |
340 } | |
341 } | 341 } |
342 } | 342 } |
343 }, | 343 }, |
344 "customers": { | 344 "customers": { |
345 "methods": { | 345 "methods": { |
346 "list": { | 346 "list": { |
347 "description": "List all the customers that has dele
gates some role to this customer.", | 347 "description": "List all the customers that has dele
gates some role to this customer.", |
348 "httpMethod": "GET", | 348 "httpMethod": "GET", |
349 "id": "androiddeviceprovisioning.partners.customers.
list", | 349 "id": "androiddeviceprovisioning.partners.customers.
list", |
350 "parameterOrder": [ | 350 "parameterOrder": [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 388 } |
389 }, | 389 }, |
390 "path": "v1/{+name}", | 390 "path": "v1/{+name}", |
391 "response": { | 391 "response": { |
392 "$ref": "Operation" | 392 "$ref": "Operation" |
393 } | 393 } |
394 } | 394 } |
395 } | 395 } |
396 } | 396 } |
397 }, | 397 }, |
398 "revision": "20170722", | 398 "revision": "20170805", |
399 "rootUrl": "https://androiddeviceprovisioning.googleapis.com/", | 399 "rootUrl": "https://androiddeviceprovisioning.googleapis.com/", |
400 "schemas": { | 400 "schemas": { |
401 "Company": { | |
402 "description": "Company", | |
403 "id": "Company", | |
404 "properties": { | |
405 "companyId": { | |
406 "description": "company id", | |
407 "format": "int64", | |
408 "type": "string" | |
409 }, | |
410 "companyName": { | |
411 "description": "company name", | |
412 "type": "string" | |
413 } | |
414 }, | |
415 "type": "object" | |
416 }, | |
417 "UpdateDeviceMetadataRequest": { | |
418 "description": "Request to set metadata for a device.", | |
419 "id": "UpdateDeviceMetadataRequest", | |
420 "properties": { | |
421 "deviceMetadata": { | |
422 "$ref": "DeviceMetadata", | |
423 "description": "The metdata to set." | |
424 } | |
425 }, | |
426 "type": "object" | |
427 }, | |
428 "PartnerUnclaim": { | |
429 "description": "Identifies one unclaim request.", | |
430 "id": "PartnerUnclaim", | |
431 "properties": { | |
432 "sectionType": { | |
433 "description": "section type to unclaim.", | |
434 "enum": [ | |
435 "SECTION_TYPE_UNSPECIFIED", | |
436 "SECTION_TYPE_ZERO_TOUCH" | |
437 ], | |
438 "enumDescriptions": [ | |
439 "Unspecified", | |
440 "Zero touch" | |
441 ], | |
442 "type": "string" | |
443 }, | |
444 "deviceId": { | |
445 "description": "device id of the device.", | |
446 "format": "int64", | |
447 "type": "string" | |
448 }, | |
449 "deviceIdentifier": { | |
450 "$ref": "DeviceIdentifier", | |
451 "description": "device identifier of the device." | |
452 } | |
453 }, | |
454 "type": "object" | |
455 }, | |
456 "Empty": { | |
457 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | |
458 "id": "Empty", | |
459 "properties": {}, | |
460 "type": "object" | |
461 }, | |
462 "FindDevicesByDeviceIdentifierResponse": { | |
463 "description": "Response containing found devices.", | |
464 "id": "FindDevicesByDeviceIdentifierResponse", | |
465 "properties": { | |
466 "nextPageToken": { | |
467 "description": "Page token of next page", | |
468 "type": "string" | |
469 }, | |
470 "devices": { | |
471 "description": "Found devices.", | |
472 "items": { | |
473 "$ref": "Device" | |
474 }, | |
475 "type": "array" | |
476 } | |
477 }, | |
478 "type": "object" | |
479 }, | |
480 "PartnerClaim": { | |
481 "description": "Identifies one claim request.", | |
482 "id": "PartnerClaim", | |
483 "properties": { | |
484 "deviceMetadata": { | |
485 "$ref": "DeviceMetadata", | |
486 "description": "metadata to set at claim." | |
487 }, | |
488 "deviceIdentifier": { | |
489 "$ref": "DeviceIdentifier", | |
490 "description": "Device identifier of the device." | |
491 }, | |
492 "sectionType": { | |
493 "description": "section type to claim.", | |
494 "enum": [ | |
495 "SECTION_TYPE_UNSPECIFIED", | |
496 "SECTION_TYPE_ZERO_TOUCH" | |
497 ], | |
498 "enumDescriptions": [ | |
499 "Unspecified", | |
500 "Zero touch" | |
501 ], | |
502 "type": "string" | |
503 }, | |
504 "customerId": { | |
505 "description": "customer id to claim for.", | |
506 "format": "int64", | |
507 "type": "string" | |
508 } | |
509 }, | |
510 "type": "object" | |
511 }, | |
512 "UnclaimDeviceRequest": { | |
513 "description": "Request message to unclaim a device.", | |
514 "id": "UnclaimDeviceRequest", | |
515 "properties": { | |
516 "deviceId": { | |
517 "description": "The device id returned by ClaimDevice.", | |
518 "format": "int64", | |
519 "type": "string" | |
520 }, | |
521 "deviceIdentifier": { | |
522 "$ref": "DeviceIdentifier", | |
523 "description": "The device identifier you use when you claim
ed this device." | |
524 }, | |
525 "sectionType": { | |
526 "description": "The section type to unclaim for.", | |
527 "enum": [ | |
528 "SECTION_TYPE_UNSPECIFIED", | |
529 "SECTION_TYPE_ZERO_TOUCH" | |
530 ], | |
531 "enumDescriptions": [ | |
532 "Unspecified", | |
533 "Zero touch" | |
534 ], | |
535 "type": "string" | |
536 } | |
537 }, | |
538 "type": "object" | |
539 }, | |
540 "DeviceMetadata": { | |
541 "description": "metadata", | |
542 "id": "DeviceMetadata", | |
543 "properties": { | |
544 "entries": { | |
545 "additionalProperties": { | |
546 "type": "string" | |
547 }, | |
548 "description": "Metadata entries", | |
549 "type": "object" | |
550 } | |
551 }, | |
552 "type": "object" | |
553 }, | |
554 "DeviceClaim": { | 401 "DeviceClaim": { |
555 "description": "containing the necessary info about a claim for a pa
rtner.", | 402 "description": "containing the necessary info about a claim for a pa
rtner.", |
556 "id": "DeviceClaim", | 403 "id": "DeviceClaim", |
557 "properties": { | 404 "properties": { |
558 "ownerCompanyId": { | 405 "ownerCompanyId": { |
559 "description": "owner id", | 406 "description": "owner id", |
560 "format": "int64", | 407 "format": "int64", |
561 "type": "string" | 408 "type": "string" |
562 }, | 409 }, |
563 "sectionType": { | 410 "sectionType": { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 ], | 478 ], |
632 "type": "string" | 479 "type": "string" |
633 }, | 480 }, |
634 "errorIdentifier": { | 481 "errorIdentifier": { |
635 "description": "Error identifier.", | 482 "description": "Error identifier.", |
636 "type": "string" | 483 "type": "string" |
637 } | 484 } |
638 }, | 485 }, |
639 "type": "object" | 486 "type": "object" |
640 }, | 487 }, |
| 488 "ClaimDevicesRequest": { |
| 489 "description": "Request to claim devices asynchronously in batch.", |
| 490 "id": "ClaimDevicesRequest", |
| 491 "properties": { |
| 492 "claims": { |
| 493 "description": "list of claims.", |
| 494 "items": { |
| 495 "$ref": "PartnerClaim" |
| 496 }, |
| 497 "type": "array" |
| 498 } |
| 499 }, |
| 500 "type": "object" |
| 501 }, |
641 "FindDevicesByOwnerRequest": { | 502 "FindDevicesByOwnerRequest": { |
642 "description": "Request to find devices by customers.", | 503 "description": "Request to find devices by customers.", |
643 "id": "FindDevicesByOwnerRequest", | 504 "id": "FindDevicesByOwnerRequest", |
644 "properties": { | 505 "properties": { |
645 "limit": { | |
646 "description": "The number of devices to show in the result.
", | |
647 "format": "int64", | |
648 "type": "string" | |
649 }, | |
650 "sectionType": { | 506 "sectionType": { |
651 "description": "The section type.", | 507 "description": "The section type.", |
652 "enum": [ | 508 "enum": [ |
653 "SECTION_TYPE_UNSPECIFIED", | 509 "SECTION_TYPE_UNSPECIFIED", |
654 "SECTION_TYPE_ZERO_TOUCH" | 510 "SECTION_TYPE_ZERO_TOUCH" |
655 ], | 511 ], |
656 "enumDescriptions": [ | 512 "enumDescriptions": [ |
657 "Unspecified", | 513 "Unspecified", |
658 "Zero touch" | 514 "Zero touch" |
659 ], | 515 ], |
660 "type": "string" | 516 "type": "string" |
661 }, | 517 }, |
662 "pageToken": { | 518 "pageToken": { |
663 "description": "Page token", | 519 "description": "Page token", |
664 "type": "string" | 520 "type": "string" |
665 }, | 521 }, |
666 "customerId": { | 522 "customerId": { |
667 "description": "List of customer ids to search for.", | 523 "description": "List of customer ids to search for.", |
668 "items": { | 524 "items": { |
669 "format": "int64", | 525 "format": "int64", |
670 "type": "string" | 526 "type": "string" |
671 }, | 527 }, |
672 "type": "array" | 528 "type": "array" |
| 529 }, |
| 530 "limit": { |
| 531 "description": "The number of devices to show in the result.
", |
| 532 "format": "int64", |
| 533 "type": "string" |
673 } | 534 } |
674 }, | 535 }, |
675 "type": "object" | 536 "type": "object" |
676 }, | |
677 "ClaimDevicesRequest": { | |
678 "description": "Request to claim devices asynchronously in batch.", | |
679 "id": "ClaimDevicesRequest", | |
680 "properties": { | |
681 "claims": { | |
682 "description": "list of claims.", | |
683 "items": { | |
684 "$ref": "PartnerClaim" | |
685 }, | |
686 "type": "array" | |
687 } | |
688 }, | |
689 "type": "object" | |
690 }, | 537 }, |
691 "Operation": { | 538 "Operation": { |
692 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 539 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
693 "id": "Operation", | 540 "id": "Operation", |
694 "properties": { | 541 "properties": { |
695 "done": { | |
696 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", | |
697 "type": "boolean" | |
698 }, | |
699 "response": { | 542 "response": { |
700 "additionalProperties": { | 543 "additionalProperties": { |
701 "description": "Properties of the object. Contains field
@type with type URL.", | 544 "description": "Properties of the object. Contains field
@type with type URL.", |
702 "type": "any" | 545 "type": "any" |
703 }, | 546 }, |
704 "description": "This field will contain a `DevicesLongRunnin
gOperationResponse` object if the operation is created by `claimAsync`, `unclaim
Async`, or `updateMetadataAsync`.", | 547 "description": "This field will contain a `DevicesLongRunnin
gOperationResponse` object if the operation is created by `claimAsync`, `unclaim
Async`, or `updateMetadataAsync`.", |
705 "type": "object" | 548 "type": "object" |
706 }, | 549 }, |
707 "name": { | 550 "name": { |
708 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", | 551 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
709 "type": "string" | 552 "type": "string" |
710 }, | 553 }, |
711 "error": { | 554 "error": { |
712 "$ref": "Status", | 555 "$ref": "Status", |
713 "description": "This field will always be not set if the ope
ration is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In
this case, error information for each device is set in `response.perDeviceStatus
.result.status`." | 556 "description": "This field will always be not set if the ope
ration is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In
this case, error information for each device is set in `response.perDeviceStatus
.result.status`." |
714 }, | 557 }, |
715 "metadata": { | 558 "metadata": { |
716 "additionalProperties": { | 559 "additionalProperties": { |
717 "description": "Properties of the object. Contains field
@type with type URL.", | 560 "description": "Properties of the object. Contains field
@type with type URL.", |
718 "type": "any" | 561 "type": "any" |
719 }, | 562 }, |
720 "description": "This field will contain a `DevicesLongRunnin
gOperationMetadata` object if the operation is created by `claimAsync`, `unclaim
Async`, or `updateMetadataAsync`.", | 563 "description": "This field will contain a `DevicesLongRunnin
gOperationMetadata` object if the operation is created by `claimAsync`, `unclaim
Async`, or `updateMetadataAsync`.", |
721 "type": "object" | 564 "type": "object" |
| 565 }, |
| 566 "done": { |
| 567 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
| 568 "type": "boolean" |
722 } | 569 } |
723 }, | 570 }, |
724 "type": "object" | 571 "type": "object" |
725 }, | 572 }, |
726 "DeviceIdentifier": { | 573 "DeviceIdentifier": { |
727 "description": "DeviceIdentifiers identifies an unique device.", | 574 "description": "DeviceIdentifiers identifies an unique device.", |
728 "id": "DeviceIdentifier", | 575 "id": "DeviceIdentifier", |
729 "properties": { | 576 "properties": { |
730 "model": { | |
731 "description": "Model to match android.os.Build.MODEL (requi
red).", | |
732 "type": "string" | |
733 }, | |
734 "imei": { | |
735 "description": "IMEI (either IMEI or MEID is required).", | |
736 "type": "string" | |
737 }, | |
738 "manufacturer": { | 577 "manufacturer": { |
739 "description": "Manufacturer to match android.os.Build.MANUF
ACTURER (required).", | 578 "description": "Manufacturer name to match `android.os.Build
.MANUFACTURER` (required).\nAllowed values listed in\n[manufacturer names](/zero
-touch/resources/manufacturer-names).", |
740 "type": "string" | 579 "type": "string" |
741 }, | 580 }, |
742 "meid": { | 581 "meid": { |
743 "description": "MEID", | 582 "description": "MEID", |
744 "type": "string" | 583 "type": "string" |
745 }, | 584 }, |
746 "serialNumber": { | 585 "serialNumber": { |
747 "description": "Serial number (optional)", | 586 "description": "Serial number (optional)", |
748 "type": "string" | 587 "type": "string" |
| 588 }, |
| 589 "imei": { |
| 590 "description": "IMEI (either IMEI or MEID is required).", |
| 591 "type": "string" |
749 } | 592 } |
750 }, | 593 }, |
751 "type": "object" | 594 "type": "object" |
752 }, | 595 }, |
753 "UnclaimDevicesRequest": { | 596 "UnclaimDevicesRequest": { |
754 "description": "Request to unclaim devices asynchronously in batch."
, | 597 "description": "Request to unclaim devices asynchronously in batch."
, |
755 "id": "UnclaimDevicesRequest", | 598 "id": "UnclaimDevicesRequest", |
756 "properties": { | 599 "properties": { |
757 "unclaims": { | 600 "unclaims": { |
758 "description": "list of unclaims.", | 601 "description": "list of unclaims.", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | 651 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
809 "type": "string" | 652 "type": "string" |
810 } | 653 } |
811 }, | 654 }, |
812 "type": "object" | 655 "type": "object" |
813 }, | 656 }, |
814 "OperationPerDevice": { | 657 "OperationPerDevice": { |
815 "description": "Operation the server received for every device.", | 658 "description": "Operation the server received for every device.", |
816 "id": "OperationPerDevice", | 659 "id": "OperationPerDevice", |
817 "properties": { | 660 "properties": { |
818 "result": { | |
819 "$ref": "PerDeviceStatusInBatch", | |
820 "description": "Processing result for every device." | |
821 }, | |
822 "unclaim": { | |
823 "$ref": "PartnerUnclaim", | |
824 "description": "Request to unclaim a device." | |
825 }, | |
826 "claim": { | 661 "claim": { |
827 "$ref": "PartnerClaim", | 662 "$ref": "PartnerClaim", |
828 "description": "Request to claim a device." | 663 "description": "Request to claim a device." |
829 }, | 664 }, |
830 "updateMetadata": { | 665 "updateMetadata": { |
831 "$ref": "UpdateMetadataArguments", | 666 "$ref": "UpdateMetadataArguments", |
832 "description": "Request to set metadata for a device." | 667 "description": "Request to set metadata for a device." |
| 668 }, |
| 669 "result": { |
| 670 "$ref": "PerDeviceStatusInBatch", |
| 671 "description": "Processing result for every device." |
| 672 }, |
| 673 "unclaim": { |
| 674 "$ref": "PartnerUnclaim", |
| 675 "description": "Request to unclaim a device." |
833 } | 676 } |
834 }, | 677 }, |
835 "type": "object" | 678 "type": "object" |
836 }, | 679 }, |
837 "FindDevicesByOwnerResponse": { | 680 "FindDevicesByOwnerResponse": { |
838 "description": "Response containing found devices.", | 681 "description": "Response containing found devices.", |
839 "id": "FindDevicesByOwnerResponse", | 682 "id": "FindDevicesByOwnerResponse", |
840 "properties": { | 683 "properties": { |
841 "devices": { | 684 "devices": { |
842 "description": "Devices found.", | 685 "description": "Devices found.", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 "format": "int64", | 720 "format": "int64", |
878 "type": "string" | 721 "type": "string" |
879 } | 722 } |
880 }, | 723 }, |
881 "type": "object" | 724 "type": "object" |
882 }, | 725 }, |
883 "DevicesLongRunningOperationMetadata": { | 726 "DevicesLongRunningOperationMetadata": { |
884 "description": "Long running operation metadata.", | 727 "description": "Long running operation metadata.", |
885 "id": "DevicesLongRunningOperationMetadata", | 728 "id": "DevicesLongRunningOperationMetadata", |
886 "properties": { | 729 "properties": { |
887 "devicesCount": { | |
888 "description": "Number of devices parsed in your requests.", | |
889 "format": "int32", | |
890 "type": "integer" | |
891 }, | |
892 "processingStatus": { | 730 "processingStatus": { |
893 "description": "The overall processing status.", | 731 "description": "The overall processing status.", |
894 "enum": [ | 732 "enum": [ |
895 "BATCH_PROCESS_STATUS_UNSPECIFIED", | 733 "BATCH_PROCESS_STATUS_UNSPECIFIED", |
896 "BATCH_PROCESS_PENDING", | 734 "BATCH_PROCESS_PENDING", |
897 "BATCH_PROCESS_IN_PROGRESS", | 735 "BATCH_PROCESS_IN_PROGRESS", |
898 "BATCH_PROCESS_PROCESSED" | 736 "BATCH_PROCESS_PROCESSED" |
899 ], | 737 ], |
900 "enumDescriptions": [ | 738 "enumDescriptions": [ |
901 "Invalid code. Shouldn't be used.", | 739 "Invalid code. Shouldn't be used.", |
902 "Pending", | 740 "Pending", |
903 "In progress", | 741 "In progress", |
904 "Processed.\nThis doesn't mean all items were processed
sucessfully, you should\ncheck the `response` field for the result of every item
." | 742 "Processed.\nThis doesn't mean all items were processed
sucessfully, you should\ncheck the `response` field for the result of every item
." |
905 ], | 743 ], |
906 "type": "string" | 744 "type": "string" |
907 }, | 745 }, |
908 "progress": { | 746 "progress": { |
909 "description": "Processing progress from 0 to 100.", | 747 "description": "Processing progress from 0 to 100.", |
910 "format": "int32", | 748 "format": "int32", |
911 "type": "integer" | 749 "type": "integer" |
| 750 }, |
| 751 "devicesCount": { |
| 752 "description": "Number of devices parsed in your requests.", |
| 753 "format": "int32", |
| 754 "type": "integer" |
912 } | 755 } |
913 }, | 756 }, |
914 "type": "object" | 757 "type": "object" |
915 }, | 758 }, |
916 "UpdateDeviceMetadataInBatchRequest": { | 759 "UpdateDeviceMetadataInBatchRequest": { |
917 "description": "Request to update device metadata in batch.", | 760 "description": "Request to update device metadata in batch.", |
918 "id": "UpdateDeviceMetadataInBatchRequest", | 761 "id": "UpdateDeviceMetadataInBatchRequest", |
919 "properties": { | 762 "properties": { |
920 "updates": { | 763 "updates": { |
921 "description": "list of metadata updates.", | 764 "description": "list of metadata updates.", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 "format": "int64", | 817 "format": "int64", |
975 "type": "string" | 818 "type": "string" |
976 } | 819 } |
977 }, | 820 }, |
978 "type": "object" | 821 "type": "object" |
979 }, | 822 }, |
980 "Device": { | 823 "Device": { |
981 "description": "Device", | 824 "description": "Device", |
982 "id": "Device", | 825 "id": "Device", |
983 "properties": { | 826 "properties": { |
| 827 "deviceMetadata": { |
| 828 "$ref": "DeviceMetadata", |
| 829 "description": "Device metadata" |
| 830 }, |
| 831 "deviceIdentifier": { |
| 832 "$ref": "DeviceIdentifier", |
| 833 "description": "Device identifier" |
| 834 }, |
| 835 "name": { |
| 836 "description": "Resource name in 'partners/[PARTNER_ID]/devi
ces/[DEVICE_ID]'.", |
| 837 "type": "string" |
| 838 }, |
984 "claims": { | 839 "claims": { |
985 "description": "claims", | 840 "description": "claims", |
986 "items": { | 841 "items": { |
987 "$ref": "DeviceClaim" | 842 "$ref": "DeviceClaim" |
988 }, | 843 }, |
989 "type": "array" | 844 "type": "array" |
990 }, | 845 }, |
991 "deviceId": { | 846 "deviceId": { |
992 "description": "Device id", | 847 "description": "Device id", |
993 "format": "int64", | 848 "format": "int64", |
994 "type": "string" | 849 "type": "string" |
995 }, | |
996 "deviceMetadata": { | |
997 "$ref": "DeviceMetadata", | |
998 "description": "Device metadata" | |
999 }, | |
1000 "deviceIdentifier": { | |
1001 "$ref": "DeviceIdentifier", | |
1002 "description": "Device identifier" | |
1003 }, | |
1004 "name": { | |
1005 "description": "Resource name in 'partners/[PARTNER_ID]/devi
ces/[DEVICE_ID]'.", | |
1006 "type": "string" | |
1007 } | 850 } |
1008 }, | 851 }, |
1009 "type": "object" | 852 "type": "object" |
| 853 }, |
| 854 "Company": { |
| 855 "description": "Company", |
| 856 "id": "Company", |
| 857 "properties": { |
| 858 "companyName": { |
| 859 "description": "company name", |
| 860 "type": "string" |
| 861 }, |
| 862 "companyId": { |
| 863 "description": "company id", |
| 864 "format": "int64", |
| 865 "type": "string" |
| 866 } |
| 867 }, |
| 868 "type": "object" |
| 869 }, |
| 870 "UpdateDeviceMetadataRequest": { |
| 871 "description": "Request to set metadata for a device.", |
| 872 "id": "UpdateDeviceMetadataRequest", |
| 873 "properties": { |
| 874 "deviceMetadata": { |
| 875 "$ref": "DeviceMetadata", |
| 876 "description": "The metdata to set." |
| 877 } |
| 878 }, |
| 879 "type": "object" |
| 880 }, |
| 881 "PartnerUnclaim": { |
| 882 "description": "Identifies one unclaim request.", |
| 883 "id": "PartnerUnclaim", |
| 884 "properties": { |
| 885 "deviceId": { |
| 886 "description": "device id of the device.", |
| 887 "format": "int64", |
| 888 "type": "string" |
| 889 }, |
| 890 "deviceIdentifier": { |
| 891 "$ref": "DeviceIdentifier", |
| 892 "description": "device identifier of the device." |
| 893 }, |
| 894 "sectionType": { |
| 895 "description": "section type to unclaim.", |
| 896 "enum": [ |
| 897 "SECTION_TYPE_UNSPECIFIED", |
| 898 "SECTION_TYPE_ZERO_TOUCH" |
| 899 ], |
| 900 "enumDescriptions": [ |
| 901 "Unspecified", |
| 902 "Zero touch" |
| 903 ], |
| 904 "type": "string" |
| 905 } |
| 906 }, |
| 907 "type": "object" |
| 908 }, |
| 909 "Empty": { |
| 910 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
| 911 "id": "Empty", |
| 912 "properties": {}, |
| 913 "type": "object" |
| 914 }, |
| 915 "FindDevicesByDeviceIdentifierResponse": { |
| 916 "description": "Response containing found devices.", |
| 917 "id": "FindDevicesByDeviceIdentifierResponse", |
| 918 "properties": { |
| 919 "nextPageToken": { |
| 920 "description": "Page token of next page", |
| 921 "type": "string" |
| 922 }, |
| 923 "devices": { |
| 924 "description": "Found devices.", |
| 925 "items": { |
| 926 "$ref": "Device" |
| 927 }, |
| 928 "type": "array" |
| 929 } |
| 930 }, |
| 931 "type": "object" |
| 932 }, |
| 933 "PartnerClaim": { |
| 934 "description": "Identifies one claim request.", |
| 935 "id": "PartnerClaim", |
| 936 "properties": { |
| 937 "deviceMetadata": { |
| 938 "$ref": "DeviceMetadata", |
| 939 "description": "metadata to set at claim." |
| 940 }, |
| 941 "deviceIdentifier": { |
| 942 "$ref": "DeviceIdentifier", |
| 943 "description": "Device identifier of the device." |
| 944 }, |
| 945 "sectionType": { |
| 946 "description": "section type to claim.", |
| 947 "enum": [ |
| 948 "SECTION_TYPE_UNSPECIFIED", |
| 949 "SECTION_TYPE_ZERO_TOUCH" |
| 950 ], |
| 951 "enumDescriptions": [ |
| 952 "Unspecified", |
| 953 "Zero touch" |
| 954 ], |
| 955 "type": "string" |
| 956 }, |
| 957 "customerId": { |
| 958 "description": "customer id to claim for.", |
| 959 "format": "int64", |
| 960 "type": "string" |
| 961 } |
| 962 }, |
| 963 "type": "object" |
| 964 }, |
| 965 "UnclaimDeviceRequest": { |
| 966 "description": "Request message to unclaim a device.", |
| 967 "id": "UnclaimDeviceRequest", |
| 968 "properties": { |
| 969 "deviceIdentifier": { |
| 970 "$ref": "DeviceIdentifier", |
| 971 "description": "The device identifier you use when you claim
ed this device." |
| 972 }, |
| 973 "sectionType": { |
| 974 "description": "The section type to unclaim for.", |
| 975 "enum": [ |
| 976 "SECTION_TYPE_UNSPECIFIED", |
| 977 "SECTION_TYPE_ZERO_TOUCH" |
| 978 ], |
| 979 "enumDescriptions": [ |
| 980 "Unspecified", |
| 981 "Zero touch" |
| 982 ], |
| 983 "type": "string" |
| 984 }, |
| 985 "deviceId": { |
| 986 "description": "The device id returned by ClaimDevice.", |
| 987 "format": "int64", |
| 988 "type": "string" |
| 989 } |
| 990 }, |
| 991 "type": "object" |
| 992 }, |
| 993 "DeviceMetadata": { |
| 994 "description": "metadata", |
| 995 "id": "DeviceMetadata", |
| 996 "properties": { |
| 997 "entries": { |
| 998 "additionalProperties": { |
| 999 "type": "string" |
| 1000 }, |
| 1001 "description": "Metadata entries", |
| 1002 "type": "object" |
| 1003 } |
| 1004 }, |
| 1005 "type": "object" |
1010 } | 1006 } |
1011 }, | 1007 }, |
1012 "servicePath": "", | 1008 "servicePath": "", |
1013 "title": "Android Device Provisioning Partner API", | 1009 "title": "Android Device Provisioning Partner API", |
1014 "version": "v1" | 1010 "version": "v1" |
1015 } | 1011 } |
OLD | NEW |