2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-15 09:44:15 +00:00
restic/vendor/google.golang.org/api/androidmanagement/v1/androidmanagement-api.json

2362 lines
101 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"id": "androidmanagement:v1",
2017-09-13 12:09:48 +00:00
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/androidmanagement": {
"description": "Manage Android devices and apps for your customers"
}
}
}
},
2017-08-05 18:17:15 +00:00
"description": "The Android Management API provides remote enterprise management of Android devices and apps.",
"protocol": "rest",
"title": "Android Management API",
"resources": {
"signupUrls": {
"methods": {
"create": {
"id": "androidmanagement.signupUrls.create",
"response": {
"$ref": "SignupUrl"
},
"parameterOrder": [],
"description": "Creates an enterprise signup URL.",
"flatPath": "v1/signupUrls",
"httpMethod": "POST",
"parameters": {
"callbackUrl": {
2017-09-13 12:09:48 +00:00
"description": "The callback URL to which the admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string"
},
"projectId": {
"description": "The id of the Google Cloud Platform project which will own the enterprise.",
"location": "query",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/signupUrls",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
},
"enterprises": {
"resources": {
"policies": {
"methods": {
"get": {
"id": "androidmanagement.enterprises.policies.get",
"response": {
"$ref": "Policy"
},
"parameterOrder": [
"name"
],
"description": "Gets a policy.",
"flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}",
"httpMethod": "GET",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/policies/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"list": {
"id": "androidmanagement.enterprises.policies.list",
"response": {
"$ref": "ListPoliciesResponse"
},
"parameterOrder": [
"parent"
],
"description": "Lists policies for a given enterprise.",
"flatPath": "v1/enterprises/{enterprisesId}/policies",
"httpMethod": "GET",
"parameters": {
"pageSize": {
2017-09-13 12:09:48 +00:00
"description": "The requested page size. The actual page size may be fixed to a min or max value.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "integer",
"format": "int32"
},
"parent": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
},
"pageToken": {
"description": "A token identifying a page of results the server should return.",
"location": "query",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+parent}/policies",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"patch": {
"id": "androidmanagement.enterprises.policies.patch",
"response": {
"$ref": "Policy"
},
"parameterOrder": [
"name"
],
"description": "Updates or creates a policy.",
"request": {
"$ref": "Policy"
},
"flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}",
"httpMethod": "PATCH",
"parameters": {
"updateMask": {
2017-09-13 12:09:48 +00:00
"description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string",
"format": "google-fieldmask"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/policies/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"delete": {
"id": "androidmanagement.enterprises.policies.delete",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.",
2017-08-05 18:17:15 +00:00
"flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}",
"httpMethod": "DELETE",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/policies/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
},
"applications": {
"methods": {
"get": {
"id": "androidmanagement.enterprises.applications.get",
"response": {
"$ref": "Application"
},
"parameterOrder": [
"name"
],
"description": "Gets info about an application.",
"flatPath": "v1/enterprises/{enterprisesId}/applications/{applicationsId}",
"httpMethod": "GET",
"parameters": {
"languageCode": {
2017-09-13 12:09:48 +00:00
"description": "The preferred language for localized application info, as a BCP47 tag (e.g. \"en-US\", \"de\"). If not specified the default language of the application will be used.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/applications/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
},
"enrollmentTokens": {
"methods": {
"create": {
"id": "androidmanagement.enterprises.enrollmentTokens.create",
"response": {
"$ref": "EnrollmentToken"
},
"parameterOrder": [
"parent"
],
"description": "Creates an enrollment token for a given enterprise.",
"request": {
"$ref": "EnrollmentToken"
},
"flatPath": "v1/enterprises/{enterprisesId}/enrollmentTokens",
"httpMethod": "POST",
"parameters": {
"parent": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+parent}/enrollmentTokens",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"delete": {
"id": "androidmanagement.enterprises.enrollmentTokens.delete",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
"description": "Deletes an enrollment token, which prevents future use of the token.",
"flatPath": "v1/enterprises/{enterprisesId}/enrollmentTokens/{enrollmentTokensId}",
"httpMethod": "DELETE",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/enrollmentTokens/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
},
"webTokens": {
"methods": {
"create": {
"id": "androidmanagement.enterprises.webTokens.create",
"response": {
"$ref": "WebToken"
},
"parameterOrder": [
"parent"
],
2017-09-13 12:09:48 +00:00
"description": "Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.",
2017-08-05 18:17:15 +00:00
"request": {
"$ref": "WebToken"
},
"flatPath": "v1/enterprises/{enterprisesId}/webTokens",
"httpMethod": "POST",
"parameters": {
"parent": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+parent}/webTokens",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
},
"devices": {
"resources": {
"operations": {
"methods": {
"get": {
"id": "androidmanagement.enterprises.devices.operations.get",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
2017-08-05 18:17:15 +00:00
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}",
"httpMethod": "GET",
"parameters": {
"name": {
"description": "The name of the operation resource.",
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"list": {
"id": "androidmanagement.enterprises.devices.operations.list",
"response": {
"$ref": "ListOperationsResponse"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
2017-08-05 18:17:15 +00:00
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations",
"httpMethod": "GET",
"parameters": {
"pageSize": {
"description": "The standard list page size.",
"location": "query",
"type": "integer",
"format": "int32"
},
"filter": {
"description": "The standard list filter.",
"location": "query",
"type": "string"
},
"name": {
"description": "The name of the operation's parent resource.",
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+/operations$",
"location": "path",
"type": "string"
},
"pageToken": {
"description": "The standard list page token.",
"location": "query",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"delete": {
"id": "androidmanagement.enterprises.devices.operations.delete",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.",
2017-08-05 18:17:15 +00:00
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}",
"httpMethod": "DELETE",
"parameters": {
"name": {
"description": "The name of the operation resource to be deleted.",
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"cancel": {
"id": "androidmanagement.enterprises.devices.operations.cancel",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.",
2017-08-05 18:17:15 +00:00
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"parameters": {
"name": {
"description": "The name of the operation resource to be cancelled.",
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}:cancel",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
}
},
"methods": {
"get": {
"id": "androidmanagement.enterprises.devices.get",
"response": {
"$ref": "Device"
},
"parameterOrder": [
"name"
],
"description": "Gets a device.",
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}",
"httpMethod": "GET",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"list": {
"id": "androidmanagement.enterprises.devices.list",
"response": {
"$ref": "ListDevicesResponse"
},
"parameterOrder": [
"parent"
],
"description": "Lists devices for a given enterprise.",
"flatPath": "v1/enterprises/{enterprisesId}/devices",
"httpMethod": "GET",
"parameters": {
"pageSize": {
2017-09-13 12:09:48 +00:00
"description": "The requested page size. The actual page size may be fixed to a min or max value.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "integer",
"format": "int32"
},
"parent": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
},
"pageToken": {
"description": "A token identifying a page of results the server should return.",
"location": "query",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+parent}/devices",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"issueCommand": {
"id": "androidmanagement.enterprises.devices.issueCommand",
"response": {
"$ref": "Operation"
},
"parameterOrder": [
"name"
],
2017-09-13 12:09:48 +00:00
"description": "Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.",
2017-08-05 18:17:15 +00:00
"request": {
"$ref": "Command"
},
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}:issueCommand",
"httpMethod": "POST",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}:issueCommand",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"patch": {
"id": "androidmanagement.enterprises.devices.patch",
"response": {
"$ref": "Device"
},
"parameterOrder": [
"name"
],
"description": "Updates a device.",
"request": {
"$ref": "Device"
},
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}",
"httpMethod": "PATCH",
"parameters": {
"updateMask": {
2017-09-13 12:09:48 +00:00
"description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string",
"format": "google-fieldmask"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"delete": {
"id": "androidmanagement.enterprises.devices.delete",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
"description": "Deletes a device, which causes the device to be wiped.",
"flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}",
"httpMethod": "DELETE",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+/devices/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
}
},
"methods": {
"create": {
"id": "androidmanagement.enterprises.create",
"response": {
"$ref": "Enterprise"
},
"parameterOrder": [],
"description": "Creates an enterprise by completing the enterprise signup flow.",
"request": {
"$ref": "Enterprise"
},
"flatPath": "v1/enterprises",
"httpMethod": "POST",
"parameters": {
"signupUrlName": {
2017-09-13 12:09:48 +00:00
"description": "The name of the SignupUrl used to sign up for the enterprise.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string"
},
"enterpriseToken": {
"description": "The enterprise token appended to the callback URL.",
"location": "query",
"type": "string"
},
"projectId": {
"description": "The id of the Google Cloud Platform project which will own the enterprise.",
"location": "query",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/enterprises",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"get": {
"id": "androidmanagement.enterprises.get",
"response": {
"$ref": "Enterprise"
},
"parameterOrder": [
"name"
],
"description": "Gets an enterprise.",
"flatPath": "v1/enterprises/{enterprisesId}",
"httpMethod": "GET",
"parameters": {
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
},
"patch": {
"id": "androidmanagement.enterprises.patch",
"response": {
"$ref": "Enterprise"
},
"parameterOrder": [
"name"
],
"description": "Updates an enterprise.",
"request": {
"$ref": "Enterprise"
},
"flatPath": "v1/enterprises/{enterprisesId}",
"httpMethod": "PATCH",
"parameters": {
"updateMask": {
2017-09-13 12:09:48 +00:00
"description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.",
2017-08-05 18:17:15 +00:00
"location": "query",
"type": "string",
"format": "google-fieldmask"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"required": true,
"pattern": "^enterprises/[^/]+$",
"location": "path",
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"path": "v1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/androidmanagement"
]
2017-08-05 18:17:15 +00:00
}
}
}
},
"schemas": {
"Device": {
2017-09-13 12:09:48 +00:00
"description": "A device owned by an enterprise. Unless otherwise noted, all fields are read-only and cannot be modified by an update device request.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"userName": {
2017-09-13 12:09:48 +00:00
"description": "The resource name of the user of the device in the form enterprises/{enterpriseId}/users/{userId}. This is the name of the device account automatically created for this device.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"disabledReason": {
2017-09-13 12:09:48 +00:00
"description": "If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field may be modified by an update request.",
2017-08-05 18:17:15 +00:00
"$ref": "UserFacingMessage"
},
"policyName": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy that is intended to be applied to the device. If empty, the policy with id default is applied. This field may be modified by an update request. The name of the policy is in the form enterprises/{enterpriseId}/policies/{policyId}. It is also permissible to only specify the policyId when updating this field as long as the policyId contains no slashes since the rest of the policy name can be inferred from context.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"lastPolicyComplianceReportTime": {
"description": "The last time the device sent a policy compliance report.",
"type": "string",
"format": "google-datetime"
},
"nonComplianceDetails": {
"description": "Details about policy settings for which the device is not in compliance.",
"type": "array",
"items": {
"$ref": "NonComplianceDetail"
}
},
"lastPolicySyncTime": {
"description": "The last time the device fetched its policy.",
"type": "string",
"format": "google-datetime"
},
"networkInfo": {
2017-09-13 12:09:48 +00:00
"description": "Device network information. This information is only available when networkInfoEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"$ref": "NetworkInfo"
},
"appliedState": {
"description": "The state that is currently applied by the device.",
"enum": [
"DEVICE_STATE_UNSPECIFIED",
"ACTIVE",
"DISABLED",
"DELETED",
"PROVISIONING"
],
"enumDescriptions": [
"This value is disallowed.",
"The device is active.",
"The device is disabled.",
2017-09-13 12:09:48 +00:00
"The device was deleted. This state will never be returned by an API call, but will be used in the final policy compliance report published to Cloud Pub/Sub when the device acknowledges the deletion.",
"The device is being provisioned. Newly enrolled devices will be in this state until they have applied policy."
2017-08-05 18:17:15 +00:00
],
"type": "string"
},
"enrollmentTokenData": {
2017-09-13 12:09:48 +00:00
"description": "If this device was enrolled with an enrollment token with additional data provided, this field contains that data.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"enrollmentTokenName": {
2017-09-13 12:09:48 +00:00
"description": "If this device was enrolled with an enrollment token, this field contains the name of the token.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"memoryInfo": {
2017-09-13 12:09:48 +00:00
"description": "Memory information. This information is only available when memoryInfoEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"$ref": "MemoryInfo"
},
"state": {
2017-09-13 12:09:48 +00:00
"description": "The state that is intended to be applied to the device. This field may be modified by an update request. Note that UpdateDevice only handles toggling between ACTIVE and DISABLED states. Use the delete device method to cause the device to enter the DELETED state.",
2017-08-05 18:17:15 +00:00
"enum": [
"DEVICE_STATE_UNSPECIFIED",
"ACTIVE",
"DISABLED",
"DELETED",
"PROVISIONING"
],
"enumDescriptions": [
"This value is disallowed.",
"The device is active.",
"The device is disabled.",
2017-09-13 12:09:48 +00:00
"The device was deleted. This state will never be returned by an API call, but will be used in the final policy compliance report published to Cloud Pub/Sub when the device acknowledges the deletion.",
"The device is being provisioned. Newly enrolled devices will be in this state until they have applied policy."
2017-08-05 18:17:15 +00:00
],
"type": "string"
},
"softwareInfo": {
2017-09-13 12:09:48 +00:00
"description": "Detailed information about the device software. This information is only available when softwareInfoEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"$ref": "SoftwareInfo"
},
"memoryEvents": {
2017-09-13 12:09:48 +00:00
"description": "Events related to memory and storage measurements in chronological order. This information is only available when memoryInfoEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "MemoryEvent"
}
},
"previousDeviceNames": {
2017-09-13 12:09:48 +00:00
"description": "The previous device names used for the same physical device when it has been enrolled multiple times. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "string"
}
},
"policyCompliant": {
"description": "Whether the device is compliant with its policy.",
"type": "boolean"
},
"lastStatusReportTime": {
"description": "The last time the device sent a status report.",
"type": "string",
"format": "google-datetime"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"hardwareStatusSamples": {
2017-09-13 12:09:48 +00:00
"description": "Hardware status samples in chronological order. This information is only available when hardwareStatusEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "HardwareStatus"
}
},
"enrollmentTime": {
"description": "The time of device enrollment.",
"type": "string",
"format": "google-datetime"
},
"appliedPolicyVersion": {
"description": "The version of the policy that is currently applied by the device.",
"type": "string",
"format": "int64"
},
"apiLevel": {
"description": "The API level of the Android platform version running on the device.",
"type": "integer",
"format": "int32"
},
"hardwareInfo": {
"description": "Detailed information about the device hardware.",
"$ref": "HardwareInfo"
},
"appliedPolicyName": {
"description": "The name of the policy that is currently applied by the device.",
"type": "string"
},
"displays": {
2017-09-13 12:09:48 +00:00
"description": "Displays on the device. This information is only available when displayInfoEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "Display"
}
},
"powerManagementEvents": {
2017-09-13 12:09:48 +00:00
"description": "Power management events on the device in chronological order. This information is only available when powerManagementEventsEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "PowerManagementEvent"
}
}
},
"id": "Device"
},
"PermissionGrant": {
"description": "Configuration for an Android permission and its grant state.",
"type": "object",
"properties": {
"permission": {
2017-09-13 12:09:48 +00:00
"description": "The android permission, e.g. android.permission.READ_CALENDAR.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"policy": {
"description": "The policy for granting the permission.",
"enum": [
"PERMISSION_POLICY_UNSPECIFIED",
"PROMPT",
"GRANT",
"DENY"
],
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
2017-08-05 18:17:15 +00:00
"Prompt the user to grant a permission.",
"Automatically grant a permission.",
"Automatically deny a permission."
],
"type": "string"
}
},
"id": "PermissionGrant"
},
"Application": {
"description": "Application information.",
"type": "object",
"properties": {
"managedProperties": {
2017-09-13 12:09:48 +00:00
"description": "The set of managed properties available to be pre-configured for the application.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "ManagedProperty"
}
},
"title": {
"description": "The title of the application. Localized.",
"type": "string"
},
"permissions": {
"description": "The permissions required by the app.",
"type": "array",
"items": {
"$ref": "ApplicationPermission"
}
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "Application"
},
"Status": {
2017-09-13 12:09:48 +00:00
"description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be:\nSimple to use and understand for most users\nFlexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\nWorkflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.\nBatch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLogging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"type": "integer",
"format": "int32"
},
"details": {
2017-09-13 12:09:48 +00:00
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
}
},
"message": {
2017-09-13 12:09:48 +00:00
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "Status"
},
"ApplicationPolicy": {
"description": "Policy for an individual app.",
"type": "object",
"properties": {
"lockTaskAllowed": {
"description": "Whether the application is allowed to lock itself in full-screen mode.",
"type": "boolean"
},
"permissionGrants": {
2017-09-13 12:09:48 +00:00
"description": "Explicit permission grants or denials for the app. These values override the default_permission_policy.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "PermissionGrant"
}
},
"managedConfiguration": {
2017-09-13 12:09:48 +00:00
"description": "Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: \u003ctable\u003e \u003ctr\u003e\u003ctd\u003e\u003ci\u003etype\u003c/i\u003e\u003c/td\u003e\u003ctd\u003e\u003ci\u003eJSON value\u003c/i\u003e\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eBOOL\u003c/td\u003e\u003ctd\u003etrue or false\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eSTRING\u003c/td\u003e\u003ctd\u003estring\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eINTEGER\u003c/td\u003e\u003ctd\u003enumber\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eCHOICE\u003c/td\u003e\u003ctd\u003estring\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eMULTISELECT\u003c/td\u003e\u003ctd\u003earray of strings\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eHIDDEN\u003c/td\u003e\u003ctd\u003estring\u003c/td\u003e\u003c/tr\u003e \u003ctr\u003e\u003ctd\u003eBUNDLE_ARRAY\u003c/td\u003e\u003ctd\u003earray of objects\u003c/td\u003e\u003c/tr\u003e \u003c/table\u003e",
2017-08-05 18:17:15 +00:00
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"type": "object"
},
"packageName": {
2017-09-13 12:09:48 +00:00
"description": "The package name of the app, e.g. com.google.android.youtube for the YouTube app.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"installType": {
"description": "The type of installation to perform.",
"enum": [
"INSTALL_TYPE_UNSPECIFIED",
"PREINSTALLED",
"FORCE_INSTALLED"
],
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"No automatic installation is performed. Any other app policies will be applied if the user installs the app.",
"The application is automatically installed and can be removed by the user.",
"The application is automatically installed and cannot be removed by the user."
2017-08-05 18:17:15 +00:00
],
"type": "string"
},
"defaultPermissionPolicy": {
2017-09-13 12:09:48 +00:00
"description": "The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps.",
2017-08-05 18:17:15 +00:00
"enum": [
"PERMISSION_POLICY_UNSPECIFIED",
"PROMPT",
"GRANT",
"DENY"
],
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
2017-08-05 18:17:15 +00:00
"Prompt the user to grant a permission.",
"Automatically grant a permission.",
"Automatically deny a permission."
],
"type": "string"
}
},
"id": "ApplicationPolicy"
},
"ApplicationPermission": {
"description": "Application permission.",
"type": "object",
"properties": {
"description": {
2017-09-13 12:09:48 +00:00
"description": "A longer description of the permission, giving more details of what it affects. Localized.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"permissionId": {
"description": "An opaque string uniquely identifying the permission. Not localized.",
"type": "string"
},
"name": {
"description": "The name of the permission. Localized.",
"type": "string"
}
},
"id": "ApplicationPermission"
},
"ManagedProperty": {
"description": "Managed property.",
"type": "object",
"properties": {
"nestedProperties": {
2017-09-13 12:09:48 +00:00
"description": "For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY property is at most two levels deep.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "ManagedProperty"
}
},
"description": {
2017-09-13 12:09:48 +00:00
"description": "A longer description of the property, giving more detail of what it affects. Localized.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"defaultValue": {
2017-09-13 12:09:48 +00:00
"description": "The default value of the properties. BUNDLE_ARRAY properties never have a default value.",
2017-08-05 18:17:15 +00:00
"type": "any"
},
"title": {
"description": "The name of the property. Localized.",
"type": "string"
},
"key": {
2017-09-13 12:09:48 +00:00
"description": "The unique key that the application uses to identify the property, e.g. \"com.google.android.gm.fieldname\".",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"entries": {
2017-09-13 12:09:48 +00:00
"description": "For CHOICE or MULTISELECT properties, the list of possible entries.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "ManagedPropertyEntry"
}
},
"type": {
"description": "The type of the property.",
"enum": [
"MANAGED_PROPERTY_TYPE_UNSPECIFIED",
"BOOL",
"STRING",
"INTEGER",
"CHOICE",
"MULTISELECT",
"HIDDEN",
"BUNDLE_ARRAY"
],
"enumDescriptions": [
"Not used.",
"A property of boolean type.",
"A property of string type.",
"A property of integer type.",
"A choice of one item from a set.",
"A choice of multiple items from a set.",
2017-09-13 12:09:48 +00:00
"A hidden restriction of string type (the default value can be used to pass along information that cannot be modified, such as a version code).",
2017-08-05 18:17:15 +00:00
"An array of property bundles."
],
"type": "string"
}
},
"id": "ManagedProperty"
},
"Operation": {
2017-09-13 12:09:48 +00:00
"description": "This resource represents a long-running operation that is the result of a network API call.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"error": {
"description": "The error result of the operation in case of failure or cancellation.",
"$ref": "Status"
},
"done": {
2017-09-13 12:09:48 +00:00
"description": "If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"metadata": {
2017-09-13 12:09:48 +00:00
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
2017-08-05 18:17:15 +00:00
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"response": {
2017-09-13 12:09:48 +00:00
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.",
2017-08-05 18:17:15 +00:00
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "Operation"
},
"NonComplianceDetailCondition": {
2017-09-13 12:09:48 +00:00
"description": "A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"nonComplianceReason": {
2017-09-13 12:09:48 +00:00
"description": "The reason the device is not in compliance with the setting. If not set, then this condition matches any reason.",
2017-08-05 18:17:15 +00:00
"enum": [
"NON_COMPLIANCE_REASON_UNSPECIFIED",
"API_LEVEL",
"ADMIN_TYPE",
"USER_ACTION",
"INVALID_VALUE",
"APP_NOT_INSTALLED",
"UNSUPPORTED",
"APP_INSTALLED",
"PENDING",
2017-09-13 12:09:48 +00:00
"APP_INCOMPATIBLE",
"APP_NOT_UPDATED"
2017-08-05 18:17:15 +00:00
],
"enumDescriptions": [
"This value is disallowed.",
2017-09-13 12:09:48 +00:00
"The setting is not supported in the API level of Android OS version the device is running.",
"The admin type (profile owner, device owner, etc.) does not support the setting.",
2017-08-05 18:17:15 +00:00
"The user has not taken required action to comply with the setting.",
"The setting has an invalid value.",
"The application required to implement the policy is not installed.",
2017-09-13 12:09:48 +00:00
"The policy is not supported by the version of Android Device Policy on the device.",
2017-08-05 18:17:15 +00:00
"A blocked application is installed.",
2017-09-13 12:09:48 +00:00
"The setting was not applied yet at the time of the report, but is expected to be applied shortly.",
"The setting cannot be applied to the application because its target SDK version is not high enough.",
"The application is installed but not updated to the minimum version code specified by policy"
2017-08-05 18:17:15 +00:00
],
"type": "string"
},
"settingName": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"packageName": {
2017-09-13 12:09:48 +00:00
"description": "The package name indicating which application is out of compliance. If not set, then this condition matches any package name. If this field is set, then setting_name must be unset or set to applications; otherwise, the condition would never be satisfied.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "NonComplianceDetailCondition"
},
"NonComplianceDetail": {
"description": "Provides detail about non-compliance with a policy setting.",
"type": "object",
"properties": {
"settingName": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy setting. This is the JSON field name of a top-level Policy field.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"currentValue": {
2017-09-13 12:09:48 +00:00
"description": "If the policy setting could not be applied, the current value of the setting on the device.",
2017-08-05 18:17:15 +00:00
"type": "any"
},
"packageName": {
2017-09-13 12:09:48 +00:00
"description": "The package name indicating which application is out of compliance, if applicable.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"installationFailureReason": {
2017-09-13 12:09:48 +00:00
"description": "If package_name is set and the non-compliance reason is APP_NOT_INSTALLED, the detailed reason the app cannot be installed.",
2017-08-05 18:17:15 +00:00
"enum": [
"INSTALLATION_FAILURE_REASON_UNSPECIFIED",
"INSTALLATION_FAILURE_REASON_UNKNOWN",
"IN_PROGRESS",
"NOT_FOUND",
"NOT_COMPATIBLE_WITH_DEVICE",
"NOT_APPROVED",
"PERMISSIONS_NOT_ACCEPTED",
"NOT_AVAILABLE_IN_COUNTRY",
"NO_LICENSES_REMAINING",
"NOT_ENROLLED",
"USER_INVALID"
],
"enumDescriptions": [
"This value is disallowed.",
2017-09-13 12:09:48 +00:00
"An unknown condition is preventing the app from being installed. Some potential reaons are that the device does not have enough storage, the device network connection is unreliable, or the installation is taking longer than expected. The installation will be retried automatically.",
2017-08-05 18:17:15 +00:00
"The installation is still in progress.",
"The app was not found in Play.",
"The app is incompatible with the device.",
"The app has not been approved by the admin.",
"The app has new permissions that have not been accepted by the admin.",
"The app is not available in the user's country.",
"There are no more licenses to assign to the user.",
2017-09-13 12:09:48 +00:00
"The enterprise is no longer enrolled with Play for Work or Android Device Policy is not enabled for the enterprise.",
2017-08-05 18:17:15 +00:00
"The user is no longer valid. The user may have been deleted or disabled."
],
"type": "string"
},
"fieldPath": {
2017-09-13 12:09:48 +00:00
"description": "For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"nonComplianceReason": {
"description": "The reason the device is not in compliance with the setting.",
"enum": [
"NON_COMPLIANCE_REASON_UNSPECIFIED",
"API_LEVEL",
"ADMIN_TYPE",
"USER_ACTION",
"INVALID_VALUE",
"APP_NOT_INSTALLED",
"UNSUPPORTED",
"APP_INSTALLED",
"PENDING",
2017-09-13 12:09:48 +00:00
"APP_INCOMPATIBLE",
"APP_NOT_UPDATED"
2017-08-05 18:17:15 +00:00
],
"enumDescriptions": [
"This value is disallowed.",
2017-09-13 12:09:48 +00:00
"The setting is not supported in the API level of Android OS version the device is running.",
"The admin type (profile owner, device owner, etc.) does not support the setting.",
2017-08-05 18:17:15 +00:00
"The user has not taken required action to comply with the setting.",
"The setting has an invalid value.",
"The application required to implement the policy is not installed.",
2017-09-13 12:09:48 +00:00
"The policy is not supported by the version of Android Device Policy on the device.",
2017-08-05 18:17:15 +00:00
"A blocked application is installed.",
2017-09-13 12:09:48 +00:00
"The setting was not applied yet at the time of the report, but is expected to be applied shortly.",
"The setting cannot be applied to the application because its target SDK version is not high enough.",
"The application is installed but not updated to the minimum version code specified by policy"
2017-08-05 18:17:15 +00:00
],
"type": "string"
}
},
"id": "NonComplianceDetail"
},
"ListDevicesResponse": {
"description": "Response to a request to list devices for a given enterprise.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If there are more results, a token to retrieve next page of results.",
"type": "string"
},
"devices": {
"description": "The list of devices.",
"type": "array",
"items": {
"$ref": "Device"
}
}
},
"id": "ListDevicesResponse"
},
"PersistentPreferredActivity": {
2017-09-13 12:09:48 +00:00
"description": "A default activity for handling intents that match a particular intent filter.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"receiverActivity": {
2017-09-13 12:09:48 +00:00
"description": "The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"actions": {
2017-09-13 12:09:48 +00:00
"description": "The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "string"
}
},
"categories": {
2017-09-13 12:09:48 +00:00
"description": "The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "string"
}
}
},
"id": "PersistentPreferredActivity"
},
"Policy": {
"description": "A policy, which governs behavior for a device.",
"type": "object",
"properties": {
"openNetworkConfiguration": {
2017-09-13 12:09:48 +00:00
"description": "Network configuration for the device. See configure networks for more information.",
2017-08-05 18:17:15 +00:00
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"type": "object"
},
"adjustVolumeDisabled": {
"description": "Whether adjusting the master volume is disabled.",
"type": "boolean"
},
"passwordRequirements": {
"description": "Password requirements.",
"$ref": "PasswordRequirements"
},
"modifyAccountsDisabled": {
"description": "Whether adding or removing accounts is disabled.",
"type": "boolean"
},
"statusReportingSettings": {
"description": "Status reporting settings",
"$ref": "StatusReportingSettings"
},
"factoryResetDisabled": {
"description": "Whether factory resetting from settings is disabled.",
"type": "boolean"
},
"funDisabled": {
2017-09-13 12:09:48 +00:00
"description": "Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"applications": {
"description": "Policy applied to apps.",
"type": "array",
"items": {
"$ref": "ApplicationPolicy"
}
},
"safeBootDisabled": {
"description": "Whether rebooting the device into safe boot is disabled.",
"type": "boolean"
},
2017-09-13 12:09:48 +00:00
"wifiConfigsLockdownEnabled": {
"description": "Whether WiFi networks defined in Open Network Configuration are locked so they cannot be edited by the user.",
"type": "boolean"
},
2017-08-05 18:17:15 +00:00
"complianceRules": {
2017-09-13 12:09:48 +00:00
"description": "Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"$ref": "ComplianceRule"
}
},
2017-09-13 12:09:48 +00:00
"wifiConfigDisabled": {
"description": "Whether configuring WiFi access points is disabled.",
"type": "boolean"
},
2017-08-05 18:17:15 +00:00
"unmuteMicrophoneDisabled": {
2017-09-13 12:09:48 +00:00
"description": "Whether the microphone is muted and adjusting microphone volume is disabled.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"installUnknownSourcesAllowed": {
2017-09-13 12:09:48 +00:00
"description": "Whether the user is allowed to enable the \"Unknown Sources\" setting, which allows installation of apps from unknown sources.",
"type": "boolean"
},
"autoTimeRequired": {
"description": "Whether auto time is required, which prevents the user from manually setting the date and time.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"removeUserDisabled": {
"description": "Whether removing other users is disabled.",
"type": "boolean"
},
"statusBarDisabled": {
2017-09-13 12:09:48 +00:00
"description": "Whether the status bar is disabled. This disables notifications, quick settings and other screen overlays that allow escape from full-screen mode.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"stayOnPluggedModes": {
2017-09-13 12:09:48 +00:00
"description": "The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on.",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
"This value is ignored.",
"Power source is an AC charger.",
"Power source is a USB port.",
"Power source is wireless."
],
"type": "array",
"items": {
"enum": [
"BATTERY_PLUGGED_MODE_UNSPECIFIED",
"AC",
"USB",
"WIRELESS"
],
"type": "string"
}
},
"cameraDisabled": {
"description": "Whether all cameras on the device are disabled.",
"type": "boolean"
},
"blockApplicationsEnabled": {
2017-09-13 12:09:48 +00:00
"description": "Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"debuggingFeaturesAllowed": {
"description": "Whether the user is allowed to enable debugging features.",
"type": "boolean"
},
"maximumTimeToLock": {
2017-09-13 12:09:48 +00:00
"description": "Maximum time in milliseconds for user activity until the device will lock. A value of 0 means there is no restriction.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "int64"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"defaultPermissionPolicy": {
"description": "The default permission policy for requests for runtime permissions.",
"enum": [
"PERMISSION_POLICY_UNSPECIFIED",
"PROMPT",
"GRANT",
"DENY"
],
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
2017-08-05 18:17:15 +00:00
"Prompt the user to grant a permission.",
"Automatically grant a permission.",
"Automatically deny a permission."
],
"type": "string"
},
"persistentPreferredActivities": {
"description": "Default intent handler activities.",
"type": "array",
"items": {
"$ref": "PersistentPreferredActivity"
}
},
"networkEscapeHatchEnabled": {
2017-09-13 12:09:48 +00:00
"description": "Flag to specify if network escape hatch is enabled. If this flag has been enabled then upon device boot if device has no network connection, then an activity will be shown that allows the user to temporarily connect to a network to fetch the latest policy. The launched activity will time out if no network has been connected for a given while and will return to the previous activity that was shown.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"systemUpdate": {
2017-09-13 12:09:48 +00:00
"description": "The system update policy, which controls how OS updates are applied. If the update type is WINDOWED and the device has a device account, the update window will automatically apply to Play app updates as well.",
2017-08-05 18:17:15 +00:00
"$ref": "SystemUpdate"
},
"frpAdminEmails": {
2017-09-13 12:09:48 +00:00
"description": "Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device will not provide factory reset protection.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "string"
}
},
"version": {
2017-09-13 12:09:48 +00:00
"description": "The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "int64"
},
"screenCaptureDisabled": {
"description": "Whether screen capture is disabled.",
"type": "boolean"
},
"keyguardDisabled": {
"description": "Whether the keyguard is disabled.",
"type": "boolean"
},
"addUserDisabled": {
"description": "Whether adding new users and profiles is disabled.",
"type": "boolean"
}
},
"id": "Policy"
},
"Command": {
"description": "A command.",
"type": "object",
"properties": {
"duration": {
2017-09-13 12:09:48 +00:00
"description": "The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "google-duration"
},
"newPassword": {
2017-09-13 12:09:48 +00:00
"description": "For commands of type RESET_PASSWORD, optionally specifies the new password.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"type": {
"description": "The type of the command.",
"enum": [
"COMMAND_TYPE_UNSPECIFIED",
"LOCK",
"RESET_PASSWORD",
"REBOOT"
],
"enumDescriptions": [
"This value is disallowed.",
"Lock the device, as if the lock screen timeout had expired.",
"Reset the user's password.",
"Reboot the device. Only supported on API level 24+."
],
"type": "string"
},
"createTime": {
2017-09-13 12:09:48 +00:00
"description": "The timestamp at which the command was created. The timestamp is automatically generated by the server.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "google-datetime"
},
"resetPasswordFlags": {
2017-09-13 12:09:48 +00:00
"description": "For commands of type RESET_PASSWORD, optionally specifies flags.",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
"This value is ignored.",
2017-09-13 12:09:48 +00:00
"Don't allow other admins to change the password again until the user has entered it.",
2017-08-05 18:17:15 +00:00
"Don't ask for user credentials on device boot."
],
"type": "array",
"items": {
"enum": [
"RESET_PASSWORD_FLAG_UNSPECIFIED",
"REQUIRE_ENTRY",
"DO_NOT_ASK_CREDENTIALS_ON_BOOT"
],
"type": "string"
}
}
},
"id": "Command"
},
"ComplianceRule": {
2017-09-13 12:09:48 +00:00
"description": "A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"nonComplianceDetailCondition": {
2017-09-13 12:09:48 +00:00
"description": "A condition which is satisfied if there exists any matching NonComplianceDetail for the device.",
2017-08-05 18:17:15 +00:00
"$ref": "NonComplianceDetailCondition"
},
"disableApps": {
2017-09-13 12:09:48 +00:00
"description": "If set to true, the rule includes a mitigating action to disable applications so that the device is effectively disabled, but application data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"apiLevelCondition": {
2017-09-13 12:09:48 +00:00
"description": "A condition which is satisfied if the Android Framework API level on the device does not meet a minimum requirement.",
2017-08-05 18:17:15 +00:00
"$ref": "ApiLevelCondition"
}
},
"id": "ComplianceRule"
},
"ListPoliciesResponse": {
"description": "Response to a request to list policies for a given enterprise.",
"type": "object",
"properties": {
"policies": {
"description": "The list of policies.",
"type": "array",
"items": {
"$ref": "Policy"
}
},
"nextPageToken": {
"description": "If there are more results, a token to retrieve next page of results.",
"type": "string"
}
},
"id": "ListPoliciesResponse"
},
"StatusReportingSettings": {
"description": "Settings controlling the behavior of status reports.",
"type": "object",
"properties": {
"displayInfoEnabled": {
"description": "Whether displays reporting is enabled.",
"type": "boolean"
},
"hardwareStatusEnabled": {
"description": "Whether hardware status reporting is enabled.",
"type": "boolean"
},
"softwareInfoEnabled": {
"description": "Whether software info reporting is enabled.",
"type": "boolean"
},
"memoryInfoEnabled": {
"description": "Whether memory info reporting is enabled.",
"type": "boolean"
},
"powerManagementEventsEnabled": {
"description": "Whether power management event reporting is enabled.",
"type": "boolean"
},
"networkInfoEnabled": {
"description": "Whether network info reporting is enabled.",
"type": "boolean"
}
},
"id": "StatusReportingSettings"
},
"Display": {
"description": "Device display information.",
"type": "object",
"properties": {
"refreshRate": {
"description": "Refresh rate of the display in frames per second.",
"type": "integer",
"format": "int32"
},
"state": {
"description": "State of the display.",
"enum": [
"DISPLAY_STATE_UNSPECIFIED",
"OFF",
"ON",
"DOZE",
"SUSPENDED"
],
"enumDescriptions": [
"This value is disallowed.",
"Display is off.",
"Display is on.",
"Display is dozing in a low power state",
"Display is dozing in a suspended low power state."
],
"type": "string"
},
"width": {
"description": "Display width in pixels.",
"type": "integer",
"format": "int32"
},
"displayId": {
"description": "Unique display id.",
"type": "integer",
"format": "int32"
},
"name": {
"description": "Name of the display.",
"type": "string"
},
"density": {
"description": "Display density expressed as dots-per-inch.",
"type": "integer",
"format": "int32"
},
"height": {
"description": "Display height in pixels.",
"type": "integer",
"format": "int32"
}
},
"id": "Display"
},
"SignupUrl": {
"description": "An enterprise signup URL.",
"type": "object",
"properties": {
"url": {
2017-09-13 12:09:48 +00:00
"description": "A URL under which the Admin can sign up for an enterprise. The page pointed to cannot be rendered in an iframe.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the resource. This must be included in the create enterprise request at the end of the signup flow.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "SignupUrl"
},
"EnrollmentToken": {
"description": "An enrollment token.",
"type": "object",
"properties": {
"expirationTimestamp": {
2017-09-13 12:09:48 +00:00
"description": "The expiration time of the token. This is a read-only field generated by the server.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "google-datetime"
},
"policyName": {
2017-09-13 12:09:48 +00:00
"description": "The name of the policy that will be initially applied to the enrolled device in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy with id default is applied. It is permissible to only specify the policyId when updating this field as long as the policyId contains no slashes since the rest of the policy name can be inferred from context.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"duration": {
2017-09-13 12:09:48 +00:00
"description": "The duration of the token. If not specified, the duration will be 1 hour. The allowed range is 1 minute to 30 days.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "google-duration"
},
"value": {
2017-09-13 12:09:48 +00:00
"description": "The token value which is passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"additionalData": {
2017-09-13 12:09:48 +00:00
"description": "Optional, arbitrary data associated with the enrollment token. This could contain, for example, the id of an org unit to which the device is assigned after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"qrCode": {
2017-09-13 12:09:48 +00:00
"description": "A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "EnrollmentToken"
},
"SoftwareInfo": {
"description": "Information about device software.",
"type": "object",
"properties": {
"androidVersion": {
2017-09-13 12:09:48 +00:00
"description": "The user visible Android version string, e.g. 6.0.1.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"androidBuildNumber": {
2017-09-13 12:09:48 +00:00
"description": "Android build Id string meant for displaying to the user, e.g. shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"androidBuildTime": {
"description": "Build time.",
"type": "string",
"format": "google-datetime"
},
"bootloaderVersion": {
2017-09-13 12:09:48 +00:00
"description": "The system bootloader version number, e.g. 0.6.7.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"securityPatchLevel": {
2017-09-13 12:09:48 +00:00
"description": "Security patch level, e.g. 2016-05-01.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"deviceKernelVersion": {
2017-09-13 12:09:48 +00:00
"description": "Kernel version, e.g. 2.6.32.9-g103d848.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "SoftwareInfo"
},
"ManagedPropertyEntry": {
"description": "An entry of a managed property.",
"type": "object",
"properties": {
"value": {
2017-09-13 12:09:48 +00:00
"description": "The machine-readable value of the entry, which should be used in the configuration. Not localized.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"name": {
"description": "The human-readable name of the value. Localized.",
"type": "string"
}
},
"id": "ManagedPropertyEntry"
},
"WebToken": {
"description": "A web token used to access an embeddable managed Google Play web UI.",
"type": "object",
"properties": {
"value": {
2017-09-13 12:09:48 +00:00
"description": "The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"permissions": {
2017-09-13 12:09:48 +00:00
"description": "Permissions the admin may exercise in the embedded UI. The admin must have all of these permissions in order to view the UI.",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
"This value is ignored.",
"The permission to approve apps for the enterprise."
],
"type": "array",
"items": {
"enum": [
"WEB_TOKEN_PERMISSION_UNSPECIFIED",
"APPROVE_APPS"
],
"type": "string"
}
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the web token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/webTokens/{webTokenId}.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"parentFrameUrl": {
2017-09-13 12:09:48 +00:00
"description": "The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "WebToken"
},
"Enterprise": {
"description": "The configuration applied to an enterprise.",
"type": "object",
"properties": {
"pubsubTopic": {
2017-09-13 12:09:48 +00:00
"description": "When Cloud Pub/Sub notifications are enabled, this field is required to indicate the topic to which the notifications will be published. The format of this field is projects/{project}/topics/{topic}. You must have granted the publish permission on this topic to android-cloud-policy@system.gserviceaccount.com",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"logo": {
2017-09-13 12:09:48 +00:00
"description": "An image displayed as a logo during device provisioning. Supported types are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, image/vnd.wap.wbmp, image/x-adobe-dng.",
2017-08-05 18:17:15 +00:00
"$ref": "ExternalData"
},
"enabledNotificationTypes": {
"description": "The notification types to enable via Google Cloud Pub/Sub.",
"enumDescriptions": [
"This value is ignored.",
"A notification sent when a device enrolls.",
"A notification sent when a device issues a policy compliance report.",
"A notification sent when a device issues a status report.",
"A notification sent when a device command has completed."
],
"type": "array",
"items": {
"enum": [
"NOTIFICATION_TYPE_UNSPECIFIED",
"ENROLLMENT",
"COMPLIANCE_REPORT",
"STATUS_REPORT",
"COMMAND"
],
"type": "string"
}
},
"name": {
2017-09-13 12:09:48 +00:00
"description": "The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"primaryColor": {
2017-09-13 12:09:48 +00:00
"description": "A color in RGB format indicating the predominant color to display in the device management app UI. The color components are stored as follows: (red \u003c\u003c 16) | (green \u003c\u003c 8) | blue, where each component may take a value between 0 and 255 inclusive.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"appAutoApprovalEnabled": {
2017-09-13 12:09:48 +00:00
"description": "Whether app auto-approval is enabled. When enabled, apps installed via policy for this enterprise have all permissions automatically approved. When enabled, it is the caller's responsibility to display the permissions required by an app to the enterprise admin before setting the app to be installed in a policy.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"enterpriseDisplayName": {
"description": "The name of the enterprise as it will appear to users.",
"type": "string"
}
},
"id": "Enterprise"
},
"ListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "The standard List next-page token.",
"type": "string"
},
"operations": {
"description": "A list of operations that matches the specified filter in the request.",
"type": "array",
"items": {
"$ref": "Operation"
}
}
},
"id": "ListOperationsResponse"
},
"MemoryEvent": {
"description": "An event related to memory and storage measurements.",
"type": "object",
"properties": {
"byteCount": {
2017-09-13 12:09:48 +00:00
"description": "The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium.",
2017-08-05 18:17:15 +00:00
"type": "string",
"format": "int64"
},
"eventType": {
"description": "Event type.",
"enum": [
"MEMORY_EVENT_TYPE_UNSPECIFIED",
"RAM_MEASURED",
"INTERNAL_STORAGE_MEASURED",
"EXTERNAL_STORAGE_DETECTED",
"EXTERNAL_STORAGE_REMOVED",
"EXTERNAL_STORAGE_MEASURED"
],
"enumDescriptions": [
"Unspecified. No events have this type.",
"Free space in RAM was measured.",
"Free space in internal storage was measured.",
2017-09-13 12:09:48 +00:00
"A new external storage medium was detected. The reported byte count is the total capacity of the storage medium.",
2017-08-05 18:17:15 +00:00
"An external storage medium was removed. The reported byte count is zero.",
"Free space in an external storage medium was measured."
],
"type": "string"
},
"createTime": {
"description": "The creation time of the event.",
"type": "string",
"format": "google-datetime"
}
},
"id": "MemoryEvent"
},
"ExternalData": {
2017-09-13 12:09:48 +00:00
"description": "Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"url": {
2017-09-13 12:09:48 +00:00
"description": "The absolute URL to the data, which must use either the http or https scheme. Android Device Policy does not provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"sha256Hash": {
2017-09-13 12:09:48 +00:00
"description": "The base-64 encoded SHA-256 hash of the content hosted at url. If the content does not match this hash, Android Device Policy will not use the data.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "ExternalData"
},
"UserFacingMessage": {
2017-09-13 12:09:48 +00:00
"description": "Provides user facing message with locale info. The maximum message length is 4096 characters.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"localizedMessages": {
2017-09-13 12:09:48 +00:00
"description": "A map which contains \u003clocale, message\u003e pairs. The locale is a BCP 47 language code, e.g. en-US, es-ES, fr.",
2017-08-05 18:17:15 +00:00
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"defaultMessage": {
2017-09-13 12:09:48 +00:00
"description": "The default message that gets displayed if no localized message is specified, or the user's locale does not match with any of the localized messages. A default message must be provided if any localized messages are provided.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "UserFacingMessage"
},
"PowerManagementEvent": {
"description": "A power management event.",
"type": "object",
"properties": {
"batteryLevel": {
2017-09-13 12:09:48 +00:00
"description": "For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.",
2017-08-05 18:17:15 +00:00
"type": "number",
"format": "float"
},
"eventType": {
"description": "Event type.",
"enum": [
"POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED",
"BATTERY_LEVEL_COLLECTED",
"POWER_CONNECTED",
"POWER_DISCONNECTED",
"BATTERY_LOW",
"BATTERY_OKAY",
"BOOT_COMPLETED",
"SHUTDOWN"
],
"enumDescriptions": [
"Unspecified. No events have this type.",
"Battery level was measured.",
"The device started charging.",
"The device stopped charging.",
"The device entered low-power mode.",
"The device exited low-power mode.",
"The device booted.",
"The device shut down."
],
"type": "string"
},
"createTime": {
"description": "The creation time of the event.",
"type": "string",
"format": "google-datetime"
}
},
"id": "PowerManagementEvent"
},
"PasswordRequirements": {
"description": "Requirements for the password used to unlock a device.",
"type": "object",
"properties": {
"passwordMinimumNumeric": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordMinimumNonLetter": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"maximumFailedPasswordsForWipe": {
2017-09-13 12:09:48 +00:00
"description": "A device will be wiped after too many incorrect device-unlock passwords have been entered. A value of 0 means there is no restriction.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordMinimumLetters": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordMinimumUpperCase": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordQuality": {
"description": "The required password quality.",
"enum": [
"PASSWORD_QUALITY_UNSPECIFIED",
"SOMETHING",
"NUMERIC",
"NUMERIC_COMPLEX",
"ALPHABETIC",
"ALPHANUMERIC",
"COMPLEX"
],
"enumDescriptions": [
"There are no requirements for the password.",
2017-09-13 12:09:48 +00:00
"There must be a password, but there are no restrictions on its characters.",
2017-08-05 18:17:15 +00:00
"The password must contain numeric characters.",
2017-09-13 12:09:48 +00:00
"The password must contain numeric characters with no repeating (4444) or ordered (1234, 4321, 2468) sequences.",
2017-08-05 18:17:15 +00:00
"The password must contain alphabetic (or symbol) characters.",
2017-09-13 12:09:48 +00:00
"The password must contain at both numeric and alphabetic (or symbol) characters.",
"The password must contain at least a letter, a numerical digit and a special symbol. Other password constraints, for example, password_minimum_letters are enforced."
2017-08-05 18:17:15 +00:00
],
"type": "string"
},
"passwordMinimumLength": {
2017-09-13 12:09:48 +00:00
"description": "The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordExpirationTimeout": {
"description": "Password expiration timeout.",
"type": "string",
"format": "google-duration"
},
"passwordMinimumSymbols": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordHistoryLength": {
2017-09-13 12:09:48 +00:00
"description": "The length of the password history. After setting this, the user will not be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"passwordMinimumLowerCase": {
2017-09-13 12:09:48 +00:00
"description": "Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
}
},
"id": "PasswordRequirements"
},
"HardwareInfo": {
2017-09-13 12:09:48 +00:00
"description": "Information about device hardware. The fields related to temperature thresholds are only available when hardwareStatusEnabled is true in the device's policy.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"gpuThrottlingTemperatures": {
2017-09-13 12:09:48 +00:00
"description": "GPU throttling temperature thresholds in Celsius for each GPU on the device.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"cpuShutdownTemperatures": {
"description": "CPU shutdown temperature thresholds in Celsius for each CPU on the device.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"gpuShutdownTemperatures": {
"description": "GPU shutdown temperature thresholds in Celsius for each GPU on the device.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"manufacturer": {
2017-09-13 12:09:48 +00:00
"description": "Manufacturer, e.g. Motorola.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"model": {
2017-09-13 12:09:48 +00:00
"description": "The model of the device, e.g. Asus Nexus 7.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"serialNumber": {
"description": "The device serial number.",
"type": "string"
},
"brand": {
2017-09-13 12:09:48 +00:00
"description": "Brand of the device, e.g. Google.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"cpuThrottlingTemperatures": {
2017-09-13 12:09:48 +00:00
"description": "CPU throttling temperature thresholds in Celsius for each CPU on the device.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"skinThrottlingTemperatures": {
"description": "Device skin throttling temperature thresholds in Celsius.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"deviceBasebandVersion": {
2017-09-13 12:09:48 +00:00
"description": "Baseband version, e.g. MDM9625_104662.22.05.34p.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"hardware": {
2017-09-13 12:09:48 +00:00
"description": "Name of the hardware, e.g. Angler.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"skinShutdownTemperatures": {
"description": "Device skin shutdown temperature thresholds in Celsius.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"batteryShutdownTemperatures": {
2017-09-13 12:09:48 +00:00
"description": "Battery shutdown temperature thresholds in Celsius for each battery on the device.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"batteryThrottlingTemperatures": {
2017-09-13 12:09:48 +00:00
"description": "Battery throttling temperature thresholds in Celsius for each battery on the device.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
}
},
"id": "HardwareInfo"
},
"Empty": {
2017-09-13 12:09:48 +00:00
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {},
"id": "Empty"
},
"NetworkInfo": {
"description": "Device network info.",
"type": "object",
"properties": {
"meid": {
2017-09-13 12:09:48 +00:00
"description": "MEID number of the CDMA device, e.g. A00000292788E1.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"wifiMacAddress": {
2017-09-13 12:09:48 +00:00
"description": "WiFi MAC address of the device, e.g. 7c:11:11:11:11:11.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"imei": {
2017-09-13 12:09:48 +00:00
"description": "IMEI number of the GSM device, e.g. A1000031212.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
"id": "NetworkInfo"
},
"MemoryInfo": {
"description": "Information about device memory and storage.",
"type": "object",
"properties": {
"totalRam": {
"description": "Total RAM on device in bytes.",
"type": "string",
"format": "int64"
},
"totalInternalStorage": {
"description": "Total internal storage on device in bytes.",
"type": "string",
"format": "int64"
}
},
"id": "MemoryInfo"
},
"ApiLevelCondition": {
2017-09-13 12:09:48 +00:00
"description": "A compliance rule condition which is satisfied if the Android Framework API level on the device does not meet a minimum requirement. There can only be one rule with this type of condition per policy.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"minApiLevel": {
2017-09-13 12:09:48 +00:00
"description": "The minimum desired Android Framework API level. If the device does not meet the minimum requirement, this condition is satisfied. Must be greater than zero.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
}
},
"id": "ApiLevelCondition"
},
"SystemUpdate": {
"description": "Configuration for managing system updates",
"type": "object",
"properties": {
"startMinutes": {
2017-09-13 12:09:48 +00:00
"description": "If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in device local time. This value must be between 0 and 1439, inclusive.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
},
"type": {
"description": "The type of system update to configure.",
"enum": [
"SYSTEM_UPDATE_TYPE_UNSPECIFIED",
"AUTOMATIC",
"WINDOWED",
"POSTPONE"
],
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Follow the default update behavior for the device, which typically requires the user to accept system updates.",
2017-08-05 18:17:15 +00:00
"Install automatically as soon as an update is available.",
2017-09-13 12:09:48 +00:00
"Install automatically within a daily maintenance window. If the device has a device account, this also configures Play apps to be updated within the window. This is strongly recommended for kiosk devices because this is the only way apps persistently pinned to the foreground can be updated by Play.",
2017-08-05 18:17:15 +00:00
"Postpone automatic install up to a maximum of 30 days."
],
"type": "string"
},
"endMinutes": {
2017-09-13 12:09:48 +00:00
"description": "If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time.",
2017-08-05 18:17:15 +00:00
"type": "integer",
"format": "int32"
}
},
"id": "SystemUpdate"
},
"HardwareStatus": {
2017-09-13 12:09:48 +00:00
"description": "Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"fanSpeeds": {
2017-09-13 12:09:48 +00:00
"description": "Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"skinTemperatures": {
"description": "Current device skin temperatures in Celsius.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"createTime": {
"description": "The time the measurements were taken.",
"type": "string",
"format": "google-datetime"
},
"batteryTemperatures": {
"description": "Current battery temperatures in Celsius for each battery on the device.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"cpuTemperatures": {
"description": "Current CPU temperatures in Celsius for each CPU on the device.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"gpuTemperatures": {
"description": "Current GPU temperatures in Celsius for each GPU on the device.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"cpuUsages": {
2017-09-13 12:09:48 +00:00
"description": "CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system.",
2017-08-05 18:17:15 +00:00
"type": "array",
"items": {
"type": "number",
"format": "float"
}
}
},
"id": "HardwareStatus"
}
},
2017-09-13 12:09:48 +00:00
"revision": "20170905",
2017-08-05 18:17:15 +00:00
"basePath": "",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
2017-09-13 12:09:48 +00:00
"version_module": true,
2017-08-05 18:17:15 +00:00
"canonicalName": "Android Management",
"discoveryVersion": "v1",
"fullyEncodeReservedExpansion": true,
"baseUrl": "https://androidmanagement.googleapis.com/",
"name": "androidmanagement",
"parameters": {
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
},
"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.",
"type": "string",
"location": "query"
},
"quotaUser": {
"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",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"location": "query"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"alt": {
"description": "Data format for response.",
"location": "query",
"enum": [
"json",
"media",
"proto"
],
"default": "json",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"type": "string"
},
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"type": "string",
"location": "query"
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string",
"location": "query"
}
},
"documentationLink": "https://developers.google.com/android/management",
"ownerDomain": "google.com",
"batchPath": "batch",
"servicePath": "",
"ownerName": "Google",
"version": "v1",
"rootUrl": "https://androidmanagement.googleapis.com/",
"kind": "discovery#restDescription"
}