2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-04 19:03:46 +00:00
restic/vendor/google.golang.org/api/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json

1082 lines
38 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
2017-09-13 12:09:48 +00:00
"canonicalName": "Android Provisioning Partner",
"kind": "discovery#restDescription",
"description": "Automates reseller integration into Zero Touch Provisioning by assigning devices to customers and creating device reports.",
"servicePath": "",
"rootUrl": "https://androiddeviceprovisioning.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "androiddeviceprovisioning",
2017-08-05 18:17:15 +00:00
"batchPath": "batch",
"id": "androiddeviceprovisioning:v1",
2017-09-13 12:09:48 +00:00
"documentationLink": "https://developers.google.com/zero-touch/",
"revision": "20170903",
2017-08-05 18:17:15 +00:00
"title": "Android Device Provisioning Partner API",
"ownerName": "Google",
2017-09-13 12:09:48 +00:00
"discoveryVersion": "v1",
"version_module": true,
2017-08-05 18:17:15 +00:00
"resources": {
"partners": {
"resources": {
2017-09-13 12:09:48 +00:00
"devices": {
2017-08-05 18:17:15 +00:00
"methods": {
2017-09-13 12:09:48 +00:00
"unclaim": {
"description": "Unclaim the device identified by the `device_id` or the `deviceIdentifier`.",
"request": {
"$ref": "UnclaimDeviceRequest"
},
2017-08-05 18:17:15 +00:00
"response": {
2017-09-13 12:09:48 +00:00
"$ref": "Empty"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
"partnerId"
],
2017-09-13 12:09:48 +00:00
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "ID of the partner.",
2017-08-05 18:17:15 +00:00
"pattern": "^[^/]+$",
"format": "int64",
"required": true,
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"flatPath": "v1/partners/{partnersId}/devices:unclaim",
"path": "v1/partners/{+partnerId}/devices:unclaim",
"id": "androiddeviceprovisioning.partners.devices.unclaim"
},
2017-08-05 18:17:15 +00:00
"findByOwner": {
"request": {
"$ref": "FindDevicesByOwnerRequest"
},
2017-09-13 12:09:48 +00:00
"description": "Find devices by ownership.",
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "FindDevicesByOwnerResponse"
},
"parameterOrder": [
"partnerId"
],
"httpMethod": "POST",
"parameters": {
"partnerId": {
"format": "int64",
"required": true,
2017-09-13 12:09:48 +00:00
"type": "string",
"location": "path",
"description": "ID of the partner.",
"pattern": "^[^/]+$"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/partners/{partnersId}/devices:findByOwner",
2017-09-13 12:09:48 +00:00
"path": "v1/partners/{+partnerId}/devices:findByOwner",
"id": "androiddeviceprovisioning.partners.devices.findByOwner"
2017-08-05 18:17:15 +00:00
},
"claim": {
"response": {
"$ref": "ClaimDeviceResponse"
},
"parameterOrder": [
"partnerId"
],
"httpMethod": "POST",
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "ID of the partner.",
"pattern": "^[^/]+$",
2017-08-05 18:17:15 +00:00
"format": "int64",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/partners/{partnersId}/devices:claim",
"path": "v1/partners/{+partnerId}/devices:claim",
2017-09-13 12:09:48 +00:00
"id": "androiddeviceprovisioning.partners.devices.claim",
2017-08-05 18:17:15 +00:00
"request": {
"$ref": "ClaimDeviceRequest"
},
"description": "Claim the device identified by device identifier."
},
"claimAsync": {
2017-09-13 12:09:48 +00:00
"path": "v1/partners/{+partnerId}/devices:claimAsync",
"id": "androiddeviceprovisioning.partners.devices.claimAsync",
"request": {
"$ref": "ClaimDevicesRequest"
},
"description": "Claim devices asynchronously.",
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"partnerId"
],
"httpMethod": "POST",
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"description": "Partner ID.",
2017-08-05 18:17:15 +00:00
"pattern": "^[^/]+$",
"format": "int64",
"type": "string",
"required": true,
"location": "path"
}
},
2017-09-13 12:09:48 +00:00
"flatPath": "v1/partners/{partnersId}/devices:claimAsync"
2017-08-05 18:17:15 +00:00
},
"findByIdentifier": {
"response": {
"$ref": "FindDevicesByDeviceIdentifierResponse"
},
"parameterOrder": [
"partnerId"
],
"httpMethod": "POST",
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "ID of the partner.",
"pattern": "^[^/]+$",
2017-08-05 18:17:15 +00:00
"format": "int64",
"required": true,
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/partners/{partnersId}/devices:findByIdentifier",
2017-09-13 12:09:48 +00:00
"path": "v1/partners/{+partnerId}/devices:findByIdentifier",
2017-08-05 18:17:15 +00:00
"id": "androiddeviceprovisioning.partners.devices.findByIdentifier",
2017-09-13 12:09:48 +00:00
"description": "Find devices by device identifier.",
"request": {
"$ref": "FindDevicesByDeviceIdentifierRequest"
}
2017-08-05 18:17:15 +00:00
},
"unclaimAsync": {
"request": {
"$ref": "UnclaimDevicesRequest"
},
2017-09-13 12:09:48 +00:00
"description": "Unclaim devices asynchronously.",
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"parameterOrder": [
"partnerId"
],
2017-09-13 12:09:48 +00:00
"response": {
"$ref": "Operation"
},
2017-08-05 18:17:15 +00:00
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"description": "Partner ID.",
2017-08-05 18:17:15 +00:00
"pattern": "^[^/]+$",
"format": "int64",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true,
2017-08-05 18:17:15 +00:00
"location": "path"
}
},
"flatPath": "v1/partners/{partnersId}/devices:unclaimAsync",
"id": "androiddeviceprovisioning.partners.devices.unclaimAsync",
"path": "v1/partners/{+partnerId}/devices:unclaimAsync"
},
"metadata": {
2017-09-13 12:09:48 +00:00
"path": "v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata",
"id": "androiddeviceprovisioning.partners.devices.metadata",
"description": "Update the metadata.",
"request": {
"$ref": "UpdateDeviceMetadataRequest"
},
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "DeviceMetadata"
},
"parameterOrder": [
"metadataOwnerId",
"deviceId"
],
"httpMethod": "POST",
"parameters": {
"metadataOwnerId": {
"pattern": "^[^/]+$",
"format": "int64",
"type": "string",
"required": true,
"location": "path",
2017-09-13 12:09:48 +00:00
"description": "The owner of the newly set metadata. Set this to the partner ID."
2017-08-05 18:17:15 +00:00
},
"deviceId": {
2017-09-13 12:09:48 +00:00
"format": "int64",
2017-08-05 18:17:15 +00:00
"required": true,
"type": "string",
"location": "path",
2017-09-13 12:09:48 +00:00
"description": "ID of the partner.",
"pattern": "^[^/]+$"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"flatPath": "v1/partners/{partnersId}/devices/{devicesId}/metadata"
2017-08-05 18:17:15 +00:00
},
"updateMetadataAsync": {
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"partnerId"
],
"httpMethod": "POST",
"parameters": {
"partnerId": {
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "Partner ID.",
2017-08-05 18:17:15 +00:00
"pattern": "^[^/]+$",
"format": "int64",
"required": true,
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/partners/{partnersId}/devices:updateMetadataAsync",
"path": "v1/partners/{+partnerId}/devices:updateMetadataAsync",
2017-09-13 12:09:48 +00:00
"id": "androiddeviceprovisioning.partners.devices.updateMetadataAsync",
2017-08-05 18:17:15 +00:00
"description": "Set metadata in batch asynchronously.",
"request": {
"$ref": "UpdateDeviceMetadataInBatchRequest"
}
},
"get": {
2017-09-13 12:09:48 +00:00
"description": "Get a device.",
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "Device"
},
2017-09-13 12:09:48 +00:00
"parameterOrder": [
"name"
],
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameters": {
"name": {
"pattern": "^partners/[^/]+/devices/[^/]+$",
2017-09-13 12:09:48 +00:00
"location": "path",
"description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
"required": true,
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/partners/{partnersId}/devices/{devicesId}",
"path": "v1/{+name}",
"id": "androiddeviceprovisioning.partners.devices.get"
2017-09-13 12:09:48 +00:00
}
}
},
"customers": {
"methods": {
"create": {
"description": "A customer for Zero Touch Provisioning will be created.\nAfter a Customer is created, their admins and owners will be able to manage\ndevices on partner.android.com/zerotouch or via their API.",
"request": {
"$ref": "CreateCustomerRequest"
},
"response": {
"$ref": "Company"
},
"parameterOrder": [
"parent"
],
"httpMethod": "POST",
"parameters": {
"parent": {
"description": "The parent resource in format `partners/[PARTNER_ID]'.",
"required": true,
"type": "string",
"pattern": "^partners/[^/]+$",
"location": "path"
}
},
"flatPath": "v1/partners/{partnersId}/customers",
"path": "v1/{+parent}/customers",
"id": "androiddeviceprovisioning.partners.customers.create"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"list": {
"id": "androiddeviceprovisioning.partners.customers.list",
"path": "v1/partners/{+partnerId}/customers",
"description": "List the customers that are enrolled to the reseller identified by the\n`partnerId` argument. This list includes customers that the reseller\ncreated and customers that enrolled themselves using the portal.",
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"response": {
2017-09-13 12:09:48 +00:00
"$ref": "ListCustomersResponse"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
"partnerId"
],
"parameters": {
"partnerId": {
"location": "path",
2017-09-13 12:09:48 +00:00
"description": "The ID of the partner.",
2017-08-05 18:17:15 +00:00
"pattern": "^[^/]+$",
"format": "int64",
"required": true,
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"flatPath": "v1/partners/{partnersId}/customers"
2017-08-05 18:17:15 +00:00
}
}
}
}
},
"operations": {
"methods": {
"get": {
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameters": {
"name": {
"pattern": "^operations/.+$",
"location": "path",
"description": "The name of the operation resource.",
2017-09-13 12:09:48 +00:00
"required": true,
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1/operations/{operationsId}",
"path": "v1/{+name}",
2017-09-13 12:09:48 +00:00
"id": "androiddeviceprovisioning.operations.get",
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice."
2017-08-05 18:17:15 +00:00
}
}
}
},
"parameters": {
2017-09-13 12:09:48 +00:00
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
2017-08-05 18:17:15 +00:00
"pp": {
"location": "query",
"description": "Pretty-print response.",
2017-09-13 12:09:48 +00:00
"type": "boolean",
"default": "true"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
2017-09-13 12:09:48 +00:00
"type": "boolean",
2017-08-05 18:17:15 +00:00
"default": "true",
2017-09-13 12:09:48 +00:00
"location": "query"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
2017-08-05 18:17:15 +00:00
"location": "query",
2017-09-13 12:09:48 +00:00
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
2017-08-05 18:17:15 +00:00
"type": "string",
2017-09-13 12:09:48 +00:00
"location": "query"
2017-08-05 18:17:15 +00:00
},
"$.xgafv": {
2017-09-13 12:09:48 +00:00
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
2017-08-05 18:17:15 +00:00
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
},
"callback": {
2017-09-13 12:09:48 +00:00
"location": "query",
2017-08-05 18:17:15 +00:00
"description": "JSONP",
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
},
"alt": {
2017-09-13 12:09:48 +00:00
"description": "Data format for response.",
"default": "json",
2017-08-05 18:17:15 +00:00
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
2017-09-13 12:09:48 +00:00
"location": "query"
2017-08-05 18:17:15 +00:00
},
"access_token": {
2017-09-13 12:09:48 +00:00
"description": "OAuth access token.",
2017-08-05 18:17:15 +00:00
"type": "string",
2017-09-13 12:09:48 +00:00
"location": "query"
2017-08-05 18:17:15 +00:00
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
2017-09-13 12:09:48 +00:00
"type": "string",
"location": "query"
2017-08-05 18:17:15 +00:00
}
},
"schemas": {
2017-09-13 12:09:48 +00:00
"DeviceMetadata": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"entries": {
"additionalProperties": {
"type": "string"
},
"description": "Metadata entries",
"type": "object"
}
},
"id": "DeviceMetadata",
"description": "A key-value pair of the device metadata.",
"type": "object"
},
"DevicesLongRunningOperationResponse": {
"properties": {
"successCount": {
"description": "Number of succeesfully processed ones.",
2017-08-05 18:17:15 +00:00
"format": "int32",
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"perDeviceStatus": {
"description": "Processing status for each device.\nOne `PerDeviceStatus` per device. The order is the same as in your requests.",
"type": "array",
"items": {
"$ref": "OperationPerDevice"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DevicesLongRunningOperationResponse",
"description": "Long running operation response.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeviceClaim": {
"description": "Information about a device claimed for a partner.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"ownerCompanyId": {
"description": "Owner ID.",
2017-08-05 18:17:15 +00:00
"format": "int64",
"type": "string"
},
"sectionType": {
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
2017-09-13 12:09:48 +00:00
"description": "Section type of the device claim.",
"type": "string",
"enumDescriptions": [
"Unspecified section type.",
"Zero touch section type."
]
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeviceClaim"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PerDeviceStatusInBatch": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"errorIdentifier": {
"description": "Error identifier.",
"type": "string"
},
"errorMessage": {
"description": "Error message.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"deviceId": {
2017-09-13 12:09:48 +00:00
"description": "Device ID of the device if process succeeds.",
2017-08-05 18:17:15 +00:00
"format": "int64",
2017-09-13 12:09:48 +00:00
"type": "string"
},
"status": {
"enumDescriptions": [
"Invalid code. Shouldn't be used.",
"Unknown error.\nWe don't expect this error to occur here.",
"Other error.\nWe know/expect this error, but there's no defined error code for the\nerror.",
"Success.",
"Permission denied.",
"Invalid device identifier.",
"Invalid section type.",
"This section is claimed by another company."
],
"enum": [
"SINGLE_DEVICE_STATUS_UNSPECIFIED",
"SINGLE_DEVICE_STATUS_UNKNOWN_ERROR",
"SINGLE_DEVICE_STATUS_OTHER_ERROR",
"SINGLE_DEVICE_STATUS_SUCCESS",
"SINGLE_DEVICE_STATUS_PERMISSION_DENIED",
"SINGLE_DEVICE_STATUS_INVALID_DEVICE_IDENTIFIER",
"SINGLE_DEVICE_STATUS_INVALID_SECTION_TYPE",
"SINGLE_DEVICE_STATUS_SECTION_NOT_YOURS"
],
"description": "Process result.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "PerDeviceStatusInBatch",
"description": "Stores the processing result for each device.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FindDevicesByOwnerRequest": {
"description": "Request to find devices by customers.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"limit": {
"description": "The number of devices to show in the result.",
"format": "int64",
"type": "string"
},
"pageToken": {
"description": "Page token.",
"type": "string"
},
"sectionType": {
"enumDescriptions": [
"Unspecified section type.",
"Zero touch section type."
],
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
"description": "The section type.",
"type": "string"
},
"customerId": {
"description": "List of customer IDs to search for.",
"type": "array",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"format": "int64",
"type": "string"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "FindDevicesByOwnerRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ClaimDevicesRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"claims": {
"description": "List of claims.",
"type": "array",
"items": {
"$ref": "PartnerClaim"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ClaimDevicesRequest",
"description": "Request to claim devices asynchronously in batch.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Operation": {
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
"type": "object",
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"done": {
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"error": {
"description": "This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in `response.perDeviceStatus.result.status`.",
"$ref": "Status"
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"description": "This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`.",
"type": "object"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Operation"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeviceIdentifier": {
"description": "Identifies a unique device.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"imei": {
"description": "IMEI number.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"meid": {
"description": "MEID number.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"manufacturer": {
"description": "Manufacturer name to match `android.os.Build.MANUFACTURER` (required).\nAllowed values listed in\n[manufacturer names](/zero-touch/resources/manufacturer-names).",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"serialNumber": {
"description": "Serial number (optional).",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "DeviceIdentifier"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UnclaimDevicesRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"unclaims": {
"description": "List of devices to unclaim.",
"type": "array",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "PartnerUnclaim"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UnclaimDevicesRequest",
"description": "Request to unclaim devices asynchronously in batch.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Status": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"type": "array",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"message": {
"description": "A developer-facing error message, which should 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.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "Status",
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FindDevicesByDeviceIdentifierRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
"deviceIdentifier": {
"$ref": "DeviceIdentifier",
2017-09-13 12:09:48 +00:00
"description": "The device identifier to search."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"pageToken": {
"description": "Page token.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"limit": {
"description": "Number of devices to show.",
2017-08-05 18:17:15 +00:00
"format": "int64",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "FindDevicesByDeviceIdentifierRequest",
"description": "Request to find devices.",
2017-08-05 18:17:15 +00:00
"type": "object"
},
2017-09-13 12:09:48 +00:00
"OperationPerDevice": {
"description": "Operation the server received for every device.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"claim": {
"$ref": "PartnerClaim",
"description": "Request to claim a device."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateMetadata": {
"description": "Request to set metadata for a device.",
"$ref": "UpdateMetadataArguments"
},
"unclaim": {
"description": "Request to unclaim a device.",
"$ref": "PartnerUnclaim"
},
"result": {
"$ref": "PerDeviceStatusInBatch",
"description": "Processing result for every device."
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
},
"id": "OperationPerDevice"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FindDevicesByOwnerResponse": {
"description": "Response containing found devices.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"devices": {
"description": "Devices found.",
"type": "array",
"items": {
"$ref": "Device"
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"nextPageToken": {
"description": "Page token of the next page.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "FindDevicesByOwnerResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DevicesLongRunningOperationMetadata": {
"description": "Long running operation metadata.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"devicesCount": {
"description": "Number of devices parsed in your requests.",
"format": "int32",
"type": "integer"
},
"processingStatus": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Invalid code. Shouldn't be used.",
"Pending.",
"In progress.",
"Processed.\nThis doesn't mean all items were processed sucessfully, you should\ncheck the `response` field for the result of every item."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"BATCH_PROCESS_STATUS_UNSPECIFIED",
"BATCH_PROCESS_PENDING",
"BATCH_PROCESS_IN_PROGRESS",
"BATCH_PROCESS_PROCESSED"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "The overall processing status.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"progress": {
"description": "Processing progress from 0 to 100.",
"format": "int32",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DevicesLongRunningOperationMetadata"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ClaimDeviceRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"deviceIdentifier": {
"description": "The device identifier of the device to claim.",
"$ref": "DeviceIdentifier"
2017-08-05 18:17:15 +00:00
},
"sectionType": {
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
2017-09-13 12:09:48 +00:00
"description": "The section to claim.",
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Unspecified section type.",
"Zero touch section type."
2017-08-05 18:17:15 +00:00
]
},
"customerId": {
2017-09-13 12:09:48 +00:00
"description": "The customer to claim for.",
"format": "int64",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ClaimDeviceRequest",
"description": "Request message to claim a device on behalf of a customer.",
2017-08-05 18:17:15 +00:00
"type": "object"
},
2017-09-13 12:09:48 +00:00
"UpdateDeviceMetadataInBatchRequest": {
"description": "Request to update device metadata in batch.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"updates": {
"description": "List of metadata updates.",
"type": "array",
"items": {
"$ref": "UpdateMetadataArguments"
}
}
},
"id": "UpdateDeviceMetadataInBatchRequest"
},
"UpdateMetadataArguments": {
"properties": {
"deviceId": {
"description": "Device ID of the device.",
"format": "int64",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"deviceIdentifier": {
"description": "Device identifier.",
"$ref": "DeviceIdentifier"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "The metadata to update."
}
},
"id": "UpdateMetadataArguments",
"description": "Identifies metdata updates to one device.",
"type": "object"
},
"ClaimDeviceResponse": {
"description": "Response message containing device id of the claim.",
"type": "object",
"properties": {
"deviceId": {
"description": "The device ID of the claimed device.",
"format": "int64",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"deviceName": {
"description": "The resource name of the device in the format\n`partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "ClaimDeviceResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ListCustomersResponse": {
"description": "Response message of all customers related to this partner.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"customers": {
"description": "List of customers related to this partner.",
"type": "array",
"items": {
"$ref": "Company"
}
}
},
"id": "ListCustomersResponse"
},
"Device": {
"description": "An Android device.",
"type": "object",
"properties": {
"deviceId": {
"description": "Device ID.",
"format": "int64",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"configuration": {
"description": "The resource name of the configuration.\nOnly set for customers.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"claims": {
"description": "Claims.",
"type": "array",
"items": {
"$ref": "DeviceClaim"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"deviceIdentifier": {
"description": "Device identifier.",
"$ref": "DeviceIdentifier"
},
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "Device metadata."
},
"name": {
"description": "Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Device"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CreateCustomerRequest": {
"description": "Request message to create a customer.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"customer": {
"$ref": "Company",
"description": "The customer to create."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CreateCustomerRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Company": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"ownerEmails": {
"description": "Owner emails.\nOwners are able to operate on the portal, and modify admins or other\nowners. This field is a write-only field at creation time.",
"type": "array",
"items": {
"type": "string"
}
},
"companyId": {
"description": "Company ID.",
"format": "int64",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"companyName": {
"description": "Company name.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"name": {
"description": "The API resource name of the company in the format\n`partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.",
"type": "string"
},
"adminEmails": {
"description": "Admin emails.\nAdmins are able to operate on the portal.\nThis field is a write-only field at creation time.",
"type": "array",
"items": {
"type": "string"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Company",
"description": "Company",
2017-08-05 18:17:15 +00:00
"type": "object"
},
2017-09-13 12:09:48 +00:00
"UpdateDeviceMetadataRequest": {
"properties": {
"deviceMetadata": {
"$ref": "DeviceMetadata",
"description": "The metdata to set."
}
},
"id": "UpdateDeviceMetadataRequest",
"description": "Request to set metadata for a device.",
"type": "object"
},
"PartnerUnclaim": {
"description": "Identifies one unclaim request.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"deviceId": {
"description": "Device ID of the device.",
2017-08-05 18:17:15 +00:00
"format": "int64",
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
},
"deviceIdentifier": {
2017-09-13 12:09:48 +00:00
"description": "Device identifier of the device.",
"$ref": "DeviceIdentifier"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sectionType": {
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
"description": "Section type to unclaim.",
"type": "string",
"enumDescriptions": [
"Unspecified section type.",
"Zero touch section type."
]
}
},
"id": "PartnerUnclaim"
},
"Empty": {
"properties": {},
"id": "Empty",
"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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object"
},
"FindDevicesByDeviceIdentifierResponse": {
"properties": {
"nextPageToken": {
"description": "Page token of the next page.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
"devices": {
"description": "Found devices.",
"type": "array",
"items": {
"$ref": "Device"
}
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "FindDevicesByDeviceIdentifierResponse",
"description": "Response containing found devices.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PartnerClaim": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"deviceIdentifier": {
"description": "Device identifier of the device.",
"$ref": "DeviceIdentifier"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deviceMetadata": {
"description": "Metadata to set at claim.",
"$ref": "DeviceMetadata"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sectionType": {
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
"description": "Section type to claim.",
"type": "string",
"enumDescriptions": [
"Unspecified section type.",
"Zero touch section type."
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"customerId": {
"description": "Customer ID to claim for.",
"format": "int64",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "PartnerClaim",
"description": "Identifies one claim request.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UnclaimDeviceRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"deviceId": {
"description": "The device ID returned by `ClaimDevice`.",
"format": "int64",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"deviceIdentifier": {
"$ref": "DeviceIdentifier",
"description": "The device identifier you used when you claimed this device."
},
"sectionType": {
"enumDescriptions": [
"Unspecified section type.",
"Zero touch section type."
],
"enum": [
"SECTION_TYPE_UNSPECIFIED",
"SECTION_TYPE_ZERO_TOUCH"
],
"description": "The section type to unclaim for.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UnclaimDeviceRequest",
"description": "Request message to unclaim a device.",
"type": "object"
2017-08-05 18:17:15 +00:00
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"version": "v1",
2017-09-13 12:09:48 +00:00
"baseUrl": "https://androiddeviceprovisioning.googleapis.com/"
2017-08-05 18:17:15 +00:00
}